By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: The WormHole Algorithm for Approximate Shortest Paths in Large Graphs | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > The WormHole Algorithm for Approximate Shortest Paths in Large Graphs | HackerNoon
Computing

The WormHole Algorithm for Approximate Shortest Paths in Large Graphs | HackerNoon

News Room
Last updated: 2025/10/15 at 2:46 PM
News Room Published 15 October 2025
Share
The WormHole Algorithm for Approximate Shortest Paths in Large Graphs | HackerNoon
SHARE

Table of Links

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

3 ALGORITHM

WormHole utilizes insights about the structure of real world networks to cleverly decompose the graph and calculate approximate shortest paths. We discuss the algorithm and various steps in detail in this section; our two main components are a sublinear decomposition procedure, adapted from the recent work of Ben-Eliezer et al [10], and a routing algorithm that takes advantage of this decomposition to find highly accurate approximate shortest paths.

3.1 The Structural Decomposition Phase

We emphasize that the decomposition is performed only once, and all subsequent operations are done using this precomputed decomposition.

3.2 The Routing Phase

The approach is simple: assume the preprocessing phase acquires the inner ring. Upon an inquiry (𝑠,𝑡), the algorithm

starts two BFS trees from both 𝑠 and 𝑡. It then expands the tree at each step till one of the followings happens:

(1) the two trees intersect, or

(2) the trees reach the outer ring.

If the search trees in the former do not intersect, WormHole mandatorily routes shortest paths through the inner ring. Once in the inner ring, it computes the exact shortest path through it.

3.3 Variants of WormHole

In the default variant of Algorithm 2, WormHole𝐸, we use the bidirectional breadth-first BiBFS shortest path algorithm as a primitive in order to compute the shortest path between two inner ring vertices; see [46] for a full description of BiBFS. The theoretical analysis in §4 considers this variant.

In WormHole𝑀 we combine WormHole with an index-based algorithm restricted to the core. While indexing-based algorithms are quite expensive, in terms of both preprocessing and space cost, they lead to much lower times per inquiry. Therefore this variant is suitable when faster inquiry times are preferable to low space requirements. WormHole𝑀 makes the index creation cost substantially lower(compared to generating it for the entire graph) while providing speedups for answering shortest path inquiries compared to the BiBFS implementation. We discuss this briefly in §5.3 but leave a complete systematic exploration of these options for future research.

Figure 4: Construction of the inner and outer rings of the core; figure taken from [10]. At any point, the outer ring is the set of vertices adjacent to the inner ring. The algorithm expands the inner ring by adding to it a vertex from the outer ring that has the most neighbors in the inner ring. The image looks at two successive steps: the numbers labelling vertices in the outer ring refer to how many inner ring vertices it is adjacent to. Thus, in the second step, the vertex labelled 2 is added to the inner ring.

:::info
Authors:

(1) Talya Eden, Bar-Ilan University ([email protected]);

(2) Omri Ben-Eliezer, MIT ([email protected]);

(3) C. Seshadhri, UC Santa Cruz ([email protected]).

:::


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

:::

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article This ultra-wide GoPro action camera is down 31% on Amazon right now This ultra-wide GoPro action camera is down 31% on Amazon right now
Next Article A Deal That Sounds So Sweet: Score 30% Off the Google Nest Audio Speaker A Deal That Sounds So Sweet: Score 30% Off the Google Nest Audio Speaker
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Zero Trust Security Goes Mainstream as Breach Costs Hit Record Highs | HackerNoon
Zero Trust Security Goes Mainstream as Breach Costs Hit Record Highs | HackerNoon
Computing
Everything to know about Best Buy Black Friday 2025: Doorbusters, best deals, opening hours
Everything to know about Best Buy Black Friday 2025: Doorbusters, best deals, opening hours
News
The Alienware Aurora Gaming Desktop Punches Above Its Weight
The Alienware Aurora Gaming Desktop Punches Above Its Weight
Gadget
Russian hackers target US engineering firm because of work done for Ukraine
News

You Might also Like

Zero Trust Security Goes Mainstream as Breach Costs Hit Record Highs | HackerNoon
Computing

Zero Trust Security Goes Mainstream as Breach Costs Hit Record Highs | HackerNoon

13 Min Read
Educational Byte: How Fake CAPTCHAs Can Steal Your Crypto | HackerNoon
Computing

Educational Byte: How Fake CAPTCHAs Can Steal Your Crypto | HackerNoon

6 Min Read
Giga Computing R284-A92-AAL1: A Reliable 2U Rack Server For Intel Xeon 6900 Series Review
Computing

Giga Computing R284-A92-AAL1: A Reliable 2U Rack Server For Intel Xeon 6900 Series Review

4 Min Read
inDrive’s Approach to Measuring Engineering Performance | HackerNoon
Computing

inDrive’s Approach to Measuring Engineering Performance | HackerNoon

11 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?