Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the class of languages for n 0 : L n = { w = w 1 w 2 c d o t s w

Consider the class of languages for n0 :
Ln={w=w1w2cdotswn|AAi,1in,wiin{0,1}??#?1(w1w2cdotswi)>#?0(w1w2cdotswi)}
That is,Ln is the set of all n-bits strings where every prefix has more 1's than 0's. For example,
L0={}
L1={1}sub{0,1}
L2={11}sub{00,01,10,11}
L3={110,111}sub{000,010,100,110,001,011,101,111}
L4={1101,1110,1111}
sub{0000,0010,0100,0110,0001,0011,0101,0111,1000,1010,1100,1110,1001,1011,1101,1111}
L5={11010,11011,11100,11101,11110,11111}
L6={110101,110110,110111,111001,111010,111011,111100,111101,111110,1111111}
cdots=cdots
(a) Show that Ln is regular for n0.
(b) Let winLn,nk>0. Let us remove the last k symbols wn-k+1wn-k+2cdotswn from w to get u.
i. Prove that uinLn-k.
ii. No string in an Ln starts with a 0.
iii. All strings in Ln,n>1 start with 11.
(c) For winLn,n0, we define d(w)=#?1(w)-#?0(w). Prove:
i. If d(w)=1, then w1inLn+1
ii. If d(w)>1, then w0inLn+1??w1inLn+1
iii. d(w)-=n(mod2)
(d) For winLn,n0,d(w)=#?1(w)-#?0(w), let di,j=|{w|winLi??d(w)=j}|.i,j0. :
i. Prove that di,j=0,i+j-=1(mod2)
ii. Prove that the recurrence of di,j is given by:
di,j=di-1,j-1+di-1,j+1,1i,j
=1,i=0,j=0
=0,i>0,j=0
=0,i0,j>i
iii. Solve di,j.
(e) Let fn=|Ln|. Define fn recursively and solve.
Hint: fi=j?di,j
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

Understand human resources role in performance appraisals

Answered: 1 week ago