Abstract
This chapter considers how can one find the exit out of a labyrinth without ending up walking in a cycle or walking multiple times along the same path. The authors show that this problem can be solved using a fundamental method called depth-first search, if it is possible to set marks, such as a line with a piece of chalk, along the way. Interestingly, the depth-first search method also works if one wants to systematically explore a part of the World-Wide Web or if one wants to generate a labyrinth.
We thank Martin Dietzfelbinger (Ilmenau) for many constructive suggestions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2011 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Dom, M., Hüffner, F., Niedermeier, R. (2011). Depth-First Search (Ariadne & Co.). In: Vöcking, B., et al. Algorithms Unplugged. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-15328-0_7
Download citation
DOI: https://doi.org/10.1007/978-3-642-15328-0_7
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-15327-3
Online ISBN: 978-3-642-15328-0
eBook Packages: Computer ScienceComputer Science (R0)