FORMAL LANGUAGE & AUTOMATA THEORY

100406
Back to FORMAL LANGUAGE & AUTOMATA THEORY

Module 3: Context-Sensitive Languages

  1. Q1c. The language: L = \{ a^m b^n c^{m+n} \mid m,n \ge 1 \} is: (i) regular (ii) context-free but not regular (iii) context-sensitive but not context-free (iv) type-0 but not context-sensitive20212m

    Module 3: Context-Sensitive Languages

    The language:

    L={ambncm+nm,n1} L = \{ a^m b^n c^{m+n} \mid m,n \ge 1 \}

    is:

    (i) regular
    (ii) context-free but not regular
    (iii) context-sensitive but not context-free
    (iv) type-0 but not context-sensitive

    View this question on its own page →
  2. Q1d. The language \{ a^n b^n c^{n+m} \mid m, n \ge 1 \} is: (i) regular (ii) context-free but not regular (iii) context-sensitive but not context-free (iv) type 0 but not context-sensitive20232m

    Module 3: Context-Sensitive Languages

    The language {anbncn+mm,n1}\{ a^n b^n c^{n+m} \mid m, n \ge 1 \} is:

    (i) regular
    (ii) context-free but not regular
    (iii) context-sensitive but not context-free
    (iv) type 0 but not context-sensitive

    View this question on its own page →
  3. Q1e. Which production is not allowed in a CSG? (i) AB \rightarrow BA (ii) A \rightarrow \epsilon (iii) A \rightarrow a (iv) a B \rightarrow a b20252m

    Module 3: Context-Sensitive Languages

    Which production is not allowed in a CSG?

    (i) ABBAAB \rightarrow BA
    (ii) AϵA \rightarrow \epsilon
    (iii) AaA \rightarrow a
    (iv) aBaba B \rightarrow a b

    View this question on its own page →
  4. Q6a. Prove that every context-free language is context-sensitive, but the converse is not true. Support your answer with a suitable language example.20257m

    Module 3: Context-Sensitive Languages

    Prove that every context-free language is context-sensitive, but the converse is not true. Support your answer with a suitable language example.

    View this question on its own page →
  5. Q6b. Given the following context-sensitive grammar: S \rightarrow aSBC | abc CB \rightarrow BC aB \rightarrow ab bB \rightarrow bb bC \rightarrow bc cC \rightarrow cc Identify the language generated by the grammar. Derive the string aabbcc step by step.20257m

    Module 3: Context-Sensitive Languages

    Given the following context-sensitive grammar:
    SaSBCabcS \rightarrow aSBC | abc
    CBBCCB \rightarrow BC
    aBabaB \rightarrow ab
    bBbbbB \rightarrow bb
    bCbcbC \rightarrow bc
    cCcccC \rightarrow cc

    Identify the language generated by the grammar. Derive the string aabbcc step by step.

    View this question on its own page →
  6. Q7a. Define a Linear Bounded Automaton (LBA). Design an LBA that accepts the language L = \{a^n b^n c^n | n \ge 1\}. Explain how tape length is restricted.20257m

    Module 3: Context-Sensitive Languages

    Define a Linear Bounded Automaton (LBA). Design an LBA that accepts the language L={anbncnn1}L = \{a^n b^n c^n | n \ge 1\}. Explain how tape length is restricted.

    View this question on its own page →