EXPLANATION
a's are written to STACK1
b's are written to STACK2
abbab was read by the 5th time. So, aa is the answer
PLEASE UP VOTE
U Question 13 2 pts You are given a machine as shown below: START PUSH26 READ...
Question 12 2 pts You are given a machine as shown below: START PUSH, 6 READ PUSH, b POP POP POP ACCEPT Using the approach discussed in the lecture video or follow the example in the textbook from page 480 to page 482, trace the execution of the input string on this machine:"abbaba". At every step, name the current STATE and write down the contents on the TAPE, STACK1, and STACK2. Then answer the following question: When the machine reaches...
Question 15 2 pts You are given a machine as shown below: START PUSH26 READ PUSH, b POP2 POP POP ACCEPT Using the approach discussed in the lecture video or follow the example in the textbook from page 480 to page 482, trace the execution of the input string on this machine: "bbaaa". At every step, name the current STATE and write down the contents on the TAPE, STACK1, and STACK2. Then answer the following question: When the machine reaches...
Question 15 2 pts You are given a machine as shown below: START PUSH26 READ PUSH, b POP2 POP POP ACCEPT Using the approach discussed in the lecture video or follow the example in the textbook from page 480 to page 482, trace the execution of the input string on this machine: "bbaaa". At every step, name the current STATE and write down the contents on the TAPE, STACK1, and STACK2. Then answer the following question: When the machine reaches...
Question 8 2 pts You are given a PM as shown below. START READ READ ACCEPT b ADD READ: ADD Using the approach discussed in the lecture video or follow the example in the textbook from page 459 to page 461, trace the paths of the following input strings on this PM: "bbabaaa". At every step, name the current state and the contents of the STORE. Then answer the following question: When the machine reaches and executes READ1 the second...
Question 10 2 pts You are given a PM as shown below: START READ READ ACCEPT ADD READ3 ADD Using the approach discussed in the lecture video or follow the example in the textbook from page 459 to page 461, trace the paths of the following input strings on this PM:"aaabbb. At every step, name the current state and the contents of the STORE. Then answer the following question: When the machine reaches and executes READ3 the second time, what...
Question 11 2 pts You are given a PM as shown below: START READ READ2 ACCEPT ADD READ, ADD Using the approach discussed in the lecture video or follow the example in the textbook from page 459 to page 461, trace the paths of the following input strings on this PM: "aaabbb". At every step, name the current state and the contents of the STORE. Then answer the following question: When the machine reaches and executes READ1 the third time,...
D Question 6 2 pts You are given a PM as shown below: START READ READ2 ACCEPT ADD a READ, ADDD Using the approach discussed in the lecture video or follow the example in the textbook from page 459 to page 461, trace the paths of the following input strings on this PM: "aabbbb". At every step, name the current state and the contents of the STORE. Then answer the following question: When the machine reaches and executes READ3 the...
You are given a PM as shown below: START READ READ ACCEPT b ADD READ ADD Using the approach discussed in the lecture video or follow the example in the textbook from page 459 to page 461, trace the paths of the following input strings on this PM: "bbabaaa". At every step, name the current state and the contents of the STORE. Then answer the following question: When the machine reaches and executes READ3 the third time, what is the...
You are given a PM as shown below: START READ READ2 ACCEPT b ADD a READ ADD Using the approach discussed in the lecture video or follow the example in the textbook from page 459 to page 461, trace the paths of the following input strings on this PM: "aabbbb". At every step, name the current state and the contents of the STORE. Then answer the following question: When the machine reaches and executes READ3 the first time, what is...
Question 2 U 4 pts You are given a machine as shown below: START PUSHED READ PUSH, b POP POP POP ACCEPT What is the name of this machine?