Lightning algorithm

Matt Henderson on Numberphile shows off a “lightning algorithm” which is actually a maze-solving algorithm that shows the solution at the end. Come for the demo at the beginning but stay for the explanation.