Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. (15 points) Let's say you are playing a sequences of matches of chess with an opponent. You are keeping track of how many times

image text in transcribed

4. (15 points) Let's say you are playing a sequences of matches of chess with an opponent. You are keeping track of how many times you win and lose. You are very stubborn and you will keep playing games until you have more wins than losses at which point you will stop playing and declare yourself better than the other player. Consider the following language L over the alphabet S = {0,1} that consists of all possible strings of 0 and 1 that could result in the sequence described above where a 0 counts as a loss and a 1 counts as a win. For example: 1 L because you could win in your first game and stop there. 0001111 E L because you could lose the first 3 games and win the last 4 at which point you will stop. 0101011 E L because you will lose and win back and forth until you win twice in a row at which point you will stop. 010010111 L you get the idea. 1111000 L because you would have already stopped after the first win. (a) Draw the state diagram of a PDA that recognizes this language. (b) Use pumping lemma to prove this language is not regular

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 And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

dy dx Find the derivative of the function y=(4x+3)5(2x+1)2.

Answered: 1 week ago

Question

Group Size and Communication

Answered: 1 week ago

Question

Understanding Group Roles

Answered: 1 week ago