Close Menu
New York Examiner News

    Subscribe to Updates

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

    What's Hot

    Ella Langley’s ‘Choosin’ Texas’ No. 1 on Hot 100 for 20th Week

    August 31, 2026

    X’s AI tool Grok now allows users to buy or lend crypto with MoonPay integration

    August 31, 2026

    Trump’s Presidency Is Dying And He Can’t Handle It

    August 31, 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

    Why Food Keeps Making Everybody Sick This Summer

    August 31, 2026

    NASA’s Nancy Grace Roman Telescope launches to space

    August 31, 2026

    Scientists Create the Littlest Big Bang to Study the Universe’s Origins

    August 30, 2026

    NASA’s Roman Space Telescope could find alien Earths—but not like you think

    August 30, 2026

    NASA’s Nancy Grace Roman Space Telescope Has a Hidden Technological Leap

    August 29, 2026

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

    August 29, 2026
    latest posts

    Ella Langley’s ‘Choosin’ Texas’ No. 1 on Hot 100 for 20th Week

    Ella Langley’s “Choosin’ Texas” achieves a landmark 20th week at No. 1 on the Billboard…

    X’s AI tool Grok now allows users to buy or lend crypto with MoonPay integration

    August 31, 2026

    Trump’s Presidency Is Dying And He Can’t Handle It

    August 31, 2026

    Fake Chrome update scam tied to malicious browser extension, warns Google

    August 31, 2026

    VLC crosses 7 billion downloads

    August 31, 2026

    Why Food Keeps Making Everybody Sick This Summer

    August 31, 2026

    Louisa Connolly-Burnham’s ‘KULT’ of darkly…

    August 31, 2026
    Categories
    • Books (1,462)
    • Business (6,365)
    • Events (70)
    • Film (6,300)
    • Lifestyle (4,373)
    • Music (6,427)
    • Politics (6,350)
    • Science (5,717)
    • Technology (6,298)
    • Television (5,988)
    • Uncategorized (9)
    • US News (6,353)
    popular posts

    Wyatt Russell on Dan Lafferty & the Chilling Finale

    [Warning: The following contains MAJOR spoilers for the Under the Banner of Heaven finale, “Blood…

    Fast avalanches may be cause by earthquake-like shifts in snow

    July 26, 2022

    Jill Biden Humiliated As She’s Met By Protesters At Vermont Fundraising Event

    March 22, 2024

    Blur set for O2 Silver Clef Award honour in July

    June 1, 2024
    Archives
    Browse By Category
    • Books (1,462)
    • Business (6,365)
    • Events (70)
    • Film (6,300)
    • Lifestyle (4,373)
    • Music (6,427)
    • Politics (6,350)
    • Science (5,717)
    • Technology (6,298)
    • Television (5,988)
    • Uncategorized (9)
    • US News (6,353)
    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

    Why Food Keeps Making Everybody Sick This Summer

    August 31, 2026

    Louisa Connolly-Burnham’s ‘KULT’ of darkly…

    August 31, 2026

    Ken Jennings Reveals Shocking Secret About His ‘Hoe’ Moment

    August 31, 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