




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth exploration of 2-3 trees, a self-balancing tree data structure. It covers the basics of 2-3 trees, their advantages and disadvantages, insertion and deletion algorithms, and node splitting. The document also includes examples and observations.
Typology: Slides
1 / 28
This page cannot be seen from the preview
Don't miss anything!





















CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root)
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root Traverse left Traverse left
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root New root Traverse left Traverse left
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root New root (^) Visit first item (after traversing to NULL node) Output: 10 Traverse left Traverse left
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root New root (^) Visit second item (after traversing to NULL node) Output: 10 20 Traverse left Traverse left
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root Traverse middle Output: 10 20 30 Traverse left New root
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root Traverse middle Output: 10 20 30 40 Traverse left Visit first item (after traversing to NULL node) New root
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) New root Output: 10 20 30 40 Traverse left Finished visiting nodes
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Output: 10 20 30 40 50 Visit first item (after traversing to NULL node)
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Output: 10 20 30 40 50 Traverse middle New root Traverse left
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Output: 10 20 30 40 50 Traverse middle New root Traverse left New root
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Output: 10 20 30 40 50 60 Traverse middle New root Traverse left New root Visit first item (after traversing to NULL node)
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Output: 10 20 30 40 50 60 65 Traverse middle New root Visit first item (after traversing to NULL node)
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Lookup “70”
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 Start here (root) Lookup “70”
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 New root Lookup “70”
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90 New root Lookup “70”
CPSC 223 -‐-‐ Fall 2010 50 30 65 80 10 20 40 60 70 90