Skip to content

Implementation of a Non-deterministic Finite Automaton in C++. The program can show the dead states, check if the NFA is a DFA and analyze a string to see if it belongs to the NFA.

License

Notifications You must be signed in to change notification settings

angeligareta/non-deterministic-finite-automaton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Non-Deterministic Finite Automaton

Implementation of a NFA in C++. As opposed to a DFA, where of its transitions is uniquely determined by its source state and input symbol and reading an input symbol is required for each state transition. The NFA does not obey these restrictions.

The program can read, and show a NFA. Besides it can show the dead states, see if the NFA is a DFA and analyze a string to see if it belongs to the NFA.

Author

Ángel Luis Igareta Herráiz

INDEX

Usage

To start the program first you have to compile the source with MakeFile. After that you can start it executing:

.bin/nfa

Once the program is started it will show a menu with 6 options:

⬤ Option 0: Exit
⬤ Option 1: Read NFA 
⬤ Option 2: Show NFA
⬤ Option 3: Show death states
⬤ Option 4: Is DFA?
⬤ Option 5: Analyze String

Finally in the test folder there is an example of NFA syntax.

License

The Mit License.

About

Implementation of a Non-deterministic Finite Automaton in C++. The program can show the dead states, check if the NFA is a DFA and analyze a string to see if it belongs to the NFA.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published