A computer scientist at the Indian Institute of Technology Gandhinagar (IIT Gandhinagar) has developed an improved algorithm that addresses a longstanding limitation in calculating shortest distances across large networks. The breakthrough extends a mathematical accuracy guarantee to closely connected points while preserving the computational efficiency of an influential algorithm introduced in 1996.
The research, led by Dr. Manoj Gupta, Associate Professor at IIT Gandhinagar, focuses on the All-Pairs Shortest Paths (APSP) problem, a fundamental challenge in computer science that involves determining the shortest distance between every possible pair of points in a network.
By introducing a more sophisticated method for sampling network connections at multiple scales, Gupta improved the reliability of approximate distance calculations without increasing the algorithm's overall computational complexity.
The findings were presented at the 66th Annual Symposium on Foundations of Computer Science (FOCS 2025) in a paper titled Improved 2-Approximate Shortest Paths for close vertex pairs.
𝐓𝐡𝐞 𝐂𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞 𝐨𝐟 𝐅𝐢𝐧𝐝𝐢𝐧𝐠 𝐒𝐡𝐨𝐫𝐭𝐞𝐬𝐭 𝐏𝐚𝐭𝐡𝐬 𝐢𝐧 𝐋𝐚𝐫𝐠𝐞 𝐍𝐞𝐭𝐰𝐨𝐫𝐤𝐬
Finding the shortest route between two locations is a familiar task performed by navigation applications such as Google Maps. These systems analyse networks of roads and intersections to identify efficient routes between selected destinations.
However, calculating the shortest distance between every possible pair of points in a very large network presents a much more demanding computational challenge.
This problem extends beyond road navigation. Similar calculations are important in transportation systems, communication networks and biological structures involving interconnected components such as proteins and neurons.
In computer science, these networks are represented using mathematical structures called graphs.
A graph consists of points known as vertices, connected by links called edges. Depending on the application, vertices may represent cities, computers, subway stations or organs, while edges may represent roads, communication cables, railway lines or blood vessels.
The All-Pairs Shortest Paths problem requires determining the shortest distance between every pair of vertices in such a graph.
As networks increase in size, the number of distance calculations required can become extremely large, creating significant demands on computing time and memory.
𝐖𝐡𝐲 𝐄𝐱𝐚𝐜𝐭 𝐃𝐢𝐬𝐭𝐚𝐧𝐜𝐞 𝐂𝐚𝐥𝐜𝐮𝐥𝐚𝐭𝐢𝐨𝐧𝐬 𝐂𝐚𝐧 𝐁𝐞 𝐂𝐨𝐦𝐩𝐮𝐭𝐚𝐭𝐢𝐨𝐧𝐚𝐥𝐥𝐲 𝐄𝐱𝐩𝐞𝐧𝐬𝐢𝐯𝐞
Determining exact shortest distances across a massive network can require substantial computational resources.
For densely connected networks, some conventional algorithms operate in what mathematicians describe as cubic time.
This means that the computational workload can grow approximately in proportion to the cube of the number of vertices.
Consequently, doubling the number of points in a network can increase the amount of computation required by roughly eight times.
As the network becomes larger, the computing effort may therefore increase much faster than the number of points being analysed.
To address this challenge, computer scientists have investigated approximation algorithms, which estimate shortest distances instead of calculating exact values.
The objective is to produce sufficiently accurate estimates while significantly reducing the computational work required.
Such algorithms are particularly useful when processing extremely large networks, where obtaining exact answers for every possible pair of vertices may be computationally demanding.
𝐓𝐡𝐞 𝟏𝟗𝟗𝟔 𝐀𝐥𝐠𝐨𝐫𝐢𝐭𝐡𝐦 𝐓𝐡𝐚𝐭 𝐄𝐬𝐭𝐚𝐛𝐥𝐢𝐬𝐡𝐞𝐝 𝐚𝐧 𝐈𝐦𝐩𝐨𝐫𝐭𝐚𝐧𝐭 𝐁𝐞𝐧𝐜𝐡𝐦𝐚𝐫𝐤
An important advance occurred in 1996 when researchers Dor, Halperin and Zwick (DHZ) developed an efficient algorithm for approximating shortest-path distances.
Their method could estimate distances within twice the actual shortest distance for pairs of vertices that were sufficiently far apart, while operating in nearly optimal computational time.
This accuracy level is known as a 2-approximation.
For example, if the actual shortest distance between two locations is 10 kilometres, an estimate satisfying the 2-approximation guarantee would lie between 10 and 20 kilometres.
Rather than examining every possible route in a network, the DHZ algorithm relies on a relatively small selection of representative points, known as sampled vertices.
These sampled vertices act as intermediate reference points that allow the algorithm to estimate distances more efficiently.
The method provides substantial computational advantages, particularly when the vertices being compared are separated by relatively long distances.
However, its mathematical accuracy guarantee does not apply equally well to all pairs of vertices.
𝐓𝐡𝐞 𝐇𝐢𝐝𝐝𝐞𝐧 𝐖𝐞𝐚𝐤𝐧𝐞𝐬𝐬 𝐨𝐟 𝐭𝐡𝐞 𝐎𝐫𝐢𝐠𝐢𝐧𝐚𝐥 𝐀𝐥𝐠𝐨𝐫𝐢𝐭𝐡𝐦
The DHZ approach performs particularly well when estimating distances between points that are far apart.
Consider a journey between Delhi and Chennai. Because the two cities are separated by a considerable distance, the algorithm can often identify a sampled vertex close to the shortest route, producing an estimate within the guaranteed limit.
However, the same approach becomes less dependable when the points are close together.
For example, when estimating the shortest route between two neighbourhoods in the suburbs of Mumbai, the sampled vertices may be located too far from the most direct connection.
As a result, the algorithm may calculate a route considerably longer than the actual shortest path.
If two vertices are connected by a shortest path containing only two edges, but the sampled route contains five, the estimate exceeds twice the true distance.
The actual shortest path is two edges, so a 2-approximation would need to return a distance no greater than four edges.
An estimate of five therefore violates the required accuracy guarantee.
This limitation meant that the original DHZ algorithm could guarantee its approximation quality only when the vertices were sufficiently far apart.
For closer vertex pairs, the same guarantee could not always be maintained.
Improving this limitation while preserving the algorithm's computational efficiency remained an important challenge for nearly three decades.
𝐀 𝐍𝐞𝐰 𝐀𝐥𝐠𝐨𝐫𝐢𝐭𝐡𝐦 𝐓𝐡𝐚𝐭 𝐄𝐱𝐭𝐞𝐧𝐝𝐬 𝐭𝐡𝐞 𝐀𝐜𝐜𝐮𝐫𝐚𝐜𝐲 𝐆𝐮𝐚𝐫𝐚𝐧𝐭𝐞𝐞
Dr. Manoj Gupta addressed this challenge by developing an improved approximation algorithm capable of providing reliable distance estimates for vertex pairs that are much closer together than those covered by earlier methods.
The central achievement is that the algorithm extends the range of distances for which the 2-approximation guarantee applies without increasing the overall runtime.
Rather than replacing approximate distance calculations with computationally expensive exact calculations, Gupta refined the method used to select and analyse representative points within a network.
This allowed the algorithm to account for shorter connections that previous sampling approaches could overlook.
The improvement preserves the computational advantages of the original DHZ framework while strengthening its mathematical accuracy guarantee.
𝐇𝐨𝐰 𝐌𝐮𝐥𝐭𝐢-𝐒𝐜𝐚𝐥𝐞 𝐒𝐚𝐦𝐩𝐥𝐢𝐧𝐠 𝐈𝐦𝐩𝐫𝐨𝐯𝐞𝐬 𝐒𝐡𝐨𝐫𝐭𝐞𝐬𝐭-𝐏𝐚𝐭𝐡 𝐄𝐬𝐭𝐢𝐦𝐚𝐭𝐢𝐨𝐧
The breakthrough is based on a multi-scale sampling strategy.
Earlier methods relied on a collection of sampled vertices to estimate distances across a network.
Although effective for sufficiently distant vertices, this approach could overlook shorter paths when the selected reference points were poorly positioned relative to nearby vertices.
Gupta's method organises network information across multiple scales rather than depending on a single sampling layer.
By examining connections at different levels, the algorithm can account for shorter routes that might otherwise be missed.
This improves the reliability of distance estimates for closely connected vertices.
Importantly, the multi-scale strategy reduces the minimum distance required for the 2-approximation guarantee to hold without increasing the algorithm's overall computational complexity.
Returning to the transportation example, the original DHZ method could efficiently estimate sufficiently long journeys, such as the route between Delhi and Chennai.
The improved method extends dependable approximation guarantees to much shorter connections, including routes comparable to those between neighbourhoods in Mumbai.
The advance therefore strengthens the algorithm's accuracy across a wider range of distances while maintaining its speed.
𝐖𝐡𝐲 𝐏𝐫𝐞𝐬𝐞𝐫𝐯𝐢𝐧𝐠 𝐂𝐨𝐦𝐩𝐮𝐭𝐚𝐭𝐢𝐨𝐧𝐚𝐥 𝐄𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐜𝐲 𝐈𝐬 𝐈𝐦𝐩𝐨𝐫𝐭𝐚𝐧𝐭
The value of an approximation algorithm depends on its ability to balance accuracy with computational efficiency.
An algorithm that produces highly accurate estimates but requires excessive computing resources may offer limited advantages when processing enormous networks.
Similarly, an algorithm that runs quickly but provides unreliable estimates for important connections may not meet the requirements of a particular application.
Gupta's contribution addresses this balance by improving the mathematical accuracy guarantee without increasing the overall computational workload.
The algorithm retains the speed advantages of the earlier method while reducing the limitations associated with closely connected vertices.
This represents a significant improvement because the algorithm does not need to sacrifice efficiency to extend the range of distances it can approximate reliably.
𝐏𝐨𝐭𝐞𝐧𝐭𝐢𝐚𝐥 𝐑𝐞𝐥𝐞𝐯𝐚𝐧𝐜𝐞 𝐭𝐨 𝐋𝐚𝐫𝐠𝐞-𝐒𝐜𝐚𝐥𝐞 𝐍𝐞𝐭𝐰𝐨𝐫𝐤𝐬
Large interconnected networks are central to many modern technologies and scientific systems.
Internet infrastructure, transportation networks, social media platforms and artificial intelligence applications all involve complex relationships between connected points.
In these systems, determining distances or relationships efficiently can be important for analysing how information, connections or routes are organised.
For extremely large networks, exact distance calculations may require substantial computing resources.
Approximation algorithms provide an alternative by producing dependable estimates with less computational effort.
Gupta's research strengthens the theoretical methods available for addressing such problems.
The findings are mathematical and do not demonstrate immediate improvements to a particular navigation application, communication platform or commercial computing system.
Instead, they provide a more reliable approach to approximate shortest-path calculations that could inform future research involving large networks.
𝐀 𝐒𝐢𝐠𝐧𝐢𝐟𝐢𝐜𝐚𝐧𝐭 𝐀𝐝𝐯𝐚𝐧𝐜𝐞 𝐢𝐧 𝐓𝐡𝐞𝐨𝐫𝐞𝐭𝐢𝐜𝐚𝐥 𝐂𝐨𝐦𝐩𝐮𝐭𝐞𝐫 𝐒𝐜𝐢𝐞𝐧𝐜𝐞
The importance of Gupta's work lies in improving an influential result that has shaped shortest-path approximation research since 1996.
The original DHZ algorithm established an efficient method for estimating distances within twice the actual shortest path, but its guarantee was restricted to sufficiently distant vertex pairs.
By introducing multi-scale sampling, Gupta extended this guarantee to closer pairs while preserving the overall runtime.
The result demonstrates how improvements in the way network connections are sampled can strengthen algorithmic accuracy without increasing computational complexity.
It also provides new insight into how local connections can be used to understand distances across much larger networks.
Although the research is theoretical, it advances the mathematical foundations of efficient network analysis.
𝐁𝐫𝐞𝐚𝐤𝐢𝐧𝐠 𝐚 𝐃𝐞𝐜𝐚𝐝𝐞𝐬-𝐎𝐥𝐝 𝐀𝐥𝐠𝐨𝐫𝐢𝐭𝐡𝐦𝐢𝐜 𝐋𝐢𝐦𝐢𝐭
Dr. Manoj Gupta's research represents an important advance in the All-Pairs Shortest Paths problem, one of the fundamental challenges in graph algorithms.
By refining the sampling strategy introduced in earlier shortest-path approximation methods, the new algorithm extends the 2-approximation guarantee to much closer vertex pairs without increasing overall computational complexity.
The breakthrough improves the reliability of approximate distance calculations while retaining the efficiency required for analysing large networks.
Its significance lies not in demonstrating a new commercial technology, but in overcoming a longstanding theoretical limitation and strengthening the mathematical techniques used to study complex interconnected systems.
The findings illustrate how carefully designed algorithmic improvements can extend the capabilities of established computational methods, even decades after their introduction.
𝐉𝐨𝐮𝐫𝐧𝐚𝐥 𝐑𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞
M. Gupta, “Improved 2-Approximate Shortest Paths for Close Vertex Pairs,” Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science (FOCS) (2025). https://doi.org/10.1109/FOCS63196.2025.00065