subject

Suppose we want to make a 10 item queue starting from location x4000. in class, we discussed using a head and a tail pointer to keep track of the beginning and end of the queue. in fact, we suggested that the head pointer could point to the first element that we would remove from the queue and the tail pointer could point the last element that we have added the queue. it turns out that our suggestion does not work. part a) what is wrong with our suggestion? (hint: how do we check if the queue is full? how do we check if it is empty? )part b) what simple change could be made to our queue to resolve this problem? part c) using your correction, write a few instructions that check if the queue is full. use r3 for the head pointer and r4 for the tail pointer. part d) using your correction, write a few instructions that check if the queue is empty. again, using r3 for the head pointer and r4 for the tail pointer.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:50
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
You know the right answer?
Suppose we want to make a 10 item queue starting from location x4000. in class, we discussed using a...
Questions
question
Mathematics, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
Questions on the website: 13722361