计算机科学 > 数据结构与算法
[提交于 2012年3月16日 (v1),最后修订于 2014年4月26日 (此版本, v2)]
标题:Picture-Hanging Puzzles
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.