Space-Efficient Data Structure for Next/Previous Larger/Smaller Value Queries

IF 0.7 4区 计算机科学 Q4 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Seungbum Jo, Geunho Kim
{"title":"Space-Efficient Data Structure for Next/Previous Larger/Smaller Value Queries","authors":"Seungbum Jo,&nbsp;Geunho Kim","doi":"10.1007/s00453-025-01325-9","DOIUrl":null,"url":null,"abstract":"<div><p>Given an array of size <i>n</i> from a total order, we consider the problem of constructing a data structure that supports various queries (range minimum/maximum queries with their variants and next/previous larger/smaller queries) efficiently. In the encoding model (i.e., the queries can be answered without the input array), we propose a <span>\\((3.701n + o(n))\\)</span>-bit data structure, which supports all these queries in <span>\\(O(\\log ^{(\\ell )}n)\\)</span> time, for any positive constant integer <span>\\(\\ell \\)</span> (here, <span>\\(\\log ^{(1)} n = \\log n\\)</span>, and for <span>\\(\\ell &gt; 1\\)</span>, <span>\\(\\log ^{(\\ell )} n = \\log ({\\log ^{(\\ell -1)}} n)\\)</span>). The space of our data structure matches the current best upper bound of Tsur (Inf. Process. Lett., 2019), which does not support the queries efficiently. Also, we show that at least <span>\\(3.16n-\\Theta (\\log n)\\)</span> bits are necessary for answering all the queries. Our result is obtained by generalizing Gawrychowski and Nicholson’s <span>\\((3n - \\Theta (\\log n))\\)</span>-bit lower bound (ICALP, 15) for answering range minimum and maximum queries on a permutation of size <i>n</i>.</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"87 10","pages":"1369 - 1392"},"PeriodicalIF":0.7000,"publicationDate":"2025-05-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-025-01325-9","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Given an array of size n from a total order, we consider the problem of constructing a data structure that supports various queries (range minimum/maximum queries with their variants and next/previous larger/smaller queries) efficiently. In the encoding model (i.e., the queries can be answered without the input array), we propose a \((3.701n + o(n))\)-bit data structure, which supports all these queries in \(O(\log ^{(\ell )}n)\) time, for any positive constant integer \(\ell \) (here, \(\log ^{(1)} n = \log n\), and for \(\ell > 1\), \(\log ^{(\ell )} n = \log ({\log ^{(\ell -1)}} n)\)). The space of our data structure matches the current best upper bound of Tsur (Inf. Process. Lett., 2019), which does not support the queries efficiently. Also, we show that at least \(3.16n-\Theta (\log n)\) bits are necessary for answering all the queries. Our result is obtained by generalizing Gawrychowski and Nicholson’s \((3n - \Theta (\log n))\)-bit lower bound (ICALP, 15) for answering range minimum and maximum queries on a permutation of size n.

Abstract Image

Abstract Image

下/上/大/小值查询的空间高效数据结构
给定一个总顺序大小为n的数组,我们考虑构建一个数据结构的问题,该结构有效地支持各种查询(范围最小/最大查询及其变体以及下一个/上一个较大/较小的查询)。在编码模型中(即,查询可以在没有输入数组的情况下回答),我们提出了一个\((3.701n + o(n))\)位数据结构,它支持在\(O(\log ^{(\ell )}n)\)时间内对任何正常数整数\(\ell \)(这里是\(\log ^{(1)} n = \log n\),以及\(\ell > 1\)、\(\log ^{(\ell )} n = \log ({\log ^{(\ell -1)}} n)\))进行所有这些查询。我们的数据结构的空间匹配当前的最佳上界的Tsur (Inf)过程。左。, 2019),它不能有效地支持查询。此外,我们还展示了回答所有查询至少需要\(3.16n-\Theta (\log n)\)位。我们的结果是通过推广Gawrychowski和Nicholson的\((3n - \Theta (\log n))\) -bit下界(ICALP, 15)来回答大小为n的排列上的范围最小和最大查询得到的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Algorithmica
Algorithmica 工程技术-计算机:软件工程
CiteScore
2.80
自引率
9.10%
发文量
158
审稿时长
12 months
期刊介绍: Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential. Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming. In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信