ACM Home Page
Please provide us with feedback. Feedback
A near optimal data structure for a type of range query problem
Full text PdfPdf (303 KB)
Source Annual ACM Symposium on Theory of Computing archive
Proceedings of the eleventh annual ACM symposium on Theory of computing table of contents
Atlanta, Georgia, United States
Pages: 62 - 66  
Year of Publication: 1979
Author
Sponsors
ACM: Association for Computing Machinery
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 0,   Downloads (12 Months): 18,   Citation Count: 3
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/800135.804398
What is a DOI?

ABSTRACT

Let G denote the set of elements of a commutative group whose addition operations is denoted by +, let N be a positive integer, and let A(1) ,..., A(N) denote an array with values in G. We will be concerned with designing data structures for representing the array A, which facilitate efficient implementation of the following two on-line tasks: (1) Update(j,x); replace A(j) by A(j) +x. (j and x are inputs, 1≤j≤N and x&egr;G) (2) Retrieve(j); returns the value of A(1) +...+ A(j). (j is an input, 1≤j≤N) As a motivating example, let G be the group of integers with + denoting the usual addition operation. Imagine a standardized examination given to large numbers of individuals over an indefinite period of time. Assume that each examinee will attain an integer score in the interval [1,N]. If an individual gets j points, this fact is recorded by executing Update(j,1). so that A(j) represents the number of individuals to date having scored j points. In order to compute the percentile currently associated with a particular score k, we need the cumulative sum provided by executing Retrieve(k).


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
M. L. Fredman, "The complexity of maintaining an array and computing its partial sums", to appear.
 
2
M. L. Fredman, "A lower bound on the complexity of orthogonal range queries", to appear.
3
 
4
A. C. Yao, "Should tables be sorted?" Proc. 19th Annual Symp. on Foundations of Computer Science, 22-27, (1978).