Skip to content

A simple program implementing NFA to DFA conversion. 一个实现NFA到DFA转换的简单程序。

Notifications You must be signed in to change notification settings

LydiaKe/NFA_to_DFA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NFA_to_DFA

A simple program implementing NFA to DFA conversion

How to use this program?

  1. Download all the three files and put them under the same file.
  2. Run main.py.
  3. Follow the instructions in the terminal. Input the transition relations, initial state and final states.
  4. The corresponding DFA will be printed in the terminal.

Example input and output: (You can also find example test cases at the top of the main file) image

FA.py: the definition of the general fa(finite automaton) class, nfa class and dfa class.

NFA_to_DFA.py: the NFA_to_DFA conversion function.(input: NFA return: DFA)

main.py: the main file.(terminal input and output)

About

A simple program implementing NFA to DFA conversion. 一个实现NFA到DFA转换的简单程序。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages