{'fraction_non_alphanumeric': 0.021761658031088083, 'fraction_numerical': 0.0010362694300518134, 'mean_word_length': 5.0, '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}}
A linear time pre-processing for optimization of shortest path and distance algorithms

Finding shortest distances and paths have always been a crucial area of study. In this article, we have proposed a linear time pre-processing method for optimization of shortest path and distance algorithms, for an undirected weighted graph with non-negative edges. In this approach, certain parts of a graph are grouped together as subgraphs termed as optimized deterministic routing areas (ODRAs). Each ODRA has a unique representative element called optimized proxy. The input graph is reduced by replacing ODRAs with optimized proxies and the new reduced graph is used for the shortest path and distance queries. This is a linear time pre-processing stage which helps in significant decrease in computation time for finding shortest distances and paths in graphs. The lower bound and upper bound of time complexity of the proposed algorithm is O(n/2) and O(n) respectively.