This contains all the files related to automata theory assignment 1
Write a python script to convert a Nondeterministic finite automaton to a deterministic finite automaton.
This folder contains what has been submitted to moodle. (a 2018101042_A1.tar.gz
file that contains a directory 2018101042_A1
that includes script.py
and report.pdf
Contains the problem statement (as uploaded on moodle)
input1.json : output1.json input2.json : output2.json input3.json : output3.json
This code is used to produce only the reachable states of the DFA. It prints the union of all the outputs of each line of the t-function. However, this function is no longer required.
This code is used to find those elements in set1 which contains all elements in set2.
This code is used to generate the powerset of the given set.
script.py
To check how the file actually works and to run it, refer the report. (report.pdf
)
checkOutput.py
To run this file, run the following command
python3 checkOutput.py
This script takes in the input NDA from the input.json
file, converts it into a DFA, stores it in output.json
file, and then compares the DFA obtained with the DFA stored in the file output_check.json
.
Then it prints True or False if their states match, their letters match, their start state match, their allowed final states match and their t-function matches.
- In docx format:
report.docx
- In markdown format:
report.md
- In PDF format (required for submission):
Report.pdf