Midterm 1 Eview
Midterm 1 Eview
Fall 2023
Midterm 1 Review
Midterm Exam
Out of 50pts
2
DFAs, NFAs, and Regular Expressions
S = {a, b, c };
DFA M: a
b
q0 q1
b
c a,c
q2 a, b, c
3
a
Correctness Proof for DFAs q0
a
q1
b b
a a
Given A described by a mathematical constraint over strings q2 q3
how to show that a DFA M accepts exactly strings in A
b b
Given A, how do we show that every DFA accepting A must have at least k
states ? Or that A is not regular ?
5
Lower Bounds and Non-regularity
6
Closure Properties
7
Closure Properties Example Problem
8
Automata Constructions
9
Decision Procedures
Membership question:
Given a DFA M and input w, does M accept w ?
Non-acceptance :
Given a DFA M and input w, does M reject w ?
Emptiness question:
Given a DFA M, is there a string that M accepts ?
Universality question:
Given a DFA M, does M accept all strings ?
Equivalence question:
Given two DFAs M and M’, do they accept exactly same languages ?
10