Skip to content
UPEEC

Meet in the Middle

Split a search into two halves of size $n/2$, enumerate each, then combine — $O(2^{n/2})$ instead of $O(2^n)$.

Advanced
Comments 0

Subset-sum for n≈40n \approx 40.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.