.. This file is part of the OpenDSA eTextbook project. See .. http://opendsa.org for more details. .. Copyright (c) 2012-2020 by the OpenDSA Project Contributors, and .. distributed under an MIT open source license. .. avmetadata:: :author: Molly Binary Search Trees =================== Objectives ---------- * Distinguish a Binary Tree from a Binary Search Tree (BST) * Describe the characteristics of a Binary Search Tree and the efficiency its operations * Traverse a Binary Search Tree * Implement and use a Binary Search Tree ADT * Add an a new entry to a Binary Search Tree * Remove an entry from a Binary Search Tree Suggested Reading: ~~~~~~~~~~~~~~~~~~ Chapter 25 A Binary Search Tree Implementation from `Data Structures and Abstractions with Java, 4th edition by Frank M. Carrano and Timothy Henry `_ .. raw:: html Interactive: Introduction to Binary Search Trees ------------------------------------------------ .. admonition:: Follow Along and Engage Download the slides corresponding to the video. Take notes on them as you watch the video, practice drawing diagrams yourself! .. raw:: html IntroBinarySearchTrees.pdf .. raw:: html
Checkpoint 1 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/BSTCheckpoint1Summ.html ka :long_name: Checkpoint 1 .. raw:: html Interactive: Programming Binary Search Trees ------------------------------------------------ .. admonition:: Follow Along and Engage Download the slides corresponding to the video. Take notes on them as you watch the video, practice drawing diagrams yourself! .. raw:: html ProgrammingBinarySearchTrees.pdf .. raw:: html
Checkpoint 2 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/BSTCheckpoint2Summ.html ka :long_name: Checkpoint 2 .. _BSTAdd: Interactive: Adding Binary Search Trees ------------------------------------------------ .. admonition:: Follow Along and Engage Download the slides corresponding to the video. Take notes on them as you watch the video, practice drawing diagrams yourself! .. raw:: html AddingToBinarySearchTrees.pdf .. raw:: html
Checkpoint 3 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/BSTCheckpoint3Summ.html ka :long_name: Checkpoint 3 .. _BSTRemove: Interactive: Removing From Binary Search Trees ---------------------------------------------- .. admonition:: Follow Along and Engage Download the slides corresponding to the video. Take notes on them as you watch the video, practice drawing diagrams yourself! .. raw:: html RemovingFromBinarySearchTrees.pdf .. raw:: html
Checkpoint 4 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/BSTCheckpoint4Summ.html ka :long_name: Checkpoint 4