#

algorithms

Efficient algorithms and search techniques

ProgrammingBig O Notation Explained Simply for Algorithm Efficiency

Plain-English guide to Big O notation and algorithm complexity. Learn common time complexities (O(1), O(log n), O(n), O(n^2)) and simple rules of thumb.

1 answer 8 views
ProgrammingEfficient Sock Pairing Algorithm: O(n log n) Guide

Discover the optimal sock pairing algorithm using in-place sorting like heapsort for O(n log n) time under log-space constraints. Compare with hashing, radix methods, and practical tips for 30 pairs. Relates to element distinctness.

1 answer 4 views
ProgrammingEfficient Letter Boxed Solver Algorithm Guide

Optimal algorithm for Letter Boxed word game: bitmask DP, BFS on (mask, last), admissible heuristics like set-cover bounds, pruning techniques for minimal words. Fast for L=12 puzzles with chaining and coverage.

1 answer 1 view
ProgrammingMarkov Chain Expected Payoff: Exact DP Solution

Compute the exact expected total payoff at stopping time using finite-state Markov chain and dynamic programming. Includes minimal state space, recurrence equations, backward substitution, and Python code for precise fraction.

1 answer 1 view