: [ S \Rightarrow SS \Rightarrow (S)S \Rightarrow ((S))S \Rightarrow (())S \Rightarrow (())(S) \Rightarrow (())() ] 4. Example 3 – ( a^n b^n ) (equal number of a’s and b’s) Language : ( a^n b^n \mid n \ge 0 )

: [ S \to SS \mid (S) \mid \varepsilon ]

: [ S \to aSa \mid bSb \mid a \mid b \mid \varepsilon ]

Signup now to soundhub.io

Subscribe to SoundHub.io and unlock a world of music creation, collaboration, and discovery.

Subscription Form TOC