Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOLVE b, c and d PART. a. Let {a,b,c,,z} be an alphabet. Construct regular expressions for the following languages i. The set of strings which

image text in transcribed

SOLVE b, c and d PART.

a. Let {a,b,c,,z} be an alphabet. Construct regular expressions for the following languages i. The set of strings which are zero or more repetitions of the letter "a". ii. The set of strings in part (i), followed by one or more repetitions of strings "aba" or "bab". iii. The set of strings in part (ii), followed by one repetition of "a" followed by zero or more repetitions of "c". [6 marks] b. Give three NFAs which accept the set of strings described by the three regular expressions in your answer to Question 1a (i), (ii) and (iii). [7 marks] c. Give an example of an NFA that is not a DFA. The NFA should have at least 2 states and be over alphabet with at least three letters. Give a brief explanation why the automaton is not a DFA. [6 marks] d. Give three strings over alphabet {x,y}, which are recognised by the following regular expression: (xy)(xxyy)+yyy(yx) [6 marks]

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

In most cases, medication is prescribed by physicians.

Answered: 1 week ago

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago