Asymptotically Optimal Encodings of Range Data Structures for Selection and Top- k Queries

Author:

Grossi Roberto1,Iacono John2,Navarro Gonzalo3,Raman Rajeev4,Satti S. Rao5

Affiliation:

1. Department of Informatics, University of Pisa, Pisa, Italy

2. Department of Computer Science and Engineering, Polytechnic Institute of New York University, NY, USA

3. Department of Computer Science, University of Chile, Santiago, Chile

4. Department of Computer Science, University of Leicester, UK

5. School of Computer Science and Engineering, Seoul National University, Seoul, South Korea

Abstract

Given an array A [1, n ] of elements with a total order, we consider the problem of building a data structure that solves two queries: ( a ) selection queries receive a range [ i , j ] and an integer k and return the position of the k th largest element in A [ i , j ]; ( b ) top- k queries receive [ i , j ] and k and return the positions of the k largest elements in A [ i , j ]. These problems can be solved in optimal time, O (1+lg k /lg lg n ) and O ( k ), respectively, using linear-space data structures. We provide the first study of the encoding data structures for the above problems, where A cannot be accessed at query time. Several applications are interested in the relative order of the entries of A , and their positions, rather their actual values, and thus we do not need to keep A at query time. In those cases, encodings save storage space: we first show that any encoding answering such queries requires n lg k - O ( n + k lg k ) bits of space; then, we design encodings using O ( n lg k ) bits, that is, asymptotically optimal up to constant factors, while preserving optimal query time.

Publisher

Association for Computing Machinery (ACM)

Subject

Mathematics (miscellaneous)

Reference31 articles.

1. Sorting in Linear Time?

2. Alphabet-Independent Compressed Text Indexing

3. Optimal Lower and Upper Bounds for Representing Sequences

4. T. Bell J. Cleary and I. Witten. 1990. Text Compression. Prentice Hall. T. Bell J. Cleary and I. Witten. 1990. Text Compression. Prentice Hall.

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Practical Implementation of Encoding Range Top-2 Queries;The Computer Journal;2022-09-10

2. Reverse-Safe Text Indexing;ACM Journal of Experimental Algorithmics;2021-12-31

3. Encoding Two-Dimensional Range Top-k Queries;Algorithmica;2021-07-27

4. Path queries on functions;Theoretical Computer Science;2019-05

5. The effective entropy of next/previous larger/smaller value queries;Information Processing Letters;2019-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3