12,500 research outputs found

    Asymptotic distribution of two-protected nodes in ternary search trees

    Full text link
    We study protected nodes in mm-ary search trees, by putting them in context of generalised P\'olya urns. We show that the number of two-protected nodes (the nodes that are neither leaves nor parents of leaves) in a random ternary search tree is asymptotically normal. The methods apply in principle to mm -ary search trees with larger mm as well, although the size of the matrices used in the calculations grow rapidly with m m ; we conjecture that the method yields an asymptotically normal distribution for all m26m\leq 26. The one-protected nodes, and their complement, i.e., the leaves, are easier to analyze. By using a simpler P\'olya urn (that is similar to the one that has earlier been used to study the total number of nodes in m m -ary search trees), we prove normal limit laws for the number of one-protected nodes and the number of leaves for all m26 m\leq 26

    Support and density of the limit mm-ary search trees distribution

    Get PDF
    The space requirements of an mm-ary search tree satisfies a well-known phase transition: when m26m\leq 26, the second order asymptotics is Gaussian. When m27m\geq 27, it is not Gaussian any longer and a limit WW of a complex-valued martingale arises. We show that the distribution of WW has a square integrable density on the complex plane, that its support is the whole complex plane, and that it has finite exponential moments. The proofs are based on the study of the distributional equation W\egalLoi\sum_{k=1}^mV_k^{\lambda}W_k, where V1,...,VmV_1, ..., V_m are the spacings of (m1)(m-1) independent random variables uniformly distributed on [0,1][0,1], W1,...,WmW_1, ..., W_m are independent copies of W which are also independent of (V1,...,Vm)(V_1, ..., V_m) and λ\lambda is a complex number

    Succinct Indexable Dictionaries with Applications to Encoding kk-ary Trees, Prefix Sums and Multisets

    Full text link
    We consider the {\it indexable dictionary} problem, which consists of storing a set S{0,...,m1}S \subseteq \{0,...,m-1\} for some integer mm, while supporting the operations of \Rank(x), which returns the number of elements in SS that are less than xx if xSx \in S, and -1 otherwise; and \Select(i) which returns the ii-th smallest element in SS. We give a data structure that supports both operations in O(1) time on the RAM model and requires B(n,m)+o(n)+O(lglgm){\cal B}(n,m) + o(n) + O(\lg \lg m) bits to store a set of size nn, where {\cal B}(n,m) = \ceil{\lg {m \choose n}} is the minimum number of bits required to store any nn-element subset from a universe of size mm. Previous dictionaries taking this space only supported (yes/no) membership queries in O(1) time. In the cell probe model we can remove the O(lglgm)O(\lg \lg m) additive term in the space bound, answering a question raised by Fich and Miltersen, and Pagh. We present extensions and applications of our indexable dictionary data structure, including: An information-theoretically optimal representation of a kk-ary cardinal tree that supports standard operations in constant time, A representation of a multiset of size nn from {0,...,m1}\{0,...,m-1\} in B(n,m+n)+o(n){\cal B}(n,m+n) + o(n) bits that supports (appropriate generalizations of) \Rank and \Select operations in constant time, and A representation of a sequence of nn non-negative integers summing up to mm in B(n,m+n)+o(n){\cal B}(n,m+n) + o(n) bits that supports prefix sum queries in constant time.Comment: Final version of SODA 2002 paper; supersedes Leicester Tech report 2002/1
    corecore