Syaahi.

A closer look

University ideas. A clearer first page.

Original UG/PG CS examples for algorithms, DBMS and operating systems. Read immediately, open the handwriting renderer or download the sample PDF.

SYAAHI / REVISION NOTES01

Binary search: halve the work

Search a sorted list by comparing the target with its middle item and keeping only the possible half.

01 / Start sorted

The ordering lets you decide which half to discard. An unsorted list does not support this reasoning.

02 / Trace it

Find 8 in [2, 4, 6, 8, 10]. Compare 6; keep [8, 10]; then compare 8.

03 / Complexity

Each comparison roughly halves the remaining interval, giving logarithmic worst-case comparisons.

RECALL CHECK

What happens when no items remain?

Reveal answer / उत्तर देखें

The target is absent. Stop rather than searching the same interval again.

Made with Syaahi · syaahii.in

Hand-authored sample, not a live AI result. Further reading ↗

Handwritten Study Notes Example | Syaahi