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 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
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
Chemistry, 25.04.2021 14:40
Questions on the website: 13722367