WormHole is a two-phase algorithm for answering many shortest-path queries on large, power-law (core-periphery) networks with limited node access. It first preprocesses just enough of the graph to extract a dense, sublinear “inner ring” core. At query time, it runs truncated BiBFS to detect same-community cases; otherwise it routes both ends to the outer ring, hops into the inner ring, and finds a path there—returning exact paths in common cases and near-shortest paths otherwise. The payoff: far fewer node queries and memory, fast responses, and low mean additive error across queries.WormHole is a two-phase algorithm for answering many shortest-path queries on large, power-law (core-periphery) networks with limited node access. It first preprocesses just enough of the graph to extract a dense, sublinear “inner ring” core. At query time, it runs truncated BiBFS to detect same-community cases; otherwise it routes both ends to the outer ring, hops into the inner ring, and finds a path there—returning exact paths in common cases and near-shortest paths otherwise. The payoff: far fewer node queries and memory, fast responses, and low mean additive error across queries.

Finding Shortest Paths Faster With Less Data

2025/10/15 21:00
5 min read
For feedback or concerns regarding this content, please contact us at crypto.news@mexc.com

Abstract and 1. Introduction

1.1 Our Contribution

1.2 Setting

1.3 The algorithm

  1. Related Work

  2. Algorithm

    3.1 The Structural Decomposition Phase

    3.2 The Routing Phase

    3.3 Variants of WormHole

  3. Theoretical Analysis

    4.1 Preliminaries

    4.2 Sublinearity of Inner Ring

    4.3 Approximation Error

    4.4 Query Complexity

  4. Experimental Results

    5.1 WormHole𝐸, WormHole𝐻 and BiBFS

    5.2 Comparison with index-based methods

    5.3 WormHole as a primitive: WormHole𝑀

References

1.2 Setting

We consider the problem of constructing a data structure for approximately answering shortest-path inquiries between pairs

\

\ of vertices (𝑠,𝑡) in an undirected graph𝐺, given limited query access to the graph.

\ Query model. Access to the network is given through the standard node query model [10, 14], where we start with an arbitrary seed vertex as the “access point” to the network, and querying a node 𝑣 reveals its list of neighbors Γ(𝑣). Unlike existing index-based solutions, which perform preprocessing on the whole graph, we aim for a solution that queries and stores only a small fraction of the nodes in the network.

\ Objective. Following the initialization of the data structure, the task is to answer multiple shortest path inquiries, where each inquiry SP(𝑠,𝑡) needs to be answered with a valid path 𝑝0𝑝1 …𝑝ℓ between 𝑠 = 𝑝0 and 𝑡 = 𝑝ℓ , and the objective is to minimize the mean additive error measured over all inquiries. The additive error for an inquiry SP(𝑠,𝑡) is the difference between the length of the returned𝑠–𝑡 path and the actual shortest distance between 𝑠 and 𝑡 in 𝐺. Depending on the specific application, one would like to minimize (a subset of) the additive error, running time, memory and/or node queries.

\ Core-periphery structure. The degree distribution in social and information networks often follows a power-law distribution with exponent 2<𝛽 <3, which results in a core-periphery structure [9, 43, 50, 52, 63], where the core is a highly connected component with good expansion properties, consisting of higher degree nodes, while the periphery is a collection of small, poorly connected components of low degree.

\ Our data structure is designed for networks exhibiting these structural characteristics. It takes advantage of the structure by first performing a preprocessing step to acquire (parts of) the core of the network, and then answering approximate shortest path inquiries by routing through the core. The working hypothesis is that pairs of nodes that are sufficiently far apart will typically have the shortest path between them (or close to it) routed through the higher degree parts of the network. This is somewhat reminiscent of approaches based on the highway dimension [1–3] for routing in road networks, although the structural characteristics of these network types differ considerably

\

1.3 The algorithm

WormHole builds an explicit hierarchical core-periphery type structure with a sublinear inner ring and provides a framework which uses this structure to answer shortest path inquiries. There are two phases:

\ • A preprocessing step where we decompose the graph into three partitions, storing only the smallest one: a highly dense subgraph of sublinear size.

\ • The phase where we answer inquiries: here the algorithm (approximately) answers shortest path inquiries of the form SP(𝑠,𝑡) for arbitrary vertex pairs (𝑠,𝑡).

\ We elaborate on the two phases.

\ 1.3.1 The decomposition. It is well-documented that social networks exhibit a core-periphery structure; see, e.g., [43, 50, 52, 63] and the many references within. The core is a highly-connected component with good expansion properties and smaller effective diameter. The periphery, denoted P, consists of smaller isolated communities that connect to the core, but are sparsely connected internally, and whose union is of linear size [16]. Therefore, when answering shortest path inquiries, it is reasonable to first check if the two vertices are in the same peripheral community, and otherwise route through the core.

\ \

\ \ 1.3.3 Answering shortest-path queries. In the second phase, given a query SP(𝑠,𝑡), WormHole does the following. First, it checks if the two vertices are in the same peripheral component, by performing a truncated BiBFS from both 𝑠 and 𝑡 up to depth two. If the two trees collide, it returns the shortest path between 𝑠 and 𝑡. Otherwise, WormHole continues both BFS traversals until it reaches the outer ring (from both 𝑠 and 𝑡). From here, it takes a single step to reach the inner ring, and then performs a restricted BiBFS on the subgraph induced by the inner ring vertices. We note that the choice of BiBFS here is arbitrary, and we can use any shortest-path algorithm (including modern index-based approaches, initialized only on the inner core) as a black-box to find a shortest path in the inner ring.

\ Figure 3 illustrates a few typical cases encountered by the algorithm; in the first two cases the algorithm returns a true shortest path, and in the third case the returned path is not a shortest path (thus incurring a nonzero additive error).

\ We stress that a single decomposition is subsequently used to answer all shortest path queries. Theorem 1.1 provides a strong theoretical guarantee on the performance of WormHole. It is worth emphasizing that our notion of approximation is inspired by practical relaxations, and is distinct from the one usually considered in theoretical works.

\

:::info Authors:

(1) Talya Eden, Bar-Ilan University (talyaa01@gmail.com);

(2) Omri Ben-Eliezer, MIT (omrib@mit.edu);

(3) C. Seshadhri, UC Santa Cruz (sesh@ucsc.edu).

:::


:::info This paper is available on arxiv under CC BY 4.0 license.

:::

\

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact crypto.news@mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Here’s How Consumers May Benefit From Lower Interest Rates

Here’s How Consumers May Benefit From Lower Interest Rates

The post Here’s How Consumers May Benefit From Lower Interest Rates appeared on BitcoinEthereumNews.com. Topline The Federal Reserve on Wednesday opted to ease interest rates for the first time in months, leading the way for potentially lower mortgage rates, bond yields and a likely boost to cryptocurrency over the coming weeks. Average long-term mortgage rates dropped to their lowest levels in months ahead of the central bank’s policy shift. Copyright{2018} The Associated Press. All rights reserved. Key Facts The central bank’s policymaking panel voted this week to lower interest rates, which have sat between 4.25% and 4.5% since December, to a new range of 4% and 4.25%. How Will Lower Interest Rates Impact Mortgage Rates? Mortgage rates tend to fall before and during a period of interest rate cuts: The average 30-year fixed-rate mortgage dropped to 6.35% from 6.5% last week, the lowest level since October 2024, mortgage buyer Freddie Mac reported. Borrowing costs on 15-year fixed-rate mortgages also dropped to 5.5% from 5.6% as they neared the year-ago rate of 5.27%. When the Federal Reserve lowered the funds rate to between 0% and 0.25% during the pandemic, 30-year mortgage rates hit record lows between 2.7% and 3% by the end of 2020, according to data published by Freddie Mac. Consumers who refinanced their mortgages in 2020 saved about $5.3 billion annually as rates dropped, according to the Consumer Financial Protection Bureau. Similarly, mortgage rates spiked around 7% as interest rates were hiked in 2022 and 2023, though mortgage rates appeared to react within weeks of the Fed opting to cut or raise rates. How Do Treasury Bonds Respond To Lower Interest Rates? Long-term Treasury yields are more directly influenced by interest rates, as lower rates tend to result in lower yields. When the Fed pushed rates to near zero during the pandemic, 10-year Treasury yields fell to an all-time low of 0.5%. As…
Share
BitcoinEthereumNews2025/09/18 05:59
Tunis–Carthage Airport Expansion Targets Capacity Surge

Tunis–Carthage Airport Expansion Targets Capacity Surge

Tunisia’s Tunis–Carthage airport expansion is set to transform the country’s aviation capacity as authorities plan a $1 billion investment to significantly increase
Share
Furtherafrica2026/03/10 13:00
Hoskinson to Attend Senate Roundtable on Crypto Regulation

Hoskinson to Attend Senate Roundtable on Crypto Regulation

The post Hoskinson to Attend Senate Roundtable on Crypto Regulation appeared on BitcoinEthereumNews.com. Hoskinson confirmed for Senate roundtable on U.S. crypto regulation and market structure. Key topics include SEC vs CFTC oversight split, DeFi regulation, and securities rules. Critics call the roundtable slow, citing Trump’s 2025 executive order as faster. Cardano founder Charles Hoskinson has confirmed that he will attend the Senate Banking Committee roundtable on crypto market structure legislation.  Hoskinson left a hint about his attendance on X while highlighting Journalist Eleanor Terrett’s latest post about the event. Crypto insiders will meet with government officials Terrett shared information gathered from some invitees to the event, noting that a group of leaders from several major cryptocurrency establishments would attend the event. According to Terrett, the group will meet with the Senate Banking Committee leadership in a roundtable to continue talks on market structure regulation. Meanwhile, Terrett noted that the meeting will be held on Thursday, September 18, following an industry review of the committee’s latest approach to distinguishing securities from commodities, DeFi treatment, and other key issues, which has lasted over one week.  Related: Senate Draft Bill Gains Experts’ Praise for Strongest Developer Protections in Crypto Law Notably, the upcoming roundtable between US legislators and crypto industry leaders is a continuation of the process of regularising cryptocurrency regulation in the United States. It is part of the Donald Trump administration’s efforts to provide clarity in the US cryptocurrency ecosystem, which many crypto supporters consider a necessity for the digital asset industry. Despite the ongoing process, some crypto users are unsatisfied with how the US government is handling the issue, particularly the level of bureaucracy involved in creating a lasting cryptocurrency regulatory framework. One such user criticized the process, describing it as a “masterclass in bureaucratic foot-dragging.” According to the critic, America is losing ground to nations already leading in blockchain innovation. He cited…
Share
BitcoinEthereumNews2025/09/18 06:37