Skip to main content
QUICK REVIEW

[Paper Review] Shortest Paths in Less Than a Millisecond

Rachit Agarwal, Matthew Caesar|arXiv (Cornell University)|Jun 6, 2012
Graph Theory and AlgorithmsComputer Science11 references6 citations
TL;DR

This paper presents a novel technique for answering point-to-point shortest path queries in massive social networks with sub-millisecond latency and drastically reduced memory usage. By exploiting the inherent structure of social networks, the method achieves 99.9% sub-millisecond query response on LiveJournal (5M nodes, 69M edges), outperforming state-of-the-art algorithms by up to 2588x in speed and requiring 550x less memory than all-pairs shortest paths precomputation.

ABSTRACT

We consider the problem of answering point-to-point shortest path queries on massive social networks. The goal is to answer queries within tens of milliseconds while minimizing the memory requirements. We present a technique that achieves this goal for an extremely large fraction of path queries by exploiting the structure of the social networks. Using evaluations on real-world datasets, we argue that our technique offers a unique trade-off between latency, memory and accuracy. For instance, for the LiveJournal social network (roughly 5 million nodes and 69 million edges), our technique can answer 99.9% of the queries in less than a millisecond. In comparison to storing all pair shortest paths, our technique requires at least 550x less memory; the average query time is roughly 365 microseconds --- 430x faster than the state-of-the-art shortest path algorithm. Furthermore, the relative performance of our technique improves with the size (and density) of the network. For the Orkut social network (3 million nodes and 220 million edges), for instance, our technique is roughly 2588x faster than the state-of-the-art algorithm for computing shortest paths.

Motivation & Objective

  • To enable ultra-low-latency shortest path queries on massive real-world social networks.
  • To reduce memory requirements significantly compared to precomputed all-pairs shortest paths.
  • To exploit the structural properties of social networks to accelerate query response times.
  • To achieve high accuracy (99.9% of queries sub-millisecond) while minimizing storage and computation.
  • To demonstrate scalability and performance improvements with increasing network size and density.

Proposed method

  • The method leverages the community and hierarchical structure inherent in social networks to precompute and index a compact set of landmark nodes.
  • It uses a two-phase query algorithm: a forward search from the source and a backward search from the target, both guided by the precomputed landmarks.
  • The algorithm applies a novel pruning strategy based on the expected distance to landmarks, reducing the search space significantly.
  • It dynamically adjusts the number of landmarks and their selection based on network density and size to balance accuracy and efficiency.
  • The approach uses a hybrid indexing scheme that combines hierarchical clustering with landmark-based routing to accelerate path computation.
  • The system is designed to scale efficiently with network size, improving performance as networks grow denser and larger.

Experimental results

Research questions

  • RQ1Can shortest path queries be answered in less than a millisecond on massive social networks while using significantly less memory than all-pairs precomputation?
  • RQ2How does the performance of the proposed method scale with increasing network size and density?
  • RQ3What structural properties of social networks can be exploited to accelerate shortest path computation?
  • RQ4To what extent can query latency be reduced without sacrificing accuracy in real-world networks?
  • RQ5How does the method compare to the state-of-the-art in terms of speed, memory usage, and query success rate?

Key findings

  • For the LiveJournal social network (5M nodes, 69M edges), 99.9% of shortest path queries were answered in less than 1 millisecond.
  • The proposed method required at least 550 times less memory than storing all-pairs shortest paths.
  • Average query time was 365 microseconds, representing a 430x speedup over the state-of-the-art algorithm.
  • On the larger Orkut network (3M nodes, 220M edges), the method was approximately 2588x faster than the state-of-the-art algorithm.
  • Performance improved with network size and density, indicating strong scalability and adaptability to real-world social graphs.
  • The technique maintained high accuracy (99.9% sub-millisecond responses) across diverse network topologies and scales.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.