The Fastest Way To Alphabetise Your Bookshelf

The Fastest Way To Alphabetise Your Bookshelf


If you have a lot of books on your bookshelf, alphabetizing it by author or title will make it easier to find specific books in the future. Here’s the fastest way to do it.

In this video from the TED-Ed YouTube channel, software engineer and educator Chand John explains how a simple sorting algorithm can get your bookshelf organised in no time. It’s called “QuickSort,” and it’s used by programmers in all kinds of applications. Online stores use it to sort items by price, and GPS maps use it to show you the nearest gas stations.

Start by pulling one book from the center of your shelf. This is your partition book. Compare every book on the shelf to your partition book, then place every book that goes before it on the left, and every book that goes after it on the right.

Now select another partition book in the middle of each partition and go through the same sorting process as shown in the video. You should be left with books all fairly close to where they need to be, and you can sort the rest with only a few swaps. Of course, if you’re not into alphabetising, there are other ways to plan out your bookshelves.

What’s the fastest way to alphabetize your bookshelf? [YouTube]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


One response to “The Fastest Way To Alphabetise Your Bookshelf”

Leave a Reply