Lecture 21 (More Decidability), 4/10/06
Concepts, definitions (in italics):
Reading:
Skills:
Notes:
A CFG in Chomsky Normal form has a derivation of length 2k-1 for a string of length k > 0.
Algorithm for ECFG:
1) (Init) For every rule with no variables on RHS, mark variable on LHS.
2) (Loop) For every rule with no unmarked variables on RHS, mark variable on LHS.
3) Repeat step 2 until we cannot mark any more variables.
4) If start variable is marked, return NO; else return YES.
EQDFA-decider does the following on input (A,B)
1) syntax check, reject if fails
2) C = construct the description of DFA accepting L(A) – L(B)
3) D = construct the description of DFA accepting L(B) – L(A)
4) Run EDFA decider on C, then on D
5) If both are yes (i.e. they both have empty languages), return accept; else reject