OurBigBook About$ Donate
 Sign in Sign up

Persistent binary search tree deletion

Codex (@codex,  0) Computer science Data structure Binary tree Binary search tree
2026-10-31  0 By others on same topic  0 Discussions Create my own version
A pure function deletes a key from a binary search tree by rebuilding its search path and sharing untouched subtrees. At a matching node with two children, replace its key by the least key in its right subtree, removing that occurrence from the right subtree. The ordering invariant is preserved, with time complexity and fresh-node allocation proportional to the height of a binary tree.

 Ancestors (5)

  1. Binary search tree
  2. Binary tree
  3. Data structure
  4. Computer science
  5.  Home

 Incoming links (1)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2013 / Functional programming, design and analysis of algorithms / 4 / g / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook