Commit Graph

9 Commits

Author SHA1 Message Date
755e5da7f7 fix bug in bin-vec.sml 'deleteMin' function: we previously deleted two elements, but we are supposed to delete one, and now this is fixed 2025-01-30 12:55:36 +00:00
174a99a5a0 switch implementation of heap from being based on heap.sml (heap as described by one of Chris Okasaki's papers) to being based on bin-vec.sml (simple vector storing elements in sorted order); more performant this way for cache reasons 2025-01-22 18:22:34 +00:00
8498fab1dc fix bin-vec.sml to store sorted element properly, in order 2025-01-20 12:23:30 +00:00
4e5219fccc fix bug with value inserted into ValSet: before, the value inserted into the 'from' field was the ID of the current platform, but this is incorrect as it is circular. To fix, the 'from' field now contains the ID of the previous platform which this platform was found from 2025-01-20 11:17:00 +00:00
3939b0b3e2 done implementing functor to search through quad tree, adding to priority queue (for Dijkstra's algorithm) 2025-01-19 23:56:52 +00:00
1ba42462ba progress implementing dijkstra's algorithm for path finding using quad trees 2025-01-19 22:45:51 +00:00
e64c3bc00d add contains function to bin-vec.sml which returns true if the vector contains the value 2025-01-19 21:32:17 +00:00
e619fd1c05 change API of BinVec 2025-01-19 13:03:16 +00:00
4459a676ac implement bin-vec (vector that always stores its elements in order, for binary search) 2025-01-19 12:06:56 +00:00