Skip to main content

The ultimate sorting algorithm for alphabetizing your books efficiently

We’re suckers for the kind of “life hacks” that tell you that you’ve been doing some relatively mundane task all wrong, and that there’s a super-easy alternative which can massively speed up your ability to perform it.

That’s what a new video from the TED-Ed YouTube channel does, by showing how different sorting algorithms can transform our ability to quickly alphabetize a large number of books on a bookshelf.

Recommended Videos

The video starts by describing two common sorting algorithms; “bubble sort” and “insertion sort.” In the former, a sorting algorithm repeatedly steps through a list that needs to be sorted, compares each pair of adjacent items in turn, and then swaps them over if they happen to be in the wrong order. In the latter, new items are constantly “inserted” into previous sublists for an ever-growing search pile.

Both will work for this problem, but are less than efficient if time is of the essence.

The optimal answer, it turns out, is something called “quicksort,” which is regularly used by programmers for a variety of different applications — from sorting items by price to showing you the closest gas station on a GPS map.

To sort your pile of books the quicksort way, begin by taking a book from roughly the middle of the shelf. This becomes your “partition” book, and by sorting everything on its left and right into books which come either before or after it, you instantly reduce the total number of items to search against in sub-piles.

Once this is done, you then add partition books to the middle section of the two smaller piles, and then keep doing this until you have multiple partition books and a bunch of manageable piles to sort. After that, switch to a sorting algorithm like “insertion sort” to get them properly alphabetized.

Simple, right? Sure, it’s a pretty basic bit of computer science translated into the real world, but we bet that you’ll never think about alphabetizing in quite the same way again.

Now if we could only stop spending hours watching such “life hack” videos, we might actually get something done a bit more efficiently around here!

Please enable Javascript to view this content

Luke Dormehl
Former Digital Trends Contributor
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
EVs top gas cars in German reliability report — but one weak spot won’t quit
future electric cars 2021 volkswagen id4 official 32

Electric vehicles are quietly crushing old stereotypes about being delicate or unreliable, and the data now backs it up in a big way. According to Germany’s ADAC — Europe’s largest roadside assistance provider — EVs are actually more reliable than their internal combustion engine (ICE) counterparts. And this isn’t just a small study — it’s based on a staggering 3.6 million breakdowns in 2024 alone.
For cars registered between 2020 and 2022, EVs averaged just 4.2 breakdowns per 1,000 vehicles, while ICE cars saw more than double that, at 10.4 per 1,000. Even with more EVs hitting the road, they only accounted for 1.2% of total breakdowns — a big win for the battery-powered crowd.
Among standout performers, some cars delivered exceptionally low breakdown rates. The Audi A4 clocked in at just 0.4 breakdowns per 1,000 vehicles for 2022 models, with Tesla’s Model 3 right behind at 0.5. The Volkswagen ID.4, another popular EV, also impressed with a rate of 1.0 – as did the Mitsubishi Eclipse Cross at 1.3. On the flip side, there were some major outliers: the Hyundai Ioniq 5 showed a surprisingly high 22.4 breakdowns per 1,000 vehicles for its 2022 models, while the hybrid Toyota RAV4 posted 18.4.
Interestingly, the most common issue for both EVs and ICE vehicles was exactly the same: the humble 12-volt battery. Despite all the futuristic tech in EVs, it’s this old-school component that causes 50% of all EV breakdowns, and 45% for gas-powered cars. Meanwhile, EVs shine in categories like engine management and electrical systems — areas where traditional engines are more complex and failure-prone.
But EVs aren’t completely flawless. They had a slightly higher rate of tire-related issues — 1.3 breakdowns per 1,000 vehicles compared to 0.9 for ICE cars. That could be due to their heavier weight and high torque, which can accelerate tire wear. Still, this trend is fading in newer EVs as tire tech and vehicle calibration improve.
Now, zooming out beyond Germany: a 2024 Consumer Reports study in the U.S. painted a different picture. It found that EVs, especially newer models, had more reliability issues than gas cars, citing tech glitches and inconsistent build quality. But it’s worth noting that the American data focused more on owner-reported problems, not just roadside breakdowns.
So, while the long-term story is still developing, especially for older EVs, Germany’s data suggests that when it comes to simply keeping you on the road, EVs are pulling ahead — quietly, efficiently, and with far fewer breakdowns than you might expect.

Read more
You can now lease a Hyundai EV on Amazon—and snag that $7,500 tax credit
amazon autos hyundai evs lease ioniq 6 n line seoul mobility show 2025 mk08

Amazon has changed how we shop for just about everything—from books to furniture to groceries. Now, it’s transforming the way we lease cars. Through Amazon Autos, you can now lease a brand-new Hyundai entirely online—and even better, you’ll qualify for the full $7,500 federal tax credit if you choose an electric model like the Ioniq 5, Ioniq 6, or Kona EV.
Here’s why that matters: As of January 2025, Hyundai’s EVs no longer qualify for the tax credit if you buy them outright, due to strict federal rules about battery sourcing and final assembly. But when you lease, the vehicle is technically owned by the leasing company (Hyundai Capital), which allows it to be classified as a “commercial vehicle” under U.S. tax law—making it eligible for the credit. That savings is typically passed on to you in the form of lower lease payments.
With Amazon’s new setup, you can browse Hyundai’s EV inventory, secure financing, trade in your current vehicle, and schedule a pickup—all without leaving the Amazon ecosystem.
It’s available in 68 markets across the U.S., and pricing is fully transparent—no hidden fees or haggling. While Hyundai is so far the only automaker fully participating, more are expected to join over time.
Pioneered by the likes of Tesla, purchasing or leasing vehicles online has been a growing trend since the Covid pandemic.
A 2024 study by iVendi found that 74% of car buyers expect to use some form of online process for their next purchase. In fact, 75% said online buying met or exceeded expectations, with convenience and access to information cited as top reasons. The 2024 EY Mobility Consumer Index echoed this trend, reporting that 25% of consumers now plan to buy their next vehicle online—up from 18% in 2021. Even among those who still prefer to finalize the purchase at a dealership, 87% use online tools for research beforehand.
Meanwhile, Deloitte’s 2025 Global Automotive Consumer Study reveals that while 86% of U.S. consumers still want to test-drive a vehicle in person, digital tools are now a critical part of the buying journey.
Bottom line? Amazon is making it easier than ever to lease an EV and claim that tax credit—without the dealership hassle. If you're ready to plug in, it might be time to add to cart.

Read more
Humanoid robots race against humans at unique half-marathon in China
A humanoid robot running in a half marathon.

You may have seen robots dancing like the music icon Mick Jagger, doing parkour, or even painting on a canvas. Tesla’s Optimus humanoid robot is eagerly anticipated, while Google and Meta are also planning to enter the field. The competition in the East, however, is on a different level altogether.

China just put humanoid robots to the test in the world’s first race of its kind, where they ran alongside humans in a half-marathon. A total of 21 robots lined up for the event in the Yizhuang half-marathon, following a long spell of supervised learning on roads. 

Read more