Close Menu
New York Examiner News

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Young Thug YSL Records Surprise-Drop ‘Slime Language 3’ Double Album

    August 29, 2026

    How the Strait of Hormuz crisis forced Asia to rewrite its oil and gas energy strategy

    August 29, 2026

    Treasury Sec. Scott Bessent Schools Elizabeth Warren – Offers Her ‘Foreign Exchange for Dummies’ * The Gateway Pundit * by Mike LaChance

    August 29, 2026
    Facebook X (Twitter) Instagram
    New York Examiner News
    • Home
    • US News
    • Politics
    • Business
    • Science
    • Technology
    • Lifestyle
    • Music
    • Television
    • Film
    • Books
    • Contact
      • About
      • Amazon Disclaimer
      • DMCA / Copyrights Disclaimer
      • Terms and Conditions
      • Privacy Policy
    New York Examiner News
    Home»Science»This New Algorithm for Sorting Books or Files Is Close to Perfection
    Science

    This New Algorithm for Sorting Books or Files Is Close to Perfection

    By AdminFebruary 17, 2025
    Facebook Twitter Pinterest LinkedIn WhatsApp Email Reddit Telegram
    This New Algorithm for Sorting Books or Files Is Close to Perfection


    The original version of this story appeared in Quanta Magazine.

    Computer scientists often deal with abstract problems that are hard to comprehend, but an exciting new algorithm matters to anyone who owns books and at least one shelf. The algorithm addresses something called the library sorting problem (more formally, the “list labeling” problem). The challenge is to devise a strategy for organizing books in some kind of sorted order—alphabetically, for instance—that minimizes how long it takes to place a new book on the shelf.

    Imagine, for example, that you keep your books clumped together, leaving empty space on the far right of the shelf. Then, if you add a book by Isabel Allende to your collection, you might have to move every book on the shelf to make room for it. That would be a time-consuming operation. And if you then get a book by Douglas Adams, you’ll have to do it all over again. A better arrangement would leave unoccupied spaces distributed throughout the shelf—but how, exactly, should they be distributed?

    This problem was introduced in a 1981 paper, and it goes beyond simply providing librarians with organizational guidance. That’s because the problem also applies to the arrangement of files on hard drives and in databases, where the items to be arranged could number in the billions. An inefficient system means significant wait times and major computational expense. Researchers have invented some efficient methods for storing items, but they’ve long wanted to determine the best possible way.

    Last year, in a study that was presented at the Foundations of Computer Science conference in Chicago, a team of seven researchers described a way to organize items that comes tantalizingly close to the theoretical ideal. The new approach combines a little knowledge of the bookshelf’s past contents with the surprising power of randomness.

    “It’s a very important problem,” said Seth Pettie, a computer scientist at the University of Michigan, because many of the data structures we rely upon today store information sequentially. He called the new work “extremely inspired [and] easily one of my top three favorite papers of the year.”

    Narrowing Bounds

    So how does one measure a well-sorted bookshelf? A common way is to see how long it takes to insert an individual item. Naturally, that depends on how many items there are in the first place, a value typically denoted by n. In the Isabel Allende example, when all the books have to move to accommodate a new one, the time it takes is proportional to n. The bigger the n, the longer it takes. That makes this an “upper bound” to the problem: It will never take longer than a time proportional to n to add one book to the shelf.

    The authors of the 1981 paper that ushered in this problem wanted to know if it was possible to design an algorithm with an average insertion time much less than n. And indeed, they proved that one could do better. They created an algorithm that was guaranteed to achieve an average insertion time proportional to (log n)2. This algorithm had two properties: It was “deterministic,” meaning that its decisions did not depend on any randomness, and it was also “smooth,” meaning that the books must be spread evenly within subsections of the shelf where insertions (or deletions) are made. The authors left open the question of whether the upper bound could be improved even further. For over four decades, no one managed to do so.

    However, the intervening years did see improvements to the lower bound. While the upper bound specifies the maximum possible time needed to insert a book, the lower bound gives the fastest possible insertion time. To find a definitive solution to a problem, researchers strive to narrow the gap between the upper and lower bounds, ideally until they coincide. When that happens, the algorithm is deemed optimal—inexorably bounded from above and below, leaving no room for further refinement.



    Original Source Link

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Email Reddit Telegram
    Previous ArticleBrave New World Faces Double Standard for Black Hero
    Next Article Can sim drivers make the shift to F1? Max Verstappen thinks so

    RELATED POSTS

    Where are all the aliens? A new book explores possible answers

    August 29, 2026

    There Are So Many Conspiracy Theories About Dolly Parton and Vaccines

    August 28, 2026

    Tropical Storm Dolly forms in the Atlantic

    August 28, 2026

    Submit Your Questions: The Great Data Center Backlash

    August 27, 2026

    Is there a ‘window of opportunity’ to prevent Alzheimer’s in women?

    August 27, 2026

    A Mutation Is Making It Easier for Drug-Resistant Malaria to Spread

    August 26, 2026
    latest posts

    Young Thug YSL Records Surprise-Drop ‘Slime Language 3’ Double Album

    Young Thug and his YSL Records surprise-dropped the Slime Language 3 double album late Friday…

    How the Strait of Hormuz crisis forced Asia to rewrite its oil and gas energy strategy

    August 29, 2026

    Treasury Sec. Scott Bessent Schools Elizabeth Warren – Offers Her ‘Foreign Exchange for Dummies’ * The Gateway Pundit * by Mike LaChance

    August 29, 2026

    Greg Abbott orders pause on Flock Safety funding amid privacy concerns

    August 29, 2026

    Nvidia CEO Jensen Huang Took a Call From Donald Trump in the Middle of an All-Hands

    August 29, 2026

    Where are all the aliens? A new book explores possible answers

    August 29, 2026

    4 Months Later, Oliver Queen’s Green Arrow Clone Is DC’s Biggest Summer Mystery

    August 29, 2026
    Categories
    • Books (1,457)
    • Business (6,360)
    • Events (70)
    • Film (6,295)
    • Lifestyle (4,368)
    • Music (6,422)
    • Politics (6,345)
    • Science (5,712)
    • Technology (6,293)
    • Television (5,983)
    • Uncategorized (9)
    • US News (6,348)
    popular posts

    Rachel Brosnahan & Alex Borstein Explain That ‘Jeopardy!’ Ending

    [Warning: The below contains MAJOR spoilers for The Marvelous Mrs. Maisel Season 5, Episode 9…

    It feels like swimming in trauma

    January 12, 2026

    WATCH LIVE ON RSBN: Trump Save America Rally in Mendon, Illinois

    June 26, 2022

    White Buses with No Logos or Insignia Release Hundreds of Illegal Aliens to City Street in San Diego (VIDEO) | The Gateway Pundit

    September 15, 2023
    Archives
    Browse By Category
    • Books (1,457)
    • Business (6,360)
    • Events (70)
    • Film (6,295)
    • Lifestyle (4,368)
    • Music (6,422)
    • Politics (6,345)
    • Science (5,712)
    • Technology (6,293)
    • Television (5,983)
    • Uncategorized (9)
    • US News (6,348)
    About Us

    We are a creativity led international team with a digital soul. Our work is a custom built by the storytellers and strategists with a flair for exploiting the latest advancements in media and technology.

    Most of all, we stand behind our ideas and believe in creativity as the most powerful force in business.

    What makes us Different

    We care. We collaborate. We do great work. And we do it with a smile, because we’re pretty damn excited to do what we do. If you would like details on what else we can do visit out Contact page.

    Our Picks

    Where are all the aliens? A new book explores possible answers

    August 29, 2026

    4 Months Later, Oliver Queen’s Green Arrow Clone Is DC’s Biggest Summer Mystery

    August 29, 2026

    Jelly Roll Shocks With Alleged Romance Bunnie Gets Groove Back

    August 29, 2026
    © 2026 New York Examiner News. All rights reserved. All articles, images, product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Terms & Conditions and Privacy Policy.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
    Cookie SettingsAccept All
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    SAVE & ACCEPT