We introduce a very simple queue implementation with the singly linked list. With the help of the rear blank node instead of the usual header node, we avoid additional check steps for the dequeue operation in the traditional implementations. The essence of our representation is the half-opened pointer interval with the same direction of the queue operations, which can guarantee the uniform treatment even in the empty queue case. The simplification of queue implementations cuts off unnecessary steps, and it minimizes the number of steps in the dequeue operation with the time limitation of enqueue operation, which could contribute to the the performance of the real-time systems. We extend the linked queue to the circularly linked queue, which can also be used to implement stack and take advantage of the maximal information of the single direction in the circularly linked list, and it actually constructs the output-restricted deque. We also present a variant: lazy circularly linked queue, which is more efficient in some special cases, especially for the dequeue operations.


翻译:我们引入了与单线链接列表的非常简单的队列执行 。 在后空节点而不是通常的页眉节点的帮助下, 我们避免了传统执行中的卸排操作的额外检查步骤 。 我们的代表面的精髓是半打开的指针间隔, 与队列操作的方向相同, 这可以保证即使是在空队列的情况下也实行统一的处理 。 简化队列执行可以减少不必要的步骤, 并尽可能减少降排操作中的步骤数量, 这可能会促进实时系统的运行 。 我们将连接的队列扩大到循环链接的队列, 也可以用来执行堆叠, 利用循环链接列表中单一方向的最大信息, 并且它实际上构建了输出限制的队列 。 我们还提出了一个变式: 懒惰的循环连接队列, 在某些特殊情况下, 特别是降排队操作中, 更有效率 。

0
下载
关闭预览

相关内容

专知会员服务
57+阅读 · 2021年9月23日
【2020新书】Web应用安全,331页pdf
专知会员服务
23+阅读 · 2020年10月24日
专知会员服务
39+阅读 · 2020年9月6日
Stabilizing Transformers for Reinforcement Learning
专知会员服务
57+阅读 · 2019年10月17日
【新书】Python编程基础,669页pdf
专知会员服务
192+阅读 · 2019年10月10日
谷歌足球游戏环境使用介绍
CreateAMind
31+阅读 · 2019年6月27日
gowitness 一款用Golang编写的网站截图工具
黑白之道
6+阅读 · 2019年6月27日
Transferring Knowledge across Learning Processes
CreateAMind
27+阅读 · 2019年5月18日
Unsupervised Learning via Meta-Learning
CreateAMind
41+阅读 · 2019年1月3日
meta learning 17年:MAML SNAIL
CreateAMind
11+阅读 · 2019年1月2日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
16+阅读 · 2018年12月24日
机器人开发库软件大列表
专知
10+阅读 · 2018年3月18日
分布式TensorFlow入门指南
机器学习研究会
4+阅读 · 2017年11月28日
Arxiv
0+阅读 · 2021年10月25日
Arxiv
0+阅读 · 2021年10月22日
Arxiv
0+阅读 · 2021年10月20日
VIP会员
相关VIP内容
相关资讯
谷歌足球游戏环境使用介绍
CreateAMind
31+阅读 · 2019年6月27日
gowitness 一款用Golang编写的网站截图工具
黑白之道
6+阅读 · 2019年6月27日
Transferring Knowledge across Learning Processes
CreateAMind
27+阅读 · 2019年5月18日
Unsupervised Learning via Meta-Learning
CreateAMind
41+阅读 · 2019年1月3日
meta learning 17年:MAML SNAIL
CreateAMind
11+阅读 · 2019年1月2日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
16+阅读 · 2018年12月24日
机器人开发库软件大列表
专知
10+阅读 · 2018年3月18日
分布式TensorFlow入门指南
机器学习研究会
4+阅读 · 2017年11月28日
Top
微信扫码咨询专知VIP会员