Finding the shortest route between two locations is something that navigation apps like Google Maps do every day. Behind the scenes, sophisticated algorithms analyze road networks and intersections to identify efficient paths. But what if a computer needed to calculate the shortest distance between every possible pair of locations on a huge network? That challenge extends far beyond maps. Similar calculations are important for transportation systems, communication networks, and even biological structures involving proteins, neurons, or other interconnected components. As these networks grow, determining the shortest routes between all their points becomes increasingly difficult. Computer scientists call this the all-pair shortest path problem (APSP). It involves finding the shortest distance between each pair of points on a graph. In this context, a ‘graph’ is simply a collection of points (called vertices) joined by connections (called edges). Those points could represent cities, computers, subway stations, or organs, while the connections could represent highways, cables, railway lines, or blood vessels. Why calculating shortest paths is so difficult Determining the exact shortest distances across a massive network can consume enormous amounts of computing time and memory. In densely connected networks, some conventional approaches require what mathematicians call cubic time. That means doubling the number of points can increase the computational workload by about eight times. Because the computation (work) required can grow much faster than the network itself, researchers have spent decades searching for more efficient methods. One promising solution is to use approximation algorithms, which calculate estimates rather than exact answers. The goal is to produce distances that are sufficiently accurate while drastically reducing the amount of calculations required. A major breakthrough occurred in 1996, when researchers Dor, Halperin, and Zwick (DHZ) developed a method capable of producing distance estimates within twice the actual shortest distance for sufficiently distant points, while operating at near-optimal time. This level of precision is known as “approximation 2.” For example, if the shortest possible route between two locations is 10 kilometers, an estimate that satisfies this guarantee would be between 10 and 20 kilometers. Instead of examining all possible paths, the DHZ approach uses a relatively small selection of points in the network (called sampled vertices). These strategically selected points serve as shortcuts that help the algorithm estimate distances more efficiently. A clever shortcut with a hidden weakness The approach works particularly well when the points being compared are far apart. Consider a trip between Delhi and Chennai. Because cities are separated by a considerable distance, the algorithm can often find a sampling point close to the shortest route. This allows you to calculate an estimate that stays within the promised limit of twice the actual distance. However, the same strategy becomes less reliable when the two points are close together. Imagine calculating the shortest route between two neighborhoods in suburban Mumbai. The sampled points could be located too far from the most direct connection, forcing the algorithm to estimate a much longer route. For example, two points could be connected by a path that contains only two edges, but the sampled path could contain five. Because five exceeds twice the actual distance of two, the result violates the “at most twice” accuracy guarantee. This weakness meant that the mathematical guarantee of the original algorithm applied only when the points were sufficiently separated. For tighter connections, the same level of precision cannot always be guaranteed. That limitation remained a challenge for nearly three decades. New algorithm breaks decades-old limit Now, Dr. Manoj Gupta, associate professor at the Indian Institute of Technology Gandhinagar, has introduced a refinement that extends the accuracy guarantee to points much closer together than previous methods allowed. Gupta presented his research at the 66th Annual Symposium on Foundations of Computing (FOCS 2025) in a paper titled “Improved Approximate 2-Shortest Paths for Nearby Vertex Pairs.” The achievement is particularly significant because the improved algorithm preserves the overall execution time of the previous approach while expanding the range of distances for which reliable estimates can be guaranteed. The breakthrough comes from rethinking how points within the network are sampled. Traditional methods relied on a collection of representative points to estimate distances. Instead, Gupta’s approach introduces a multi-scale sampling strategy that organizes information about the network at several different levels. By analyzing connections at multiple scales rather than relying on a single sampling layer, the algorithm can take into account shorter paths that previous approaches might miss. This more sophisticated sampling technique reduces the minimum distance required for the 2-round guarantee to be maintained, without increasing the overall computational complexity of the algorithm. Returning to the transportation example, the original DHZ method could efficiently estimate sufficiently long trips, such as the route between Delhi and Chennai. The improved approach extends that reliable accuracy to much shorter connections (such as suburban Mumbai). The central achievement is not simply a new way of estimating distances. It is the ability to provide the same guarantee of mathematical accuracy over a wider range of distances while maintaining computational efficiency. Why this advance in computing is important Massive networks are fundamental to modern technology. Internet infrastructure, transportation systems, social media platforms, and artificial intelligence applications depend on the analysis of complicated networks of interconnected information. In many situations, obtaining a perfectly accurate distance is less important than quickly producing a reliable estimate. When networks contain enormous numbers of connections, the ability to balance accuracy and speed becomes especially valuable. Gupta’s research strengthens the mathematical foundations of algorithms designed to address these challenges. Although the findings are theoretical and do not establish immediate improvements for specific commercial systems, they offer a better way to approach distance calculations in large networks. The work also provides insights into how the overall structure of a network can be understood through carefully selected local connections. By improving the way these relationships are sampled and analyzed, researchers can get closer to efficiently estimating distances between each pair of points in a massive system. Progress in theoretical computer science often occurs through incremental refinements rather than dramatic changes. Therefore, improving an influential result dating back to 1996 represents a significant advance. By extending a long-standing accuracy guarantee without increasing overall execution time, the new algorithm pushes an important mathematical limit and strengthens the techniques underlying some of today’s most complex connected systems.