60 likes | 172 Views
In Week 9, we will address any questions or concerns, review Homework #7, and discuss Lab #2. Remember, Test #2 is scheduled for Monday, and your class standing will be posted shortly after. If you wish to take the optional Final Exam, please notify Sherry. On Thursday, we will recap the week and look ahead to CST320. Lab #2 is due via email by midnight on Friday. Note: There will be no meetings during Finals week. We will also cover key topics, including Regular vs. Context-Free Grammar.
E N D
CST229 Week 9 • Questions or concerns? • Hand back Homework #7 & #5 • Go over Homework#7 • Discuss Lab#2 • Test#2
Next week • Monday: Test#2 & your class standing will be posted. • Notify Sherry if you want to take the optional Final • Thursday: • Wrap up & looking ahead to CST320 • Optional Final • Friday: • Lab#2 due at midnight via email • We are not meeting during Finals week
Regular Grammar vs Context-Free Grammar (a+b)*(bbb+aaa)(a+b)* (a+b)*(bbb+aaa)(a+b)* S -> aS | bS | X X -> aaaY| bbbY Y -> aY| bY| S -> XYX X -> aX | bX |Y -> aaa | bbb
Convert to RE S -> aB | bA | A -> aS B -> bS
Remove Lambda S -> XaX| bX X -> XaX | b |
Remove unit S -> aX | Yb X -> S Y -> bY | b