The researchers gave a computer programme the outline of how a magic jigsaw puzzle and a mind reading card trick work, as well the results of experiments into how humans understand magic tricks, and the system created completely new variants on those tricks.
The magic tricks created were of the type that use mathematical techniques rather than sleight of hand or other theatrics, and are a core part of many magicians' repertoires.
The tricks proved popular with audiences and the magic puzzle was put on sale in a London magic shop.
"So while, a member of the audience might have seen a variation on this trick before, the AI can now use psychological and mathematical principles to create lots of different versions and keep audiences guessing," said Williams, explaining how a computer can aid trick creation.
The magic jigsaw involves assembling a jigsaw to show a series shapes, then taking it apart and reassembling it so that certain shapes have disappeared using a clever geometric principle.
Something this complex is ideal for an algorithm to process, and make decisions about which flexible factors are most important, researchers said.
The mind reading card trick involves arranging a deck of playing cards in a specific way then, based on a few seemingly innocuous pieces of information from the audience, identifying a card that has been seen selected from the deck and using an Android app to reveal the card on a mobile phone screen.
The programme identified arrangements for the deck that on average required one fewer question to be asked before the card was found than with the traditional method.
The app simply avoids the magician having to remember the order of the cards.
"Using AI to create magic tricks is a great way to demonstrate the possibilities of computer intelligence and it also forms a part of our research in to the psychology of being a spectator," Professor Peter McOwan, part of the QMUL team who worked on the project, added.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
