Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 : ( 1 5 points ) ( 2 5 minutes ) DFA, NFA, and - NFA Consider the alphabet ? ? = {

Q1: (15 points)(25 minutes) DFA, NFA, and -NFA
Consider the alphabet ??={0,1}, and the regular expression RE=0*+(10)*+101.
Design a DFA that accepts this language.
Design an NFA that accepts this language.
Design an -NFA that accepts this language using the rules we covered in our
lectures. Q2: (10 points)(20 minutes) Context-Free Grammars
Design a CFG that accepts the language {0m1n|m>n}. Examples
,...)
Find the leftmost derivation of these two strings 0000 and 000011
Draw the parse tree of these two strings 00011 and 00000
Is this language regular or not? Prove your answer. Q3: (10 points)(20 minutes) Properties of CFG
Given the following CFG:
SAB
ABC|0
BAC|1
C0|1
Prove that the language of this CFG is not empty.
Test the membership of the following two strings using CYK Algorithm (show all of
your steps):-
11111
01100 Q4: (10 points)(15 minutes) Turing Machines
Giving the following TM
Use TM ID's to show the movements of the following two strings and explain why it
accepts or rejects.
10#10: q101#01+....
11#000: q100#01...-
What does this TM do? explain how?
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

More Books

Students also viewed these Databases questions

Question

Discuss the concept of ethics in the management of human resources.

Answered: 1 week ago

Question

Define organizational culture.

Answered: 1 week ago