Kruskal count

From HandWiki
(Redirected from Coupling card trick)

The Kruskal count[1][2] (also known as Kruskal's principle,[3][4][5][6][7] Dynkin–Kruskal count,[8] Dynkin's counting trick,[9] Dynkin's card trick,[10][11][12][13] coupling card trick[14][15][16] or shift coupling[10][11][12][13]) is a probabilistic concept originally demonstrated by the Russian mathematician Evgenii Borisovich Dynkin in the 1950s or 1960s[when?] discussing coupling effects[14][15][9][16] and rediscovered as a card trick by the American mathematician Martin David Kruskal in the early 1970s[17][nb 1] as a side-product while working on another problem.[18] It was published by Kruskal's friend[19] Martin Gardner[20][1] and magician Karl Fulves in 1975.[21] This is related to a similar trick published by magician Alexander F. Kraus in 1957 as Sum total[22][23][24][25] and later called Kraus principle.[2][7][25][18]

Besides uses as a card trick, the underlying phenomenon has applications in cryptography, code breaking, software tamper protection, code self-synchronization, control-flow resynchronization, design of variable-length codes and variable-length instruction sets, web navigation, object alignment, and others.

Card trick

Explanation of Kruskal count

The trick is performed with cards, but is more a magical-looking effect than a conventional magic trick. The magician has no access to the cards, which are manipulated by members of the audience. Thus sleight of hand is not possible. Rather the effect is based on the mathematical fact that the output of a Markov chain, under certain conditions, is typically independent of the input.[26][27][28][29][6] A simplified version using the hands of a clock is as follows.[30] A volunteer picks a number from one to twelve and does not reveal it to the magician. The volunteer is instructed to start from 12 on the clock and move clockwise by a number of spaces equal to the number of letters that the chosen number has when spelled out. This is then repeated, moving by the number of letters in the new number. The output after three or more moves does not depend on the initially chosen number and therefore the magician can predict it.

See also

Notes

  1. According to Diaconis & Graham (2012), Martin Kruskal explained the trick, which later became known as Kruskal's principle, to Martin Gardner in a reply to a letter Gardner had sent him to recommend Persi W. Diaconis for graduate school. Diaconis graduated in 1971, earned a M.S. in mathematical statistics at Harvard University in 1972, and a Ph.D. from Harvard in 1974, so Kruskal's reply must have been between 1971 and 1974 the latest. Gardner published the trick in Gardner (1975).

References

  1. 1.0 1.1 "On checker jumping, the Amazon game, weird dice, card tricks and other playful pastimes". Scientific American. Mathematical Games (Scientific American, Inc.) 238 (2): 19–32. February 1978. ISSN 0036-8733. 
  2. 2.0 2.1 "Chapter 19". Penrose Tiles to Trapdoor Ciphers ... and the return of Mr. Matrix (1 ed.). W. H. Freeman. 1989. p. 274none ; "Chapter 19. Sicherman Dice, the Kruskal Count and Other Curiosities". Penrose Tiles to Trapdoor Ciphers ... and the return of Mr. Matrix. Spectrum Series (Revised ed.). Washington DC, USA: Mathematical Association of America. 1997. pp. 265–280 [280]. ISBN 0-88385-521-6. https://bobson.ludost.net/copycrime/mgardner/gardner13.pdf. Retrieved 2023-08-19.  (1+ix+319 pages)
  3. "Organic Mathematics". written at Simon Fraser University, Burnaby, British Columbia, Canada. Canadian Mathematical Society Conference Proceedings. 20. Providence, Rhode Island, USA: American Mathematical Society. June 1997. pp. 407–411. ISBN:0-8218-0668-8. ISBN 978-0-8218-0668-5. https://books.google.com/books?id=bEgtaaU0QRoC. Retrieved 2023-08-19.  (5 pages)
  4. 4.0 4.1 "Monte Carlo Methods for Index Computation (mod p)". Mathematics of Computation (Mathematics Department, Plessey Telecommunications Research, Taplow Court, Maidenhead, Berkshire, UK: American Mathematical Society) 32 (143): 918–924. July 1978. ISSN 0025-5718. https://www.ams.org/journals/mcom/1978-32-143/S0025-5718-1978-0491431-9/S0025-5718-1978-0491431-9.pdf. Retrieved 2023-08-19.  (7 pages)
  5. 5.0 5.1 "Kangaroos, Monopoly and Discrete Logarithms". Journal of Cryptology (Tidmarsh Cottage, Manor Farm Lane, Tidmarsh, Reading, UK: International Association for Cryptologic Research) 13 (4): 437–447. 2000-08-10. doi:10.1007/s001450010010. ISSN 0933-2790. https://link.springer.com/content/pdf/10.1007/s001450010010.pdf. Retrieved 2023-08-19.  (11 pages)
  6. 6.0 6.1 6.2 "Kruskal's Card Trick". The Mathematical Gazette (Tidmarsh Cottage, Manor Farm Lane, Tidmarsh, Reading, UK: The Mathematical Association) 84 (500): 265–267. July 2000. doi:10.2307/3621657. 84.29. ISSN 0025-5572. https://web.northeastern.edu/seigen/11Magic/KruskalsCount/Pollard.pdf. Retrieved 2023-08-19.  (1+3 pages)
  7. 7.0 7.1 "Chapter 6: Kruskal Principle (Extraordinary Coincidence) / Chapter 7: Kraus Principle (The Magic of 52, Magical Coincidence II)". Card Concepts - An Anthology of Numerical & Sequential Principles Within Card Magic (1 ed.). London, UK: Lewis Davenport Limited. 2000. pp. 34–38, 39–46.  (vi+301 pages)
  8. "Codes for PHYD57 Advanced Computing in Physics, UTSC: Dynkin–Kruskal count - convergent Markov chains". 2020-01-29. https://planets.utsc.utoronto.ca/~pawel/progD57/. "[...] We looked at the Markov chains, where a given random sequence of cards or numbers is traversed in a linked-list manner, that is when you see a value in a list of integers, you use it to determine the position of the next number in a sequence, and you repeat that until the list ends. This is the basis of a card trick with a magician correctly guessing the final number in a seemingly hidden/random sequence computed by a spectator in his/her mind (but using a given well-shuffled deck of 52 cards. [...] Random sequences that converge when the length of element is used to create a jump to the next element are called Dynkin–Kruskal sequences, after Eugene Dynkin (1924–2014), a Russian-American mathematician, who mentioned them in his work, and American mathematician Martin David Kruskal (1925–2006). The nature of these Kruskal sequences is that they converge exponentially fast, and for N=52 there is already more than 90% chance that the two randomly started sequences converge at the end of the deck, that is the magician and the spectator independently arrive at the same last key card. I saw the trick demonstrated [...] at one conference, but didn't know that these convergent, linked list-like, series are so common. Almost any books can be used to show that. Skip a number of words equal to the number of letters in a key word. By the end of the third line you normally converge to the same sequence forever after, no matter which word in the top line you start with. [...]"  [1][2][3]
  9. 9.0 9.1 "Chapter 10 Stochastic Processes; 10.1 Introduction". written at University of California, Davis, California, USA. Large Sample Techniques for Statistics. Springer Texts in Statistics (1 ed.). New York, USA: Springer Science+Business Media, LLC. 2010. pp. 317–319. doi:10.1007/978-1-4419-6827-2. ISBN 978-1-4419-6826-5. https://books.google.com/books?id=zUBDAAAAQBAJ&pg=PA317. Retrieved 2023-09-02.  (xvii+610 pages); "Chapter 10 Stochastic Processes; 10.1 Introduction". written at University of California, Davis, California, USA. Large Sample Techniques for Statistics. Springer Texts in Statistics (2 ed.). Cham, Switzerland: Springer Nature Switzerland AG. 2022. pp. 339–341. doi:10.1007/978-3-030-91695-4. ISBN 978-3-030-91694-7. https://books.google.com/books?id=zRBoEAAAQBAJ&pg=PA339. Retrieved 2023-09-02. "[...] During the author's time as a graduate student, one of the classroom examples that struck him the most was given by Professor David Aldous in his lectures on Probability Theory. The example was taken from Durrett (1991, p. 275). A modified (and expanded) version is given below. [...] Example 10.1. Professor E. B. Dynkin used to entertain the students in his probability class with the following counting trick. A professor asks a student to write 100 random digits from 0 to 9 on the blackboard. Table 10.1 shows 100 such digits generated by a computer. The professor then asks another student to choose one of the first 10 digits without telling him. Here, we use the computer to generate a random number from 1 to 10. The generated number is 7, and the 7th number of the first 10 digits in the table is also 7. Suppose that this is the number that the second student picks. She then counts 7 places along the list, starting from the number next to 7. The count stops at (another) 7. She then counts 7 places along the list, again. This time the count stops at 3. She then counts 3 places along the list, and so on. In the case that the count stops at 0, the student then counts 10 places on the list. The student's counts are underlined in Table 10.1. The trick is that these are all secretly done behind the professor, who then turns around and points out where the student's counts finally ends, which is the last 9 in the table. [...]"  (xv+685 pages)
  10. 10.0 10.1 "Probabilistic couplings for cryptography and privacy". IMDEA Software Institute. 2016. https://software.imdea.org/~gbarthe/mod17/mod-lec1+2.pdf.  (66 pages); "Probabilistic couplings for cryptography and privacy". IMDEA Software Institute. 2016-09-13. https://www.uni-muenster.de/IFIP-WG22/Web/meeting/Singapore16/barthe-slides.pdf.  (49 pages)
  11. 11.0 11.1 "Coupling Proofs are Probabilistic Product Programs". Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages. 2016-11-07. pp. 161–174. doi:10.1145/3009837.3009896. ISBN 978-1-45034660-3. https://hal.science/hal-01649028/document. Retrieved 2023-08-19.  [4] (14 pages)
  12. 12.0 12.1 "Relational Reasoning via Probabilistic Coupling". Logic for Programming, Artificial Intelligence, and Reasoning. Lecture Notes in Computer Science. 9450. Suva, France: LPAR. 2017-07-12. pp. 387–401. doi:10.1007/978-3-662-48899-7_27. hal-01246719v2. ISBN 978-3-662-48898-0. https://hal.science/hal-01561433/document. Retrieved 2023-08-19.  (17 pages)
  13. 13.0 13.1 "Probabilistic Couplings for Probabilistic Reasoning". 2018. p. 34. https://www.sigplan.org/Awards/Dissertation/2018_hsu.pdf.  (147 pages)
  14. 14.0 14.1 Probability: Theory and Examples. The Wadsworth & Brooks/Cole Statistics/Probability Series (1 ed.). Pacific Grove, California, USA: Wadsworth & Brooks/Cole Advanced Books & Software. 1991. p. 275. ISBN 0-534-13206-5.  (x+453 pages) (NB. This can be found quoted in Jiang (2010).); "Example 5.2. A coupling card trick.". Probability: Theory and Examples. The Duxbury Advanced Series in Statistics and Decision Sciences (3 ed.). Thomson Brooks/Cole Publishing. 2005. p. 312. ISBN:978-0-534-42441-1. ISBN 0-534-42441-4. https://books.google.com/books?id=NPYYAQAAIAAJ&q=Dynkin.  (497 pages) (NB. This can be found quoted in Kovchegov (2007).)
  15. 15.0 15.1 "From Markov Chains to Gibbs Fields". Department of Mathematics, Oregon State University. 2007-10-06. p. 22. http://www.yaroslavvb.com/papers/kovchegov-from.pdf. "Here we will quote [R. Durrett, "Probability: Theory and Examples."]: "Example. A coupling card trick. The following demonstration used by E. B. Dynkin in his probability class is a variation of a card trick that appeared in Scientific American. The instructor asks a student to write 100 random digits from 0 to 9 on the blackboard. Another student chooses one of the first 10 numbers and does not tell the instructor. If that digit is 7 say she counts 7 places along the list, notes the digit at that location, and continues the process. If the digit is 0 she counts 10. A possible sequence is underlined on the list below: 3 4 7 8 2 3 7 5 6 1 6 4 6 5 7 8 3 1 5 3 0 7 9 2 3 . . . The trick is that, without knowing the student's first digit, the instructor can point to her final stopping position. To this end, he picks the first digit, and forms his own sequence in the same manner as the student and announces his stopping position. He makes an error if the coupling time is larger than 100. Numerical computation done by one of Dynkin's graduate students show that the probability of error is approximately [0].026."  (45 pages) (NB. This can be found quoted in Weinhold (2011).)
  16. 16.0 16.1 "Vorstellung der Kopplung bei Markovketten" (in de). University of Ulm. 2011-05-13. p. 7. https://www.uni-ulm.de/fileadmin/website_uni_ulm/mawi.inst.110/lehre/ss11/EpidSeminar/Vortrag3_Weinhold.pdf.  (1+9 pages) (NB. This work quotes Kovchegov (2007).)
  17. "Chapter 10. Stars Of Mathematical Magic (And Some Of The Best Tricks In The Book): Martin Gardner". Magical Mathematics: The Mathematical Ideas That Animate Great Magic Tricks (4th printing of 1st ed.). Princeton, New Jersey, US & Woodstock, Oxfordshire, UK: Princeton University Press. 2016. pp. 211–219 [211–212]. ISBN:978-0-691-15164-9. ISBN 978-0-691-16977-4. https://books.google.com/books?id=W26YDwAAQBAJ&pg=PA211. Retrieved 2023-09-06. "[...] A blurb that appears on one of his books says: [...] Warning: Martin Gardner has turned dozens of innocent youngsters into math professors and thousands of math professors into innocent youngsters. [...] We are living proof; Martin nurtured a runaway fourteen-year-old, published some of our mathematical findings to give a first publication (in Scientific American), found time to occasionally help with homework, and, when the time came to apply for graduate school, Martin was one of our letter writers. There are heart-warming stories here. Martin's letter of recommendation said something like: "I don't know a lot about mathematics but this kid invented two of the best card tricks of the past ten years. You ought to give him a chance." Fred Mosteller, a Harvard statistics professor and keen amateur magician, was on the admissions committee and let the kid into Harvard. Fred became the kid's thesis advisor and, after graduation, the kid eventually returned to Harvard as a professor. [...] One other tale about Martin's letter. It was sent to a long list of graduate schools. He got a reply from Martin Kruskal at Princeton (a major mathematician who was most well-known for his discovery of solitons) that went roughly: "It's true, Martin. You don't know about mathematics. No one with this kid's limited background could ever make it through a serious math department." Kruskal went on to explain what has come to be known as the Kruskal principle. This is a broadly useful new principle in card magic. A few years later, the kid lectured at the Institute for Defense Analyses, a kind of cryptography think tank in Princeton. Kruskal came up afterwards, full of enthusiasm for the lecture, and asked: "How come I never heard of you? That was wonderful!" The kid tried to remind Kruskal of their history. Kruskal denied it but the kid still has the letter. This was one of the few times that Martin Kruskal's keen insight led him astray! [...]"  (2+xii+2+244+4 pages)
  18. 18.0 18.1 18.2 18.3 "The Kruskal principle". International Journal of Pure and Applied Mathematics (d) (Department of Business Information, Faculty of Information Management, Osaka University of Economics, Osaka, Japan: Academic Publications, Ltd.) 85 (6): 983–992. July 2013. doi:10.12732/ijpam.v85i6.1. ISSN 1311-8080. http://www.ijpam.eu/contents/2013-85-6/1/1.pdf. Retrieved 2023-08-19.  (10 pages)
  19. "Foshee Magically Interpreted". Indianapolis, Indiana, USA. 2010. p. 316. https://digitalcommons.butler.edu/cgi/viewcontent.cgi?article=1134&context=wordways. "Kruskal had two mathematically inclined brothers, William at the University of Chicago and Joseph of Bell Labs. All three were friends of Martin Gardner who had earlier written about their mother, Lillian Oppenheimer, a remarkable origamist."  (1 page)
  20. "The Kruskal Principle". The Pallbearers Review (Teaneck, New Jersey, US: L & L Publishing) 10 (8): 967–970. June 1975none  (4 pages); Fulves, Karl, ed (July 1975). "Cross-Cut Force". The Pallbearers Review (Teaneck, New Jersey, US: L & L Publishing) 10 (9): 985none  (1 page); Fulves, Karl, ed (1993). "The Kruskal Principle". The Pallbearers Review: Volumes 9–10. 3. Tahoma, California, USA: L & L Publishing - Quality Magical Literature. pp. 967–970, 985. https://www.martinsmagic.com/allmagic/books/pallbearers-review-vols-9-10-by-karl-fulves/. Retrieved 2023-09-10none  [5] (381 pages) (NB. Volume 3 of a three-volume hardcover reprint of The Pallbearers Review magazine volumes 9 (November 1973) – 10 (1977).); Braunmüller, Rudolf, ed (January 1984). "Das Kruskal-Prinzip" (in de). intermagic - Ein Magisches Journal (Munich, Germany) 10 (3 & 4): 125–. 
  21. "Kruskal Phone Effect". The Pallbearers Review (Teaneck, New Jersey, US: L & L Publishing) 10 (8): 970–. June 1975none ; "Kruskal Phone Effect". The Pallbearers Review: Volumes 9–10. 3. Tahoma, California, USA: L & L Publishing - Quality Magical Literature. 1993. pp. 970–. https://www.martinsmagic.com/allmagic/books/pallbearers-review-vols-9-10-by-karl-fulves/. Retrieved 2023-09-10.  [6] (381 pages) (NB. Volume 3 of a three-volume hardcover reprint of The Pallbearers Review magazine volumes 9 (November 1973) – 10 (1977).)
  22. Lyons, Philip Howard, ed (December 1957). "Sum Total". ibidem (Toronto, Ontario, Canada) (12): 7. Part 1 (Problem).  (1 page) (NB. The second part can be found in Kraus (1958).); "Sum Total (Problem)". ibidem - P. Howard Lyons. 1. Lyons, Pat Patterson (illustrations) (1 ed.). Washington DC, USA: Richard Kaufman & Alan Greenberg (Kaufman and Greenberg); Hermetic Press, Inc. (Jogestja, Ltd.). 1993. p. 232. https://www.martinsmagic.com/allmagic/books/ibidem-vol-1-by-p-howard-lyons/.  (319 pages) (NB. Volume 1 of a three-volume hardcover reprint of ibidem magazine numbers 1 (June 1955) – 15 (December 1958).)
  23. Lyons, Philip Howard, ed (March 1958). "Sum Total". ibidem (Toronto, Ontario, Canada) (13): 13–16. Part 2 (Solution).  (4 pages) (NB. The first part can be found in Kraus (1957).); "Sum Total (Solution)". ibidem - P. Howard Lyons. 1. Lyons, Pat Patterson (illustrations) (1 ed.). Washington DC, USA: Richard Kaufman & Alan Greenberg (Kaufman and Greenberg); Hermetic Press, Inc. (Jogestja, Ltd.). 1993. pp. 255–258. https://www.martinsmagic.com/allmagic/books/ibidem-vol-1-by-p-howard-lyons/.  (319 pages) (NB. Volume 1 of a three-volume hardcover reprint of ibidem magazine numbers 1 (June 1955) – 15 (December 1958).)
  24. Lyons, Philip Howard, ed (March 1958). "Sum More". ibidem (Toronto, Ontario, Canada) (13): 17–18.  (2 pages); "Sum More". ibidem - P. Howard Lyons. 1. Lyons, Pat Patterson (illustrations) (1 ed.). Washington DC, USA: Richard Kaufman & Alan Greenberg (Kaufman and Greenberg); Hermetic Press, Inc. (Jogestja, Ltd.). 1993. pp. 258–259. https://www.martinsmagic.com/allmagic/books/ibidem-vol-1-by-p-howard-lyons/.  (319 pages) (NB. Volume 1 of a three-volume hardcover reprint of ibidem magazine numbers 1 (June 1955) – 15 (December 1958).)
  25. 25.0 25.1 "Chapter 12: Two Card Tricks". Impossible? Surprising Solutions to Counterintuitive Conundrums (1 ed.). Princeton, New Jersey, US: Princeton University Press. 2008. pp. 131–140. ISBN 978-0-691-13131-3. https://books.google.com/books?id=Ux5QcdVXo6oC&pg=PA131. Retrieved 2023-08-19.  [7] (xii+235 pages) (NB. The book contains a significant number of typographical errors: ASIN 0691150028); "Kapitel 12 - Numerologie und Kartentricks: Das Kruskal-Prinzip" (in de). Das gibts doch nicht – Mathematische Rätsel (1 ed.). Spektrum Akademischer Verlag Heidelberg / Springer Science+Business Media. 2009. pp. 128–135. ISBN:978-3-8274-2306-1. ISBN 978-3-8274-2306-1.  (xiv+234 pages)
  26. The Kruskal Count. Murray Hill, New Jersey, US: AT&T Bell Laboratories. 1988. 
  27. 27.0 27.1 "The Kruskal Count". The Mathematics of Preference, Choice and Order. Essays in Honor of Peter J. Fishburn. Studies in Choice and Welfare. Berlin / Heidelberg, Germany: Springer-Verlag. 2009. pp. 371–391. doi:10.1007/978-3-540-79128-7_23. ISBN 978-3-540-79127-0.  (22 pages)
  28. 28.0 28.1 "Towards Integral Binary Execution: Implementing Oblivious Hashing Using Overlapped Instruction Encodings". Proceedings of the 9th workshop on Multimedia & Security (MM&Sec '07). Dallas, Texas, USA: Association for Computing Machinery. 20–21 September 2007. pp. 129–140. doi:10.1145/1288869.1288887. ISBN 978-1-59593-857-2. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/jacob07overlap.pdf. Retrieved 2021-12-25.  (12 pages)
  29. "An old card trick and new Biblical hoax". Once Upon a Number - The Hidden Mathematical Logic of Stories (1 ed.). Basic Books. November 1998. p. 64. ISBN 978-0-46505159-5. https://math.temple.edu/~paulos/bibhoax.html. 
  30. "How to Do the Math Magic Trick That Will Impress Everyone You Know - Here's the secret.". Popular Mechanics (Hearst Magazine Media, Inc.). 2020-02-27. ISSN 0032-4558. http://popularmechanics.com/science/a31136091/math-magic-trick. Retrieved 2021-12-25. 
  31. "Graph Based Model for Software Tamper Protection". Microsoft. February 2016. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/mariuszj-jacob07overlap.ppt. 

Further reading

External links