{'fraction_non_alphanumeric': 0.015492957746478873, 'fraction_numerical': 0.0, 'mean_word_length': 4.970588235294118, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Constructing Effective Caches of Shortest Path Queries on Road Networks

How to effectively utilize caching technology to support high-performance shortest path queries on road networks has become an important research problem since the popularization of location-based services. Most of the existing methods design a statistical model to construct the cache with the shortest paths, and mainly consider the related query frequency obtained from the historical query logs. As a result, the paths in the cache may be concentrated in a few hot-spot areas of the road network, such as the prosperous areas of a city. Additionally, queries from remote areas may never be hit in the cache, which results in the cache hit ratio is not fully optimized. To address this problem, we define an effective model to quantify the effect of cached shortest paths; the model not only considers the related query frequency in the log but also the coverage of the paths on the road network. Then, we propose an efficient cache construction method to select the cached shortest paths from the query log. Furthermore, we design a hybrid index for the shortest paths in the cache, so that the efficiency of shortest path querying is significantly improved. Finally, we conduct comprehensive experimental studies on different datasets to verify that the cache hit ratio is greatly improved by using the proposed cache construction approaches.