Write program to find ε – closure of all states of any given NFA with ε transition. Agenda 1.Program 2.Input/Output 1.Program #include <stdio.h> #include <string.h> char result[ 20 ][ 20 ], copy[ 3 ], states[ 20 ][ 20 ]; void add_state( char a[ 3 ], int i) { strcpy(result[i], a); } void display( int n) { int k = 0 ; printf( "nnn Epsilon closure of %s = { " , copy); while (k < n) { printf( " %s" , result[k]); k++; } printf( " } nnn" ); } int main() { FILE * INPUT; INPUT = fopen( "input.dat" , "r" ); char state[ 3 ]; int end, i = 0 , n, k = 0 ; ...
competitive programming guides eg.algorithms,problems,tricks ,datastructure based on cp.