Files:
p1.c- Main program implementing epsilon closure calculationinput.txt- Input file containing state transition data
Brief description:
This program calculates and displays the epsilon closure for states in a finite automaton. It:
- Reads the number of states and state names
- Takes transitions from an input file in the format (state1 input state2)
- Computes epsilon closure for each state (states reachable through epsilon transitions)
- Displays the epsilon closure set for each state in the automaton
The program is useful for the first step in converting an NFA with epsilon transitions to one without epsilon transitions.