0 votes 0 votes L = { w ∈ {a,b}* : a(w) = b(w) } We're using the notation: a(w) = number of a's in a string w b(w) = number of b's in a string w S⇾ aSbS | bSaS | ε Doubt: Is the same language generated by below grammar also: S⇾ SS | aSb | bSa | ε Theory of Computation theory-of-computation context-free-grammar + – jatin khachane 1 asked Oct 14, 2018 jatin khachane 1 315 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Utkarsh Joshi commented Oct 14, 2018 reply Follow Share yes both are accepting same language! 0 votes 0 votes jatin khachane 1 commented Oct 14, 2018 reply Follow Share S→ xB ∣ yA A→ x ∣ xS ∣ yA A B→ y ∣ yS ∣ xBB This is also doing the same thing right Generating strings in which #x's = #y's. 0 votes 0 votes Please log in or register to add a comment.