Skip to content

Potential Bug in overlappers Function #2

Description

@yaz1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions