Studying of algorithms for generating labyrinth