20 likes | 249 Views
CST229 Week 3. Questions or concern? Homework #2 due Hand back Homework #1 Reading: Chapters 4 & 5 Language Definitions Review Set notation Recursiv e Definition Chapter 4 – yet another language definition In-Class Exercise #3 Chapter 5 – Machine to recognize languages (if time).
E N D
CST229 Week 3 • Questions or concern? • Homework #2 due • Hand back Homework #1 • Reading: Chapters 4 & 5 • Language Definitions Review • Set notation • Recursive Definition • Chapter 4 – yet another language definition • In-Class Exercise#3 • Chapter 5 – Machine to recognize languages (if time)
In-Class Exercise #3 Write regular expressions for the following languages over {a, b}: • All strings that have exactly one double letter (aa or bb) in them. • All words that do not have the substring ab • All strings in which any b’s that occur are found in clumps of an odd number at a time, such as abaabbbab