A Novel Simple Data Structure for Selecting, Inserting, and Deleting in Square Root Time
摘要
This paper presents a novel data structure designed to strike a balance between reading and changing. It can achieve a square root of n time complexity for both insertions, deletions and reading with the input order by splitting a list into multiple increasingly long lists. Compared to order statistic tree or other data structure that can reach O(log n) of time, it is more simple and easy to understand and debug, which provides an instructional data structure that can be used when the data size is small.