All you do to solve a maze using this algorithm is keep your left hand on the left wall (or your right hand on the right wall) and just follow it along until you exit the maze.
在用这种算法解迷宫时,只需要把左手一直放在左边的墙上(或者把右手一直放在右边的墙上),然后沿着墙走,直到走出迷宫。
Try it out next time you need to drive your car. Cover your left nostril with your thumb and breathe only through your right nostril for one minute. This should keep you more alert when driving.
下次开车时你就可以试试,用拇指压住左鼻孔只用右鼻孔呼吸一分钟,这样能够提高你驾驶的警觉性。
By the big picture, I mean let's keep the same matrix on the left, but in addition, we have a difference right hand side.
整张大图,我是说让我们保持左侧相同的矩阵,但是除此之外,我们取一个不同的右侧部分。
应用推荐