Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:06:36+00:00 2026-06-10T06:06:36+00:00

Following is text snippet from Algorithms in C++ by Robert Sedwick on queues. Although

  • 0

Following is text snippet from Algorithms in C++ by Robert Sedwick on queues.

Although many applications that involve a queue of pending work
operate correctly no matter what rule is used to remove, the overall
running time or other resouce usage may be dependent on the rule. When
such applications involve a large number of “insert” and “remove”
operations on data structures with a large number of items in them,
performance differences are paramount.

My question is we have rule for removing for example LIFO queue removing last in last out, and for queue it is FIFO, but how it is related to insert for large number of items in them as mentioned in above paragraph. Can any one re-phrase above paragraph to have a clear understanding.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:06:38+00:00Added an answer on June 10, 2026 at 6:06 am

    What I think the author means is that you can simply use a FIFO or a LIFO queue, but better performance can be acquired in some scenarios by using an algorithm that tackles resource-heavy items in the queue first.

    Take for example an airport. A lot of suitcases come in at the check-in department. You can store them in the airplane in the same order they came in (FIFO), or you can put the large ones in first and then store the small ones, giving better storage use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following text is snippet from algorithms book. We could draw the binary trees
I am reading a algorithms book by S.DasGupta. Following is text snippet from the
I have user-extensions.js that contain the following code of snippet: Selenium.prototype.doTypeRepeated = function(locator, text)
I have the following code snippet I'm trying to get the text from: <span
I have the following source snippet from a book that I'm reading now. So
I am reading modern C++ design. Following is the text snippet taken from typeinfo
I was reading the following text from Stanford's Programming Paradigms class , and I
How would one modify the following snippet (in a tableView:cellForRowAtIndexPath: UITableViewController method) from the
Consider the following html snippet <!DOCTYPE html> <html> <head> <script type=text/javascript src=http://code.jquery.com/jquery-1.4.2.js ></script> <script
The following javascript snippet will change the type of an INPUT, for instance from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.