StudyGraph
Data Structures Don't do this

3 data structure mistakes that cost exam marks

3 mistakes that cost marks in data structures

Lesson notes

Key points

Takeaway: Name the case: average, worst, balanced or not.

Quick check: What is the worst-case search time in an unbalanced binary search tree?
  1. O(1)
  2. O(log n)
  3. O(n)

A skewed tree behaves like a linked list, so search is O(n).

Lessons like this, for your syllabus.

Short narrated study videos written for your course, level and exam. Free to start.

Get lessons for your own syllabus