Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 24.06.2019 04:30, juliemiddleton05
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, iicekingmann
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, rayniqueamee2002
When can you access the bios setup utility?
Answers: 1
Do you know the correct answer?
Suppose we want to make a 10 item queue starting from location x4000. in class, we discussed using a...

Questions in other subjects:

Konu
Mathematics, 01.10.2019 13:30
Konu
Geography, 01.10.2019 13:30