You are on page 1of 1

Assignment

Given the alphabet A = {0, 1} write the regular expression, convert to NFA and then resulting NFA into
DFA for the following

1. String that either have substring 001 or 100

2. Strings where no two 1s occurs consecutively

3. String which have an odd numbers of 0s

4. String which have an odd numbers of 0s and an even numbers 1s

5. String that have at most 2 0s

6. String that at least 3 1s

7. Strings that have at most two 0s and at least three 1s

8. Explain phases of compilation with diagram and example.

9. Explain language processing system.

10. Explain symbol Table.

11. How error is handled in different phases of compilation and explain strategies.

You might also like