Physicist David Shih used a Rubik’s Cube to inspire artificial intelligence research aimed at simplifying complex equations.