Hi,
I detected a bug in overlappers function that it did not return all overlapping intervals with a point. When tested with few intervals, the code works fine. However, with large number of intervals, inserts and deletes, overlappers does not return all overlapping intervals. I verified that by simply printing the tree before each call to overlappers and checking the output of overlappers. In some cases, overlappers function doesn't return all overlapping intervals,
When I tested my code with another implementation of intervaltree(http://algs4.cs.princeton.edu/93intersection/IntervalST.java.html), I found no bugs.
I apologize that I am not able to provide more details due to a deadline that I have to meet. I suggest more stress testing.
Hi,
I detected a bug in overlappers function that it did not return all overlapping intervals with a point. When tested with few intervals, the code works fine. However, with large number of intervals, inserts and deletes, overlappers does not return all overlapping intervals. I verified that by simply printing the tree before each call to overlappers and checking the output of overlappers. In some cases, overlappers function doesn't return all overlapping intervals,
When I tested my code with another implementation of intervaltree(http://algs4.cs.princeton.edu/93intersection/IntervalST.java.html), I found no bugs.
I apologize that I am not able to provide more details due to a deadline that I have to meet. I suggest more stress testing.