Introduction
Modern navigation services excel at finding the shortest path between two points. However, they often lack the flexibility required for complex trip planning. A tourist might seek a route that is not just short, but also "popular"—perhaps passing by a pharmacy, a coffee shop, and a park—all while remaining within a strict time budget. This paper, originally presented at VLDB 2012, addresses this gap by formalizing and solving the Keyword-aware Optimal Route (KOR) problem.
The Keyword-aware Optimal Route (KOR) Problem
The KOR problem involves finding a path in a graph that satisfies three main criteria:
- Keyword Coverage: The route must visit nodes that collectively cover a set of user-specified keywords.
- Budget Constraint: The total cost of the route (e.g., distance or time) must not exceed a given threshold.
- Objective Optimization: The route should maximize a specific objective function, such as popularity or scenic value.
This problem is computationally challenging because it merges the complexities of the Traveling Salesman Problem (visiting specific nodes) with the Weight-Constrained Shortest Path Problem. The authors prove that KOR is NP-hard, necessitating efficient approximation algorithms for real-world use.
Algorithmic Framework
To tackle the NP-hard nature of KOR, the authors propose two primary approximation algorithms: OSScaling and BucketBound.
OSScaling (Objective Score Scaling)
OSScaling serves as the foundational approach. It uses a scaling parameter $\epsilon$ to round edge objective scores into integers. This discretization allows the algorithm to group similar partial routes and employ "label domination" to prune the search space. A partial route is discarded if another route reaching the same node covers the same keywords with a better objective score and lower cost.
BucketBound
BucketBound optimizes OSScaling by organizing potential routes into "buckets" based on their estimated final objective scores. This allows the algorithm to prioritize the most promising paths and terminate early once a solution within a guaranteed error bound is found.
Heuristics and Pre-processing
A faster Greedy Heuristic was also developed, though it lacks performance guarantees and may fail to find valid routes in constrained scenarios. To accelerate all methods, the authors utilize pre-calculated all-pairs shortest paths for both objective and budget metrics.
Experimental Evaluation
The algorithms were tested on a real-world Flickr dataset from New York City (1.5 million geo-tagged photos) and various synthetic road networks.
- Performance: BucketBound emerged as the most efficient, running 8-10 times faster than OSScaling while maintaining high accuracy.
- Scalability: The methods scaled effectively to networks with up to 20,000 nodes, demonstrating their suitability for city-scale applications.
- Robustness: While the Greedy approach is fast, it failed to find valid routes in 10-20% of test cases due to its lack of foresight regarding budget and keyword constraints.
Conclusion
The KOR framework provides a robust solution for flexible route planning. By leveraging intelligent pruning and scaling techniques, the proposed algorithms offer provable performance guarantees while remaining efficient enough for practical use. Future work may involve extending these methods to continent-scale graphs using graph partitioning and incorporating dynamic factors like real-time traffic.
Summary updated