🎬 Searching & Strings • Interactive Simulator
Binary Search (Interval Halving)
Step-by-step Binary Search animation tracking Low, Mid, and High pointers, overflow-safe midpoint calculation, and exact ⌊log₂ n⌋ + 1 worst-case comparisons.
Binary Search (Interval Halving)
Worst O(⌊log₂ n⌋ + 1)Space: O(1) iterativeInvariant: target ∈ [L..H]
Target Key: 47Probes Used: 0 / 4
[0]
7
L[1]
12
[2]
19
[3]
24
[4]
31
[5]
38
[6]
47
[7]
56
[8]
63
[9]
72
[10]
85
[11]
94
HSearch for target = 47 in sorted array of 12 keys (max ⌊log₂(12)⌋ + 1 = 4 probes).
1 / 7
Explore All 19 Interactive CSE Simulators
Sorting
Quick Sort (Lomuto Partition)
Sorting
Merge Sort (Divide & Merge)
Sorting
Insertion Sort (Adaptive)
Sorting
Selection Sort (Min-Swap)
Sorting
Bubble Sort (Early-Exit Flag)
Searching & Strings
Binary Search (Interval Halving)
Searching & Strings
KMP String Matching (LPS Table)
Graph Algorithms
Dijkstra Shortest Path (Greedy)
Graph Algorithms
BFS Queue vs DFS Stack Traversal
Logic & OS Systems
OS Page Replacement (LRU vs FIFO)
Logic & OS Systems
1-Bit Full Adder & Universal Gates
Operating Systems
CPU Scheduling Live Gantt Chart (SRTF / RR / SJF / FCFS)
Operating Systems
Banker’s Deadlock Safety Sequence Step-by-Step
Operating Systems
Disk Arm Seek Trajectory Drawing (SSTF / SCAN / C-SCAN / C-LOOK)
Operating Systems
Virtual Memory TLB + 2-Level Page Table Hardware Schematic
Digital Logic
Interactive 4-Variable K-Map Grouping & Prime Implicants
Digital Logic
3-Bit Synchronous Counter & Clock Divider Timing Waveforms
Digital Logic
4×1 Multiplexer Universal Boolean Function Schematic
Digital Logic
32-Bit IEEE-754 Floating-Point Bit-Field Decoder