🗝️ Algorithm Hunt
Dr. Haitao Xu Teaching Demo
Audio: Locked (Click)
🧩 Layout Edit Mode — drag & resize panels, then “Save Default”
Algorithm Race
Goal: Find the treasure hidden behind one of the N doors.

🟨 Linear Search checks every door.
🟦 Binary Search divides & conquers.
Path Visualization Treasure Hidden

🔍 Linear Search O(n)

Ops: 0
I open doors one by one...
Code Execution i=1, guess=?, ops=0
Operation Log

✂️ Binary Search O(log n)

Ops: 0
I cut the range in half...
Code Execution low=1, high=N, mid=?
Operation Log