60 likes | 166 Views
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
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