Write program to convert NFA to DFA Agenda 1.Code 2.Input/Output 1.Code #include <stdio.h> #include <string.h> #include <math.h> int ninputs; int dfa[ 100 ][ 2 ][ 100 ] = { 0 }; int state[ 10000 ] = { 0 }; char ch[ 10 ], str[ 1000 ]; int go[ 10000 ][ 2 ] = { 0 }; int arr[ 10000 ] = { 0 }; int main() { int st, fin, in; int f[ 10 ]; int i,j= 3 ,s= 0 ,final= 0 ,flag= 0 ,curr1,curr2,k,l; int c; printf( "\nFollow the one based indexing\n" ); printf( "\nEnter the number of states::" ); scanf( "%d" ,&st); ...
competitive programming guides eg.algorithms,problems,tricks ,datastructure based on cp.