You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be worth adding Ivan Balaban's "Optimal Algorithm" which hits the theoretical lower bound for segment intersection time and space complexity of O(n log n + k) and O(n), respectively.
It would be worth adding Ivan Balaban's "Optimal Algorithm" which hits the theoretical lower bound for segment intersection time and space complexity of O(n log n + k) and O(n), respectively.
Here is a link to his paper: https://www2.cs.sfu.ca/~binay/813.2011/Balaban.pdf
Also, he seems to have created a C++ implementation here: https://github.com/ivvaan/balaban-segments-intersections
Some additional work would need to be done to handle degenerate cases.
The text was updated successfully, but these errors were encountered: