References & Citations
Computer Science > Data Structures and Algorithms
Title: A Neat Linked Queue with the Rear Sentinel
(Submitted on 17 May 2021 (this version), latest version 2 Oct 2021 (v3))
Abstract: We introduce a very simple queue implementation with the singly linked list. With the help of the rear sentinel instead of the traditional header node, we avoid additional check steps in the pop operation. The essence of this representation is the half-opened pointer interval, which can guarantee the uniform treatment even in the empty queue case. We also present the variants of linked queue, circularly linked queue and lazy circularly linked queue, which can also be used to implement stack and improve the time performance in some special cases.
Submission history
From: Xie Xie [view email][v1] Mon, 17 May 2021 19:00:42 GMT (4kb)
[v2] Thu, 2 Sep 2021 16:31:55 GMT (7kb)
[v3] Sat, 2 Oct 2021 03:37:52 GMT (6kb)
Link back to: arXiv, form interface, contact.