Skip to content

Node removal optimisation #52

@Totodore

Description

@Totodore

Currently when a node is removed from the tree there is no mechanism to check for optimisations.

Here is a non-exhaustive list of the possible things to do:

  • Rewind the branch and check if nodes can be removed (only one child without value). Stop at the first non-removable node.
  • Rewind the branch and check if nodes can be merged together (only one, non-wild child that doesn't have a value).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions