cs.uwaterloo.ca/~shallit/Tal...
cs.uwaterloo.ca/~shallit/Tal...
Two parting observations: I got way better at this theory stuff in 4th year/grad school, and my undergrad students are evidently WAY better at this theory stuff than I was, based on their midterm answers.
Two parting observations: I got way better at this theory stuff in 4th year/grad school, and my undergrad students are evidently WAY better at this theory stuff than I was, based on their midterm answers.
5b. I deserve 0 marks here. But looking back at my notes, I think this question was implicitly asking to convert the CFG to CNF. So why phrase it that way?
5c. Nice parse tree.
5b. I deserve 0 marks here. But looking back at my notes, I think this question was implicitly asking to convert the CFG to CNF. So why phrase it that way?
5c. Nice parse tree.
4b. I mean, I did construct a PDA here, it just assumes all the a's come before the b's.
4b. I mean, I did construct a PDA here, it just assumes all the a's come before the b's.
3b. I don't even know what I was going for here. I must've vaguely remembered the Myhill–Nerode theorem and just ran with that.
3c. Okay, I made one small mistake here and lost all but one mark. I'm mad about this one.
3b. I don't even know what I was going for here. I must've vaguely remembered the Myhill–Nerode theorem and just ran with that.
3c. Okay, I made one small mistake here and lost all but one mark. I'm mad about this one.