arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0708.3408cs.DS
收藏

基于多级前缀树的网络正权最短路和最小生成树的线性时间算法

Linear Time Algorithms Based on Multilevel Prefix Tree for Finding Shortest Path with Positive Weights and Minimum Spanning Tree in a Networks

David S. Planeta

摘要:

在本文中,我提出了有关的基本图形算法的问题的一般看法;寻找最短路径与正权重和最小生成树。我将展示到目前为止已知的基本图形问题的解决方案集,并提出我自己的。我解决图问题的特点是线性最坏情况下的时间复杂度。应该注意的是,计算最短路径和最小生成树问题的算法不仅分析弧的权重(这是迄今已知算法的主要且通常是唯一的解决标准),而且在相同路径权重的情况下,它们选择通过尽可能少的顶点的路径。提出了基于多级前缀树PTrie的优先级队列算法。PTrie是前缀树-- Trie的思想的巧妙结合,其结构具有对数时间复杂度,用于插入和删除操作,双向链表和队列。在C++中,我将实现计算单目的地最短路径问题的线性最坏情况时间算法,并解释其用法。

英文摘要:

In this paper I present general outlook on questions relevant to the basic graph algorithms; Finding the Shortest Path with Positive Weights and Minimum Spanning Tree. I will show so far known solution set of basic graph problems and present my own. My solutions to graph problems are characterized by their linear worst-case time complexity. It should be noticed that the algorithms which compute the Shortest Path and Minimum Spanning Tree problems not only analyze the weight of arcs (which is the main and often the only criterion of solution hitherto known algorithms) but also in case of identical path weights they select this path which walks through as few vertices as possible. I have presented algorithms which use priority queue based on multilevel prefix tree -- PTrie. PTrie is a clever combination of the idea of prefix tree -- Trie, the structure of logarithmic time complexity for insert and remove operations, doubly linked list and queues. In C++ I will implement linear worst-case time algorithm computing the Single-Destination Shortest-Paths problem and I will explain its usage.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑