Chat > Chit Chat
Maths - hollow curve phenomenon detector - algorithm design
Weaver:
Have now gone for it, have replaced the stalactite detectors at every point with find-x-for-ymax searching. This has increased reliability a lot. It kills two birds with one stone: it rejects stalactites, and also finds each max-y, something that is desired anyway in some cases, such as when finding the lhs-x.
Have also fixed a nasty bug that I spotted. In a certain case a variable was read before it was first written, so an undefined variable value. In this particular case it was not actually truly undefined, because the code was inside a major, all-enclosing outer loop ‘for-each-modem’, so an ‘undefined’ variable in pass modem( n ) would in this case pick up some bogus value from pass modem( n-1 ).
So very big improvement.
burakkucat:
--- Quote from: Weaver on August 14, 2022, 06:57:11 PM ---So very big improvement.
--- End quote ---
That reads as if it is v6.0 of the code.
Weaver:
Agreed, algorithm v6.0 it is then.
Navigation
[0] Message Index
[*] Previous page
Go to full version