HOMEWORK > Hwk 3_sol Northeastern University CS 3800


Northeastern University CS 3800 1. [15 Points] Consider the language L = {w ∈ {a, b} ∗ | w has even length and an odd number of a’s} This language is the intersection of the simpler languages L1 = {w ∈ {a, b} ∗ | w has even length} and L2 = {w ∈ {a, b} ∗ | w has an odd number of a’s}. (a) Give the diagram of a DFA accepting L1. Solution: qa s a b a fa b ε qb b fb ...[Show More]

Preview 1 out of 5 pages
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )