Ayush Ranjan
Experience Projects Research
Experience Projects Research
Back to Research

Algorithms

Patterns and proofs.

  • Binary search beyond sorted arrays
    Searching the answer space when a monotonic predicate is all you have.
  • Dynamic programming as a state machine
    State, transition, base case โ€” and the choice between top-down and bottom-up.
  • Union-Find ยท the near-O(1) set merger
    Path compression and union by rank, and why the amortized cost is almost constant.
© 2026 โ€ข Ayush Ranjan
Press Esc or click anywhere to close