Close Menu
Hollywood News Reporter
  • Home
  • Film
  • Television
  • Box Office
  • Reality TV
  • Music
  • Horror
  • Books
  • Technology
  • Politics
  • Cover Story
  • Contact
    • About
    • Privacy Policy
    • DMCA / Copyright Disclaimer
    • Amazon Disclaimer
    • Terms and Conditions

Subscribe to Updates

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

What's Hot

Here’s Everyone Kanye West Brought Out at His Homecoming Chicago Show

U.S. strikes 3 Iranian oil tankers after missile attacks on Navy ships

Is It Safe To Leave Your Phone’s Bluetooth Running All The Time?

Facebook X (Twitter) Instagram
Hollywood News Reporter
  • Home
  • Film
  • Television
  • Box Office
  • Reality TV
  • Music
  • Horror
  • Books
  • Technology
  • Politics
  • Cover Story
  • Contact
    • About
    • Privacy Policy
    • DMCA / Copyright Disclaimer
    • Amazon Disclaimer
    • Terms and Conditions
Hollywood News Reporter
You are at:Home»Technology»This New Algorithm for Sorting Books or Files Is Close to Perfection
Technology

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

By AdminFebruary 16, 2025
Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
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 Reddit WhatsApp Telegram Email
Previous ArticleOur Valentine’s Day Book Guide Will Have You Falling In Love With Your Next Read
Next Article Lady Gaga Haus Labs B Structural Lengthening Mascara Review, Buy Now

Related Posts

Is It Safe To Leave Your Phone’s Bluetooth Running All The Time?

September 6, 2026

There May Not Be an iPhone 18 This Year

September 5, 2026

How To See What’s Taking Up Space On Your Windows PC

September 5, 2026

Japan Is Launching a Probe to Collect the First-Ever Samples From a Martian Moon

September 4, 2026

Audacity’s New Look Is Finally Here, Along With Its Largest Feature Update In Years

September 4, 2026

Nvidia RTX Spark ‘Superchip’: The First AI PCs Are Here

September 3, 2026
Recent Posts

Three reasons the EU chief’s Greenland trip matters as Trump pushes in

There May Not Be an iPhone 18 This Year

Biographies & Memoirs to Add to Your TBR

Indie Films Opening Sept. 4: ‘Sara Bareilles: Good Grief’, ‘Onslaught’

Jessica Alba ‘Summered’ Like Never Before With Her Kids & Boyfriend

‘Ignore It’: Lily Collias to Star in Feature Version of the Viral YouTube Horror Short — Watch It Here

7 Burning ‘Bridgerton’ Questions Season 5 Needs to Answer

Categories
  • Books (2,331)
  • Box Office (1,713)
  • Cover Story (62)
  • Featured Stories (37)
  • Film (2,348)
  • Horror (2,335)
  • Music (2,401)
  • Politics (1,500)
  • Reality TV (1,790)
  • Technology (2,341)
  • Television (2,216)
  • Uncategorized (1)
Archives
Useful Links
  • About
  • Contact
  • Privacy Policy
  • DMCA / Copyright Disclaimer
  • Amazon Disclaimer
  • Terms and Conditions
Popular Posts

All-Star Cretin Family Celebrate Ramones’ 50th Anniversary at Cemetery

August 31, 2026

Coupang dispute raises U.S.-South Korea tariff tensions

August 31, 2026

Why Food Keeps Making Everybody Sick This Summer

August 31, 2026

Science Fiction and Fantasy Novellas to Devour This Week

August 31, 2026

‘Buddy’ Busts Out, Sets Records For Roadside Attractions

August 31, 2026

Scott Wolf’s Ex-Wife Says She Thought She Was in the CIA During ‘Drug-Induced Mania’

August 31, 2026

Soul Snatchers Has More Theology Than Its 104 Minutes Can Hold

August 31, 2026
Categories
  • Books (2,331)
  • Box Office (1,713)
  • Cover Story (62)
  • Featured Stories (37)
  • Film (2,348)
  • Horror (2,335)
  • Music (2,401)
  • Politics (1,500)
  • Reality TV (1,790)
  • Technology (2,341)
  • Television (2,216)
  • Uncategorized (1)
Recent Posts
  • Here’s Everyone Kanye West Brought Out at His Homecoming Chicago Show
  • U.S. strikes 3 Iranian oil tankers after missile attacks on Navy ships
  • Is It Safe To Leave Your Phone’s Bluetooth Running All The Time?
  • More Than a Business Memoir: Persevering to Achieve Success in Life & the Workplace
  • ‘The Odyssey’ Crosses $1 Billion at International Box Office
  • Lili Reinhart’s Plunging Emanuel Ungaro Top Hangs by the Thinnest Strings
  • Buddy Makes Childhood Trauma Fun Again
Our Picks

Here’s Everyone Kanye West Brought Out at His Homecoming Chicago Show

U.S. strikes 3 Iranian oil tankers after missile attacks on Navy ships

Is It Safe To Leave Your Phone’s Bluetooth Running All The Time?

More Than a Business Memoir: Persevering to Achieve Success in Life & the Workplace

© 2026 Hollywood News Reporter. 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