Skip to content

fix: remove removal of predicate from heap + adding restoration of key to heap - #136

Closed
ImkoMarijnissen wants to merge 3 commits into
developfrom
fix/autonomous-search
Closed

ImkoMarijnissen wants to merge 3 commits into
developfrom
fix/autonomous-search

Conversation

@ImkoMarijnissen

Copy link
Copy Markdown
Contributor

There were two issues with autonomous search which are addressed by this PR:

  1. The removal was too aggressive since it was calculated using self.increment which could grow very large
  2. When a key is set to be dormant, we remove it from the heap and from predicate_id_info (in that order); when a new predicate is then added to the heap, it could be the case that it is now linked to the id which has been removed. This leads the heap to incorrectly believe that the newly added predicate has already been removed

…t incorrect assumption that predicate is not present in the heap
@ImkoMarijnissen ImkoMarijnissen changed the title fix: remove removal of variable + adding restoration of key to heap fix: remove removal of predicate from heap + adding restoration of key to heap Jan 21, 2025
@maartenflippo

maartenflippo commented Feb 3, 2025 •

Copy link
Copy Markdown
Contributor

Superseded by #139

@maartenflippo
maartenflippo deleted the fix/autonomous-search branch February 3, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants