Meet in the middle: split a search, halve the exponent

9 steps · about 3 h 35 min · Intermediate

  1. Meet In Middle Technique (article, OpenGenus IQ, 20 min)

    It starts with the idea of improving a brute-force search, using simple worked examples.

  2. Meet in the Middle Algorithm (video, YouTube, 15 min)

    A spoken walkthrough of how the technique turns an O(a^b) search into a much smaller one.

  3. Meet in the middle (article, GeeksforGeeks, 20 min)

    It works the classic maximum-subset-sum-under-S problem (n up to 40) and gives code to compare with brute force.

  4. Meet in the Middle: A Powerful Algorithmic Technique for Efficient Problem Solving (article, AlgoCademy, 20 min)

    It lays out the five general steps (split, enumerate, store, look up, combine) with Python code.

  5. Meet in the middle algorithm (video, YouTube, 20 min)

    A second explanation, applied to closest subsequence sum, to reinforce the pattern on a new problem.

  6. CSES - Meet in the Middle (interactive, CSES Problem Set, 1 h)

    A graded exercise: count the subsets with sum x when n is at most 40, so only a split search passes the time limit.

  7. Cryptography for the Everyday Developer: Double Encryption and the Meet in the Middle Attack (article, Kevin Sookocheff, 15 min)

    It applies the same split-and-match idea to encryption: two 56-bit keys give only about 57 bits of effective security.

  8. Meet-in-the-middle attack (reference, Wikipedia, 20 min)

    It covers the history, the space-time tradeoff, and why Triple DES replaced Double DES.

  9. Modern Cryptographic Attacks: A Guide for the Perplexed (article, Check Point Research, 25 min)

    It shows the attack among other modern cryptographic attacks and walks through why encrypting with k1 can be matched against decrypting with k2.