EXERCISES

  1. We delete from the set of states Q of an FSM M, all the states not reachable from q0 and get a new FSM M1. Is it true that L(M1) = L(M)?
  2. Consider a set A = {1, 2, 3} and a relation R : AA, R = {(1, 2), (2, 2), (1,1)}. What is the nature of R?
  3. In some NDFSM with ε transitions, there is a state with e transition to itself. What is the language recognized by a new machine in which this transition is deleted?
  4. State True/False:
    1. The language L(R) for any regular expression R is sometimes finite.
    2. If R does not have any * or +, then L(R) is always finite.
  5. Give inductive proofs for:
    1. If REV(x) is reverse of any string x, then REV(REV(X)) = x.
    2. Let a language L be defined as: (i) aL, (ii) if some xL then (x) ∈ L. Prove that any string ...

Get Compilers: Principles and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.