Chat with us, powered by LiveChat Algorithm Development Discussion | Writedemy

Algorithm Development Discussion

Algorithm Development Discussion

Part 1 Stacks and Queues

Stacks and queues are similar except in how they process the entries. Stacks use FIFO, queues use LIFO.

  • Discuss which should be used in “real world” situations.
  • Reply to others with support for or arguments against their examples.

 

Part 2 Resond to Peer Reviews

Respond to two peer reviews

Peer 1 David

Stacks, which uses FILO (first-in-last-out), are great with recursion. Now in this case we do not see the stack or write the stack but if you remember recursion from the first week recursion runs all the way to the base case and works back to the original function call. Another thing stacks are good for is keeping track of every webpage you have been to so when you click the back or forward button it goes to the right page.

Queues, which uses FIFO (first-in-first-out), are great in any case where you want to maintain the order the instructions come in. For example, if 50 employees are trying to access a work database for information it would supply them the information in the order they requested the information. Queues also are good for computers themselves. Say you have a duel-core processor. This means it can only handle two instructions at a time. If it gets more than two instructions, it can use a queue to handle the instructions in the order given.

Peer 2 Toni

A helpful analogy is to think of a stack of books; you can remove only the top book, also you can add a new book on the top. a stack is either empty or it consists of a top and the rest which is a stack.

 

In the queue only two operations are allowed enqueue and dequeue. Enqueue means to insert an item into the back of the queue, dequeue means removing the front item. The difference between stacks and queues is in removing. In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order