arXiv:1203.3602cs.DS
Picture-Hanging Puzzles
Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.
Abstract
We show how to hang a picture by wrapping rope around n nails, making a polynomial number of twists, such that the picture falls whenever any k out of the n nails get removed, and the picture remains hanging when fewer than k nails get removed. This construction makes for some fun mathematical magic performances. More generally, we characterize the possible Boolean functions characterizing when the picture falls in terms of which nails get removed as all monotone Boolean functions. This construction requires an exponential number of twists in the worst case, but exponential complexity is almost always necessary for general functions.
See also: https://arxiv.org/pdf/1203.3602.pdf You can also encode any monotone boolean function by hanging a picture on the wall on N nails (one nail per variable). e.g. a "normal" hanging of a picture on two nails would encode an AND gate (it only falls if both nails are…
TheNewAndyView on HNParent context