Computing & AI · the experiment
Pay for your letters
Words made of 0s and 1s, one letter costing a single unit more than the other, and a problem that tips into the NP-complete family. Four questions, from beginner to expert.
1 · The result2 · The example3 · No contradiction4 · The second result
1 · Say what the paper proves
Beginner
What do Chandran and Gajjala prove?
2 · Find the cheapest code
Three symbols with frequencies 20, 12 and 9. The letter 0 costs 83, the letter 1 costs 84. Each word costs the sum of its letters, multiplied by the frequency of its symbol.
Intermediate
Which code is the cheapest?
3 · Reconcile the two results
For every fixed pair of integer costs, for instance 1 and 2, an exact and fast algorithm already exists.
Expert
Why does the NP-completeness proof not contradict this?
4 · Locate the difficulty
Huffman's recipe quickly finds the minimum weighted length of a code.
Expert
According to the paper, what remains NP-complete?
Letters paid for
—