Papers
Topics
Authors
Recent
Search
2000 character limit reached

Improved Time and Space Bounds for Dynamic Range Mode

Published 10 Jul 2018 in cs.DS | (1807.03827v1)

Abstract: Given an array A of nn elements, we wish to support queries for the most frequent and least frequent element in a subrange [l,r][l, r] of AA. We also wish to support updates that change a particular element at index ii or insert/ delete an element at index ii. For the range mode problem, our data structure supports all operations in O(n<sup>2/3)O(n<sup>{2/3}) deterministic time using only O(n)O(n) space. This improves two results by Chan et al. \cite{C14}: a linear space data structure supporting update and query operations in O~(n<sup>3/4)\tilde{O}(n<sup>{3/4}) time and an O(n<sup>4/3)O(n<sup>{4/3}) space data structure supporting update and query operations in O~(n<sup>2/3)\tilde{O}(n<sup>{2/3}) time. For the range least frequent problem, we address two variations. In the first, we are allowed to answer with an element of AA that may not appear in the query range, and in the second, the returned element must be present in the query range. For the first variation, we develop a data structure that supports queries in O~(n<sup>2/3)\tilde{O}(n<sup>{2/3}) time, updates in O(n<sup>2/3)O(n<sup>{2/3}) time, and occupies O(n)O(n) space. For the second variation, we develop a Monte Carlo data structure that supports queries in O(n<sup>2/3)O(n<sup>{2/3}) time, updates in O~(n<sup>2/3)\tilde{O}(n<sup>{2/3}) time, and occupies O~(n)\tilde{O}(n) space, but requires that updates are made independently of the results of previous queries. The Monte Carlo data structure is also capable of answering kk-frequency queries; that is, the problem of finding an element of given frequency in the specified query range. Previously, no dynamic data structures were known for least frequent element or kk-frequency queries.

Citations (7)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.