Design and Analysis of a Data Structure for Representing Sorted Lists

Mark R. Brown, Robert E. Tarjan

SIAM Journal on Computing · 1980 · 131 citations · 5 references

Concepts

TL;DR

The proposed structure shares many properties with the representation for linear lists introduced by Guibas, McCreight, Plass, and Roberts. This paper investigates the use of 2‑3 trees to represent sorted lists. The authors analyze the worst‑case cost of sequences of insertions and deletions in 2‑3 trees under three scenarios: only insertions, only deletions, and deletions at the small end with insertions elsewhere. Their analysis yields a simpler data structure that is effective for sorted lists exhibiting locality of reference and is practical for moderate‑size lists. The work.

Abstract

In this paper we explore the use of 2-3 trees to represent sorted lists. We analyze the worst-case cost of sequences of insertions and deletions in 2-3 trees under each of the following three assumptions: (i) only insertions are performed; (ii) only deletions are performed; (iii) deletions occur only at the small end of the list and insertions occur only away from the small end. Our analysis leads to a data structure for representing sorted lists when the access pattern exhibits a (perhaps time-varying) locality of reference. This structure has many of the properties of the representation proposed by Guibas, McCreight, Plass and Roberts [A new representation for linear lists, Proc. Ninth Annual Symposium on Theory of Computing, Boulder, CO, 1977, pp. 49–60], but it is substantially simpler and may be practical for lists of moderate size.

References

5