Short answer: Meet-in-the-middle solves subset sum by splitting the items into two halves. Each half has about n/2 elements, so each half has 2^{n/2} subset sums. Sort one list. For every sum on the other list, binary search the complement that comes closest to the target without passing it.…
