基于多级前缀树的优先级排队
Priority Queue Based on Multilevel Prefix Tree
摘要:
树结构是非常常用的数据结构。在有序树中有许多变种,它们的基本操作如插入、删除、搜索、删除-min都具有对数时间复杂度。在这篇文章中,我将介绍一个结构,它的时间复杂度为$O(\frac{M}{K} + K)$,其中M是数据类型的大小,K是适当匹配数据类型大小的常数。适当匹配的K将使结构作为一个非常有效的优先级队列。结构大小线性地取决于元素的数量和大小。PTrie巧妙地结合了前缀树Trie的思想、插入和删除操作的对数时间复杂度结构、双向链表和队列。
英文摘要:
Tree structures are very often used data structures. Among ordered types of trees there are many variants whose basic operations such as insert, delete, search, delete-min are characterized by logarithmic time complexity. In the article I am going to present the structure whose time complexity for each of the above operations is $O(\frac{M}{K} + K)$, where M is the size of data type and K is constant properly matching the size of data type. Properly matched K will make the structure function as a very effective Priority Queue. The structure size linearly depends on the number and size of elements. PTrie is a clever combination of the idea of prefix tree -- Trie, structure of logarithmic time complexity for insert and remove operations, doubly linked list and queues.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。