Skip to main content

New bee-inspired algorithm is ridiculously good at planning routes for delivery vehicles

routific bee algorithm delivery 8006921929 2057a4c8b1 o
Jim Smart
What does a bee’s “waggle dance” have to do with planning optimal delivery routes? For those of us who came up with the answer “almost certainly nothing,” that might explain why we’re not the brains behind Routific, a Vancouver-based startup which has developed a smart route optimization algorithm based on the way bees seek out nectar.

“Bees work in a colony,” Marc Kuo, founder and CEO of Routific, told Digital Trends. “They have scouts which go out to forage for nectar, which means exploring a lot of types of flowers over a long distance. As soon as a scout bee discovers a patch of flowers and returns to the hive with good quality nectar, it does a waggle dance to attract other bees which then go and explore that patch more closely.”

Inspired by this behavior, the algorithm Routific developed applies that concept to the world of logistics, by figuring out how a fleet of delivery vehicles can most optimally deliver packages to businesses or consumers. “The consumers are the flowers and the trucks are the bees,” Kuo continued. “What our algorithm figures out is the best route for the trucks to take to reach the consumers in a scenario where you might have 2,000 different addresses to deliver to and a fleet of 50 trucks. In that case, the question of how you sequence the delivery order to be optimal is incredibly complex.”

Routific - Dispatching Routes

It’s essentially a variation on the long-studied “traveling salesman problem” — one of the best-known computer science algorithms, designed to figure out the optimal path between points. However, where the travelling salesman problem usually has only one salesman, in this case there are multiple different vehicles to consider.

“If you have just 57 addresses to deliver to, you already have more than a quattuorvigintillion possible route combinations,” Kuo continued. “That’s 1 with 75 zeroes after it. It’s impossible for humans to find the optimal route in that case, but even for an algorithm it’s next to impossible if you ask it to try every possible combination of routes in turn to figure out the best one. You need to be a bit more tactical about it — and that’s what bees have built into their nature, and we have built into our algorithm.”

Making things even tougher is the plethora of other challenges which need to be taken into account for deliveries, including whether a package needs to be delivered during a precise time window, the overall capacity of a truck, whether an item needs to be shipped in a refrigerated vehicle, and more.

Where the bee analogy comes into play is the way that the algorithm asks the computer to handle the searching task. “Our CPU is like a bee which has a bunch of areas it explores,” Kuo continued. “Whenever one area looks to be more promising, it gathers the attention of the other CPU power to direct more resources to that specific area to explore that specific search space a bit more. In that way we can find optimal routes, or routes that are very close to optimality, very, very quickly.”

It’s not just faster, either. Kuo also said that the routes his algorithm comes up with are typically 40-percent shorter than the manually planned routes many of his customers previously used. This has obvious positive impacts in terms of fuel savings, hours spent on the road, and the cost of vehicle maintenance. “In some cases we’ve even been able to take vehicles off the road because the original plan our customers have been working with have been so inefficient,” he said.

It’s no wonder Routific is creating a bit of a — dare we say it? — buzz.

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
4 simple pieces of tech that helped me run my first marathon
Garmin Forerunner 955 Solar displaying pace information.

The fitness world is littered with opportunities to buy tech aimed at enhancing your physical performance. No matter your sport of choice or personal goals, there's a deep rabbit hole you can go down. It'll cost plenty of money, but the gains can be marginal -- and can honestly just be a distraction from what you should actually be focused on. Running is certainly susceptible to this.

A few months ago, I ran my first-ever marathon. It was an incredible accomplishment I had no idea I'd ever be able to reach, and it's now going to be the first of many I run in my lifetime. And despite my deep-rooted history in tech, and the endless opportunities for being baited into gearing myself up with every last product to help me get through the marathon, I went with a rather simple approach.

Read more
This bracelet helps you fall asleep faster and sleep longer
woman-in-bed-wearing-twilight-apollo-on-ankle

This content was produced in partnership with Apollo Neuroscience.
Have you been struggling to get the recommended seven hours of sleep? It's always frustrating when you get in bed at a reasonable time, then toss and turn for a hours before you actually sleep. The quality of that sleep is important too. If you're waking up multiple times during the night, you're likely not getting the quality REM cycle sleep that truly rejuvenates your body. If traditional remedies like herbal teas and noise machines just aren't helping, maybe it's time to try a modern solution. Enter the Apollo wearable.

Now we understand being a little skeptical. How can a bracelet on your wrist or ankle affect your sleep patterns? Certainly the answer to a better night's sleep can't be so simple. We considered these same things when we first heard of it. We'll dive deeper into the science behind the Apollo wearable, but suffice it to say that many people have experienced deeper, uninterrupted sleep while wearing one.
A non-conventional approach to better sleep

Read more
The 11 best Father’s Day deals that you can get for Sunday
Data from a workout showing on the screen of the Apple Watch Series 8.

Father's Day is fast approaching and there's still time to buy your beloved Dad a sweet new device to show him how much you love him. That's why we've rounded up the ten best Father's Day tech deals going on right now. There's something for most budgets here, including if you're able to spend a lot on your loved one. Read on while we take you through the highlights and remember to order fast so you don't miss out on the big day.
Samsung Galaxy Tab A8 -- $200, was $230

While it's the Plus version of the Samsung Galaxy Tab A8 that features in our look at the best tablets, the standard variety is still worth checking out. Saving your Dad the need to dig out their laptop or squint at a small phone screen, the Samsung Galaxy Tab A8 offers a large 10.5-inch LCD display and all the useful features you would expect. 128GB of storage means plenty of room for all your Dad's favorite apps as well as games too. A long-lasting battery and fast charging save him the need for a power source too often too.

Read more