Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question has two parts worth 1 0 points each A ) Constructing DFAs For each of the following languages over the alphabet Sigma

This question has two parts worth 10 points each
A)Constructing DFAs
For each of the following languages over the alphabet \Sigma ={0,1}, give a DFA that recognizes the language,
and explain why its correct. Try to use as few states as possible.
a.{w in \Sigma | w has an odd number of 1s}. For instance, 11111 has five 1s and is in the language,
and 001000 has one 1 and is in the language, while 11001010 has four 1s and is not in the
language.
b.{w in \Sigma | w starts and ends with the same character}. For instance, 100101 starts and ends with 1
and is in the language, and 001000 starts and ends with 0 and is in the language, while
11001010 starts with 1 but ends with 0 and is not in the language.
c.{w in \Sigma | w starts and ends with the same character and has an odd number of 1s}.
B)A DFA and its Language
Consider the following DFA over the alphabet ={a,b,c} :
a. Write out the formal definition of this DFA (as a 5-tuple). Describe the transition function in a table.
b. What is the language recognized by this DFA? Give a short English description, then explain in
a paragraph why your description is correct.
c.(BONUS,10 additional points) How many strings of length 32 are accepted by this DFA? Prove
your answer.
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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions