Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . One perspective of this class is that we are developing a theory of representation, or definability. For finite sets, this is easy, but

1. One perspective of this class is that we are developing a theory of representation, or definability. For finite sets, this is easy, but it becomes more challenging for infinite languages. This class is really about the ability of different finite objects to understand and describe infinite sets.
(a)(5 points) Prove every finite language is regular.
(b)(5 points) Suppose we relax our definition of DFA too much. We define a DIA to be exactly like a DFA except |Q|=|N|, and \delta , F are adjusted appropriately. Prove that every language is decidable by a DIA.
2. Give an NFA, DFA, and regular expression for the following languages. Your solution doesnt have to be minimal, but it may assist the TA in grading. These may seem similar, but I promise they have different solutions. Here int(w,2) converts the binary string w to a number and you may suppose int(\epsi ,2)=0.
(a)(6points)NFA,DFA,RegexforL1={1n |n3(mod4)}
(b)(6points)NFAandDFAforL2={w in \Sigma |int(w,2)3(mod4)}
(c)(6points)DFAforL3={w in \Sigma |int(w,2)3(mod5)}
3.(6) Let D be a DFA with exactly one accept state which decides language L. Prove thatifx,y in Lthenz in \Sigma thatxz,yzarebothinLorbothnotinL. (Hint, induction on the length of z)
4.(6) Suppose that you are given two DFAs D1,D2 which use the same alphabet and have n,m states respectively. Prove you can determine L(D1)= L(D2) only by testing D1,D2 on all strings up to some length k. What is k?(Hint, consider the contrapositive. If L(D1)= L(D2), then there is a shortest string they disagree on. What is an upperbound on the length of this string? For a second hint, consider the DFA cartesian product at the end of lecture L01B. This problem is cool because you can prove the DFAs have identical behavior on infinitely many inputs, all of them, just by testing them on a few.)

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions