Britannica AI Icon

shortest-path problem

computer science

Quick Summary

The shortest-path problem is a fundamental concept in computer science and graph theory. It involves finding the most efficient route between two points in a network. Imagine a map with cities (nodes) and roads (edges), where each road has a specific distance. The goal is to determine the path that connects a starting city to a destination city with the minimum total distance.

This problem is crucial for applications like navigation systems and network routing. While simple cases can be solved easily, the complexity increases significantly with the number of nodes and edges, leading to what are known as NP-complete problems, for which finding an efficient, guaranteed optimal solution is challenging.12

Summary created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

Ask Britannica AI about this topic

Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.