Magic in the machine: a computational magician's assistant

A human magician blends science, psychology, and performance to create a magical effect. In this paper we explore what can be achieved when that human intelligence is replaced or assisted by machine intelligence. Magical effects are all in some form based on hidden mathematical, scientific, or psychological principles; often the parameters controlling these underpinning techniques are hard for a magician to blend to maximize the magical effect required. The complexity is often caused by interacting and often conflicting physical and psychological constraints that need to be optimally balanced. Normally this tuning is done by trial and error, combined with human intuitions. Here we focus on applying Artificial Intelligence methods to the creation and optimization of magic tricks exploiting mathematical principles. We use experimentally derived data about particular perceptual and cognitive features, combined with a model of the underlying mathematical process to provide a psychologically valid metric to allow optimization of magical impact. In the paper we introduce our optimization methodology and describe how it can be flexibly applied to a range of different types of mathematics based tricks. We also provide two case studies as exemplars of the methodology at work: a magical jigsaw, and a mind reading card trick effect. We evaluate each trick created through testing in laboratory and public performances, and further demonstrate the real world efficacy of our approach for professional performers through sales of the tricks in a reputable magic shop in London.

[1]  Simon Colton,et al.  Emotionally aware automated portrait painting demonstration , 2008, 2008 8th IEEE International Conference on Automatic Face & Gesture Recognition.

[2]  Sherman K. Stein The Mathematician as an Explorer , 1961 .

[3]  Thanh Giang,et al.  Evaluating the visual fidelity of physically based animations , 2003, ACM Trans. Graph..

[4]  Fan Chung Graham,et al.  Universal cycles for combinatorial structures , 1992, Discret. Math..

[5]  Stevan Harnad,et al.  Offloading Cognition onto Cognitive Technology , 2008, ArXiv.

[6]  Somnuk Phon-Amnuaisuk,et al.  Evolutionary methods for musical composition , 1998 .

[7]  Peter Norvig,et al.  Artificial Intelligence: A Modern Approach , 1995 .

[8]  Michael Kleber,et al.  The best card trick , 2002 .

[9]  Ronald A. Rensink,et al.  Towards a science of magic , 2008, Trends in Cognitive Sciences.

[10]  Peter J. Bentley,et al.  CREATIVE EVOLUTIONARY SYSTEMS , 2001 .

[11]  Goldberg,et al.  Genetic algorithms , 1993, Robust Control Systems with Genetic Algorithms.

[12]  Andrea Lodi,et al.  Two-dimensional packing problems: A survey , 2002, Eur. J. Oper. Res..

[13]  Milbourne Christopher,et al.  The Illustrated History of Magic , 1973 .

[14]  D. Laming,et al.  F. Hegelmaier: On memory for the length of a line , 1992, Psychological research.

[15]  J. O. Robinson The Psychology of Visual Illusion , 1972 .

[16]  Georgios N. Yannakakis,et al.  TOWARDS OPTIMIZING ENTERTAINMENT IN COMPUTER GAMES , 2007, Appl. Artif. Intell..

[17]  Donald E. Knuth The art of computer programming: fundamental algorithms , 1969 .

[18]  R. Fisher 067: The Effect of Psychological Card Preferences. , 1928 .

[19]  David E. Goldberg,et al.  Genetic Algorithms in Search Optimization and Machine Learning , 1988 .

[20]  John Dingliana,et al.  Collisions and perception , 2001, TOGS.

[21]  Donald Ervin Knuth,et al.  The Art of Computer Programming , 1968 .

[22]  Kalyanmoy Deb,et al.  A fast and elitist multiobjective genetic algorithm: NSGA-II , 2002, IEEE Trans. Evol. Comput..

[23]  Ronald A. Rensink,et al.  Perceptual and Cognitive Characteristics of Common Playing Cards , 2012, Perception.

[24]  H. Fredricksen A Survey of Full Length Nonlinear Shift Register Cycle Algorithms , 1982 .

[25]  Martin Gardner,et al.  Mathematics, Magic and Mystery , 1956 .

[26]  Ronald A. Rensink,et al.  Obscuring length changes during animated motion , 2004, ACM Trans. Graph..

[27]  Ching-Tsorng Tsai,et al.  EVOLVING A TEAM IN A FIRST-PERSON SHOOTER GAME BY USING A GENETIC ALGORITHM , 2013, Appl. Artif. Intell..

[28]  Ronald A. Rensink,et al.  Obscuring length changes during animated motion , 2004, SIGGRAPH 2004.

[29]  John M. Findlay,et al.  Misdirection in magic: Implications for the relationship between eye gaze and attention , 2008 .

[30]  G. Mandler,et al.  Subitizing: an analysis of its component processes. , 1982, Journal of experimental psychology. General.

[31]  Peter J. Bentley,et al.  Introduction to creative evolutionary systems , 2001 .

[32]  Francisco Câmara Pereira Creativity and Artificial Intelligence , 2007 .