A Neat Linked Queue with the Rear Sentinel

05/17/2021
by   Xie Xie, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/09/2020

Stack-number is not bounded by queue-number

We describe a family of graphs with queue-number at most 4 but unbounded...
research
05/12/2023

A Wait-free Queue with Polylogarithmic Step Complexity

We present a novel linearizable wait-free queue implementation using sin...
research
03/22/2021

Differentiated nonblocking: a new progress condition and a matching queue algorithm

In this paper, we first propose a new liveness requirement for shared ob...
research
08/16/2020

Erlang Redux: An Ansatz Method for Solving the M/M/m Queue

This exposition presents a novel approach to solving an M/M/m queue for ...
research
05/11/2020

What Can Be Done with Consensus Number One: Relaxed Queues and Stacks

Sequentially specified linearizable concurrent data structures must be r...
research
07/18/2023

BOLD: A Benchmark for Linked Data User Agents and a Simulation Framework for Dynamic Linked Data Environments

The paper presents the BOLD (Buildings on Linked Data) benchmark for Lin...
research
06/21/2022

M/G/1-FIFO Queue with Uniform Service Times

An exact formula for the equilibrium M/U/1 waiting time density is now e...

Please sign up or login with your details

Forgot password? Click here to reset