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

→ Continue reading at Wired - Science

More from author

Related posts

Advertisment

Latest posts

‘Captain America: Brave New World’ surges to $100 million opening weekend | CNN Business

CNN  —  “Captain America: Brave New World” was No. 1 at the weekend box office and is projected...

Get a Lifetime of Powerful PDF Tools That Won’t Give You a PDF Headache

Disclosure: Our goal is to feature products and services that we think you'll find interesting and useful. If you purchase them, Entrepreneur may...

From flavored foam to ‘Friends,’ how coffee creamer became a $5 billion category | CNN Business

New York CNN  —  Stroll down the dairy aisle of your local grocer, and you’ll likely find a growing...