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…
Yet another study says AI is bad for elections, and the rabbit hole gets worse
AI may be an election bomb waiting for someone to light the fuse
Voters cast their ballots on Election Day

Another election, another study has concluded that asking an AI chatbot for political guidance is a spectacularly bad idea. Research conducted during Hungary’s 2026 parliamentary election found that ChatGPT and Google Gemini offered not just inaccurate but also inconsistent and unreliable voting advice. The chatbots misclassified voter profiles, overlooked relevant parties, recommended parties absent from the ballot, and sometimes produced materially different answers when given the same information repeatedly.

AI keeps failing the voter test

Read more
Samsung’s humanoid robot ambitions are real, but factories come first
Samsung’s new robotics division has humanoids in its sights, although its immediate business is far more practical factory automation
Robot Touch Human Finger

Samsung wants a place in the humanoid race, but its new robotics push begins with machines built for factories rather than homes.

The CEO-led RX robotics division will initially focus on manufacturing robots. Samsung has separately identified humanoids as a priority, although it hasn’t announced a commercial model or explained where one fits into the division’s immediate plans.

Read more
The future of AI may depend on this one behind-the-scenes change
Running Claude on Android.

Whenever a new AI model arrives, it's easy to get caught up in the bells and whistles. We talk about how much smarter it is, how quickly it answers questions, or how realistic its images have become. But here's the thing: none of that matters much if the AI can't reliably work with the apps and services people use every day.

That's why an upcoming update to the Model Context Protocol (MCP) caught my attention. It isn't a new chatbot or a fancy AI model. In fact, most people will never even know it's happening. But it could quietly make the AI ecosystem a lot healthier. If you've never heard of MCP before, don't worry. Think of it as a shared language that lets AI assistants safely talk to apps like Gmail, Slack, calendars, databases, and countless other services. Instead of every company inventing its own way to make those connections, MCP gives everyone a common rulebook.

Read more