Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Classifying languages ( 1 2 points ) : Consider the following list of languages over the alphabet { a , b } { a n

Classifying languages (12 points): Consider the following list of languages over the alphabet
{a,b}
{anbn|0n4},{bnan|n3},{ambn|0nm}
{ambn|mn+2,n0},{bman|m3,n1}
{win{a,b}**|w=wR},{wwR|win{a,b}**}
(a)(Graded for completeness) Pick one of the regular languages and design a regular expression
that describes it. Briefly justify your regular expression by connecting the subexpressions
of it to the intended language and referencing relevant definitions.
(b)(Graded for completeness) Pick another one of the regular languages and design a DFA that
recognizes it. Draw the state diagram of your DFA. Briefly justify your design by explaining
the role each state plays in the machine, as well as a brief justification about how the strings
accepted and rejected by the machine connect to the specified language.
(c)(Graded for completeness) Pick one of the nonregular languages and design a PDA that
recognizes it. Draw the state diagram of your PDA. Briefly justify your design by explaining
the role each state plays in the machine, as well as a brief justification about how the strings
accepted and rejected by the machine connect to the specified language.
(d)(Graded for completeness) Pick one of the nonregular languages and write a CFG that
generates it. Briefly justify your design by by demonstrating how derivations in the grammar
relate to the intended language.
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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

Students also viewed these Databases questions

Question

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago