Professional Documents
Culture Documents
(LabManual) CE FOE11112 (6) SP TUTORIAL - 1
(LabManual) CE FOE11112 (6) SP TUTORIAL - 1
Tutorial 1
Issue date: 9/1/12 Due date:24/1/12 1. Let L = {anbm / n,m >=1} be a language. Give regular expression for the language and draw a state diagram for finite automata of given language. Also create a C-program that validates the strings of this language. 2. Let L = {All binary numbers which are divisible by 3} be a language. Give regular expression for the language and draw a state diagram for finite automata of given language. Also create a C-program that validates the strings of this language. 3. Let L = {Printf statement of C-language} be a language. Give regular expression for the language and draw a state diagram for finite automata of given language. Also create a Cprogram that validates the strings of this language. 4. Let L = {All prefixes of ababababab} be a language. Give regular expression for the language and draw a state diagram for finite automata of given language. Also create a Cprogram that validates the strings of this language.