Question: Refer to the following PM: (i) Show that if an input has exactly one more a than b, it will crash on this PM in
Refer to the following PM:

(i) Show that if an input has exactly one more a than b, it will crash on this PM in state READ1.
(ii) Show that if an input string has exactly one more b than a , it will crash on this PM in state READ3.
(iii) Show that if an input string has more than one more a than b or more than one more b than a, then it will loop forever on this PM.
READ ADD a a START READ b READ3 b ADD b ACCEPT a
Step by Step Solution
3.40 Rating (162 Votes )
There are 3 Steps involved in it
i Let the input be abababababa Initially the reader is in state READ1 So we can read an a or b Let us assume that first we read an a and second we rea... View full answer
Get step-by-step solutions from verified subject matter experts
