Skip to main content
  1. Home
  2. Emerging Tech
  3. Cars
  4. Computing
  5. News

Here's the most efficient route for a road trip through the lower 48 states

Add as a preferred source on Google

Squeezing the most fun possible into your vacation days is a challenge for anyone. If you’re a computer science researcher, however, it’s a challenge that comes with an answer.

Randy Olson is a postdoctoral researcher at the University of Pennsylvania, whose work involves biologically-inspired artificial intelligence. Recently he decided to merge his love of travel and algorithms by creating  formula to plan the most efficient U.S. road trip ever.

Recommended Videos

Olson started off by laying a few ground rules, such as the fact that his journey should enable him to drive to the capitol buildings in the maximum number of U.S. states possible — excluding Alaska and Hawaii because they would take too long to reach, or in the case of Hawaii, be impossible without a plane. He also wanted to avoid routes that would require him to travel through foreign countries, since entering and leaving these places required a passport and wasted time crossing borders.

As Olson tells Digital Trends, this is essentially a variation on the classic “traveling salesman problem,” referring to a routing conundrum that is among the most-studied challenges in optimization. “The traveling salesman problem is difficult to brute force because there are millions of ways to order your trip to the cities, yet there’s typically only one ‘best’ route,” he says, describing it as finding “a needle in a computerized haystack.” Fortunately, computers can help.

“If you’ve ever used Google Maps to get the directions between two addresses, that’s basically what we have to do here,” Olson writes on his blog. “Except this time, we need to look up 2,256 directions to get the ‘true’ distance between all 48 state capitols.” One Google Maps API, Python script, and clever routing algorithm later, and Olson had his journey meticulously planned — which you can check out here.

Whether he’s been able to actually go on it yet is another question, unfortunately. “I wish I could hop in a car and go on the trip right now,” he tells us. “Alas, work keeps me too busy to take months-long trips like this one. My trips are typically limited to weekend road trips lately, which is why I like that this ‘limited budget’ algorithm [can suggest] shorter trips as well.”

In the meantime, he’s been thinking of more things to optimize — including gas stops, walking tours around the cities he plans to visit, and even adding time constraints so he can visit timely activities along the way.

“There’s a ton of room for optimization when it comes to road trips,” Olson says. Now if only he could bring himself to actually take a vacation day or two.

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…
Google is making Gemini and Search work better with the apps you love
Gemini's guest list is growing, and your favorite apps are invited.
Gemini AI on a phone.

Google has been finding more ways to make Gemini a part of your daily routine, from putting together playlists to ordering groceries through your favorite apps. Now it's expanding those capabilities to more services, with Google Search joining in, too.

The company has announced a new Connected Apps Platform that makes it easier for developers to bring their services to both Gemini and Search. Alongside this, Google is adding new partners to its growing lineup, bringing more of the apps people already use into its AI ecosystem.

Read more
AI bots are now trying to sabotage public health policies, like banning disposable vapes
Thousands of AI bots voted in a public health poll to block sales restriction on disposable vapes. It's like Big Tobacco is back from the dead.
Woman smoking a vape.

In the broad context of AI and its perceived harms, health and medical risks often pop up in the conversation. The warnings even come from frontier AI labs, such as ChatGPT-maker OpenAI and Anthropic, both of which have warned about misusing AI to cook up bioweapons. Security experts have already spotted a few such incidents in the wild, especially with the usage of AI models without any solid guardrails. 

Well, it appears that the risks run deeper. As per an analysis appearing in the British Medical Journal (BMJ), AI bots are now being deployed to influence public policies governing health risks to citizens. In this instance, an attempt was made using AI bots to thwart regulations that aim to restrict the sale of disposable vapes, all while disguising the manipulation efforts as a response from real humans. 

Read more
A tiny smartphone gadget can detect some of the nastiest chemicals in your water
Scientists built a tiny smartphone gadget that can spot toxic 'forever chemicals'
Smartphone-connected drinking water safety sensor Featured

What if checking your drinking water for dangerous chemicals were as simple as plugging a tiny gadget into your smartphone? Researchers in Japan have developed a compact sensor that could make that possible, potentially bringing sophisticated water contamination testing out of expensive laboratories and into people's hands.

Scientists at the Okinawa Institute of Science and Technology (OIST) have created a portable device capable of detecting extremely low concentrations of PFAS, commonly known as "forever chemicals." The findings were published in the journal Biosensors and Bioelectronics, which demonstrate how an inexpensive sensor and a smartphone could make identifying potentially harmful chemicals in water a lot easier.

Read more