TY - GEN
T1 - Space-time tradeoff for answering range queries
AU - Yao, Andrew C.
N1 - Publisher Copyright:
© 1982 ACM.
PY - 1982/5/5
Y1 - 1982/5/5
N2 - In this paper, we raise and investigate the question of (storage) space- (retrieval) time tradeoff for a static database, in the general framework of Fredman's. As will be seen, such tradeoff results also lead to lower bounds on the complexity of processing a sequence of m INSERT and QUERY instructions. The latter results are incomparable to Fredman's, since the presence of DELETE instructions was crucial for his proof technique. We will present our results in detail in the next few sections. Here we will only mention three main conclusions. Firstly, circular query is shown to be intrinsically hard in the sense that, for some static database with n records, there is a space-time tradeoff TS -α-> n1 + -α-egr; where -α-egr;-α->0; in contrast, orthogonal query can always be implemented with space S-α-equil;0(n(log n)k) and time T-α-equil;0((log n)k) for fixed k. Furthermore, any algorithm for processing 0(n) INSERT and QUERY instructions must use time -α-Ohgr;(n1+-α-egr;) in the worst case. Secondly, for the -α-ldquo;interval-α-rdquo; query, we have determined the space-time tradeoff quite precisely to be T -α-agr;(S,n), where -α-agr; is the inverse to an Ackermann's function first defined by Tarjan [9]. This is a rare case where the function -α-agr; arises outside the context of path compression, and is obtained through a totally independent derivation. Thirdly, we prove that, for the interval query, any algorithm to process a sequence of 0(n) INSERT and QUERY must take time -α-Ohgr;((n log n)/(log log n)) in the worst case. This means that one cannot hope to maintain the most efficient static data structure (with retrieval time -α-agr;(S,n)) in the dynamic case.
AB - In this paper, we raise and investigate the question of (storage) space- (retrieval) time tradeoff for a static database, in the general framework of Fredman's. As will be seen, such tradeoff results also lead to lower bounds on the complexity of processing a sequence of m INSERT and QUERY instructions. The latter results are incomparable to Fredman's, since the presence of DELETE instructions was crucial for his proof technique. We will present our results in detail in the next few sections. Here we will only mention three main conclusions. Firstly, circular query is shown to be intrinsically hard in the sense that, for some static database with n records, there is a space-time tradeoff TS -α-> n1 + -α-egr; where -α-egr;-α->0; in contrast, orthogonal query can always be implemented with space S-α-equil;0(n(log n)k) and time T-α-equil;0((log n)k) for fixed k. Furthermore, any algorithm for processing 0(n) INSERT and QUERY instructions must use time -α-Ohgr;(n1+-α-egr;) in the worst case. Secondly, for the -α-ldquo;interval-α-rdquo; query, we have determined the space-time tradeoff quite precisely to be T -α-agr;(S,n), where -α-agr; is the inverse to an Ackermann's function first defined by Tarjan [9]. This is a rare case where the function -α-agr; arises outside the context of path compression, and is obtained through a totally independent derivation. Thirdly, we prove that, for the interval query, any algorithm to process a sequence of 0(n) INSERT and QUERY must take time -α-Ohgr;((n log n)/(log log n)) in the worst case. This means that one cannot hope to maintain the most efficient static data structure (with retrieval time -α-agr;(S,n)) in the dynamic case.
UR - https://www.scopus.com/pages/publications/84976782955
U2 - 10.1145/800070.802185
DO - 10.1145/800070.802185
M3 - 会议稿件
AN - SCOPUS:84976782955
SN - 0897910702
T3 - Proceedings of the Annual ACM Symposium on Theory of Computing
SP - 128
EP - 136
BT - Proceedings of the 14th Annual ACM Symposium on Theory of Computing, STOC 1982
PB - Association for Computing Machinery
T2 - 14th Annual ACM Symposium on Theory of Computing, STOC 1982
Y2 - 5 May 1982 through 7 May 1982
ER -