Back to Search
Start Over
An Entertaining Example of Using the Concepts of Context-Free Grammar and Pushdown Automation
- Source :
- Open Journal of Discrete Mathematics, 2012, 2, 105-108
- Publication Year :
- 2012
-
Abstract
- A formal-linguistic approach for solving an entertaining task is made in this paper. The well-known task of the Hanoi towers is discussed in relation to some concepts of discrete mathematics. A context-free grammar which generate an algorithm for solving this task is described. A deterministic pushdown automation which in its work imitates the work of monks in solving the task of the Hanoi towers is built.
- Subjects :
- Computer Science - Formal Languages and Automata Theory
Subjects
Details
- Database :
- arXiv
- Journal :
- Open Journal of Discrete Mathematics, 2012, 2, 105-108
- Publication Type :
- Report
- Accession number :
- edsarx.1201.1095
- Document Type :
- Working Paper
- Full Text :
- https://doi.org/10.4236/ojdm.2012.23020