We describe todolists (top-down skiplists), a variant of skiplists (Pugh 1990) that can execute searches using at most binary comparisons per search and that have amortized update time . A variant of todolists, called working-todolists, can execute a search for any element using $\log_{2-\varepsilon} w(x) + o(\log w(x))O(\varepsilon^{-1}\log w(w))w(x)x4\log_2 w(x)$ comparisons. We show through experiments that, if implemented carefully, todolists are comparable to other common dictionary implementations in terms of insertion times and outperform them in terms of search times.

生成讲解博客的中文版本

生成AI智能校验的中文版本