Question: Automata theory. Problem # 2 . Let L = { x i n ( a + b ) * * | # ? a (

Automata theory. Problem #2. Let L={xin(a+b)**|#?a(x)=#?b(x)}
Show that if xinL and x begins and ends with the same symbol, then x=yz for some nonempty strings y,zinL. (Hint. For x=x1dotsxn,x1,dots,xnin{a,b}, define the function f:{0,dots,n}Z by letting f(i)=#?a(x1dotsxi)-#?b(x1dotsxi), and argue that y and z exist.)
Use (1) to find a CFG generating L in which S is the only nonterminal.
Automata theory. Problem # 2 . Let L = { x i n (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!