Skip to content
Binary Trees and Binary Search Trees
Computing · JC 2 · Abstract Data Structures and Algorithms · Semester 1

Binary Trees and Binary Search Trees

Students will explore how 'if-then-else' statements allow programs to make decisions and respond to different conditions.

MOE Syllabus OutcomesMOE: Programming - Middle School

About This Topic

Students will explore how 'if-then-else' statements allow programs to make decisions and respond to different conditions.

Key Questions

  1. Analyse the worst-case time complexity of search, insertion, and deletion in a binary search tree, identify the degenerate input that triggers it, and explain why it is equivalent to linear search.
  2. Implement in-order, pre-order, and post-order traversals iteratively using a stack and compare the structural information each traversal exposes about the tree.
  3. Design an algorithm to verify whether a given binary tree satisfies the BST property in O(n) time and prove its correctness.

Active Learning Ideas

See all activities

Activities & Teaching Strategies

See all activities

Edited by Adriana Perusin, Editor-in-Chief, Flip Education