Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 . 1 : Let Lsube { 0 , 1 } * * be the language defined recursively as follows: The empty string is

Problem 1.1: Let Lsube{0,1}** be the language defined recursively as follows:
The empty string is in L.
For any string x in L, the strings 1x01 and 11x0 are also in L.
For any strings x,y such that xy is in L, the string x011y is also in L.(In other words,
inserting 011 anywhere to a string in L yields another string in L.)
The only strings in L are those that can be obtained by the above rules.
Define Ldouble={xin{0,1}**:#?1(x)=2#?0(x)}, where #?a(x) denotes the number of
occurrences of the symbol a in the string x.
(a) Prove that LsubeLdouble, by using induction. (You should use strong induction.)
(b) Conversely, prove that LdoublesubeL, by using induction.
[Hint: What does a string that does not contain 011 as a substring look like? It
may be helpful to decompose the string into blocks of 0's and 1's (i.e., write it as
0i11j10i21j2cdots0ik1jk with i1,j1,dots,ik,jk1, if it starts with a 0 and ends with a 1 ;
and similarly for the other cases).]
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

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions