Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prerequisite question: (This should not be answered only for reference) Let B = { 1ky| y E {0, 1)' and y contains at least k

image text in transcribed

Prerequisite question: (This should not be answered only for reference) Let B = { 1ky| y E {0, 1)' and y contains at least k 1s, for k Show that B is a regular language. Let C = {1ky| y E {0, 1)" and y contains at most k 1s, for k Show that C isn't a regular language 1.49 a. -1) b. l) Prerequisite answer: (Only for reference) Problem 1.49 Solution: a. b. Lets assume that C is regular and P be the pumping length given by the pumping lemma. Lets consider the string S-1P0p1P e B. The pumping lemma tells that s can be split into 3 pieces s= abz for som1. By pumping lemma ac1P-i0P1P, but this not possible and where labl p. As b is a contradiction. Therefore, C isn't a regular language. Based on the above answer please answer this question: (This is the Main question to be answered) 8. Consider the language C in Problem 1.49(b. You can prove C is non-regular by (1) assuming (to the contrary) that C is regular; (2) selecting a sufficiently long string w that (according to the Pumping Lemma) should be pumpable, (3) selecting a "pumping factor" i, and finally (4) showing a contradiction: the resuting string zy'z is not n C. The key is finding the right" w and the right" i. (a) Give a "wrong" choice for w that is sufficiently long (according to the Pumping Lemma) and that does not lead to a contradiction. Justify your answer [2 points] (b) Using your right" choice in your answer to 1.49(b), give a "wrong" choice fori. Justify your answer [2 points] Prerequisite question: (This should not be answered only for reference) Let B = { 1ky| y E {0, 1)' and y contains at least k 1s, for k Show that B is a regular language. Let C = {1ky| y E {0, 1)" and y contains at most k 1s, for k Show that C isn't a regular language 1.49 a. -1) b. l) Prerequisite answer: (Only for reference) Problem 1.49 Solution: a. b. Lets assume that C is regular and P be the pumping length given by the pumping lemma. Lets consider the string S-1P0p1P e B. The pumping lemma tells that s can be split into 3 pieces s= abz for som1. By pumping lemma ac1P-i0P1P, but this not possible and where labl p. As b is a contradiction. Therefore, C isn't a regular language. Based on the above answer please answer this question: (This is the Main question to be answered) 8. Consider the language C in Problem 1.49(b. You can prove C is non-regular by (1) assuming (to the contrary) that C is regular; (2) selecting a sufficiently long string w that (according to the Pumping Lemma) should be pumpable, (3) selecting a "pumping factor" i, and finally (4) showing a contradiction: the resuting string zy'z is not n C. The key is finding the right" w and the right" i. (a) Give a "wrong" choice for w that is sufficiently long (according to the Pumping Lemma) and that does not lead to a contradiction. Justify your answer [2 points] (b) Using your right" choice in your answer to 1.49(b), give a "wrong" choice fori. Justify your answer [2 points]

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

1. Are my sources credible?

Answered: 1 week ago

Question

3. Are my sources accurate?

Answered: 1 week ago

Question

1. Is it a topic you are interested in and know something about?

Answered: 1 week ago