Visual Execution and Validation of Finite-State Machines and Pushdown Automata

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Morazán, Marco T., Fields, David Anthony K., Garced, Andrés M., Minić, Tijana
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915428887953408
author Morazán, Marco T.
Fields, David Anthony K.
Garced, Andrés M.
Minić, Tijana
author_facet Morazán, Marco T.
Fields, David Anthony K.
Garced, Andrés M.
Minić, Tijana
contents In Formal Languages and Automata Theory courses, students find understanding nondeterministic finite-state and pushdown automata difficult. In many cases, this means that it is challenging for them to comprehend the operational semantics of such machines and, as a consequence, determine why a word is accepted or rejected. This is not entirely surprising, because students are mostly trained to design and implement deterministic programs. Comprehension of pushdown automata is further complicated, because reasoning about the stack is necessary. A common difficulty students face, for example, is understanding that two different computations on the same word may reach the same state with different stack values. To aid student understanding, we present two novel dynamic visualization tools for FSM -- a domain-specific programming language for the Automata Theory classroom -- to support the design of such machines. These tools visualize all computations that may be performed, respectively, by a nondeterministic finite-state machine or by a pushdown automata in a stepwise manner. In addition, these tools aid the machine verification process by allowing users to visually validate whether the properties a state represents hold when a machine transitions into it.
format Preprint
id arxiv_https___arxiv_org_abs_2508_03641
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Visual Execution and Validation of Finite-State Machines and Pushdown Automata
Morazán, Marco T.
Fields, David Anthony K.
Garced, Andrés M.
Minić, Tijana
Formal Languages and Automata Theory
Human-Computer Interaction
Programming Languages
Software Engineering
In Formal Languages and Automata Theory courses, students find understanding nondeterministic finite-state and pushdown automata difficult. In many cases, this means that it is challenging for them to comprehend the operational semantics of such machines and, as a consequence, determine why a word is accepted or rejected. This is not entirely surprising, because students are mostly trained to design and implement deterministic programs. Comprehension of pushdown automata is further complicated, because reasoning about the stack is necessary. A common difficulty students face, for example, is understanding that two different computations on the same word may reach the same state with different stack values. To aid student understanding, we present two novel dynamic visualization tools for FSM -- a domain-specific programming language for the Automata Theory classroom -- to support the design of such machines. These tools visualize all computations that may be performed, respectively, by a nondeterministic finite-state machine or by a pushdown automata in a stepwise manner. In addition, these tools aid the machine verification process by allowing users to visually validate whether the properties a state represents hold when a machine transitions into it.
title Visual Execution and Validation of Finite-State Machines and Pushdown Automata
topic Formal Languages and Automata Theory
Human-Computer Interaction
Programming Languages
Software Engineering
url https://arxiv.org/abs/2508.03641