Data structure and storage and retrieval method supporting ordinality based searching and data retrieval
Abstract
A data structure and related data storage and retrieval method rapidly provide a count of elements stored or referenced by a hierarchical structure of ordered elements (e.g., a tree), access to elements based on their ordinal value in the structure, and identification of the ordinality of elements. In an ordered tree implementation of the invention, a count of elements stored in each subtree is stored, i.e., the cardinality of each subtree is stored either at or associated with a higher level node pointing to that subtree or at or associated with the head node of the subtree. In addition to data structure specific requirements (e.g., creation of a new node, reassignment of pointers, balancing, etc.) data insertion and deletion includes steps of updating affected counts. Elements may be target data itself (e.g., data samples, prime numbers); keys or indices associated with target data (e.g., social security numbers of employees, product numbers and codes, etc. uses to reference associated data records, etc.); or internal memory pointer to keys or data stored external to the data structure. The invention is applicable to varied hierarchical storage structures including, for example,
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 26.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of storing data in a computer memory comprising the steps of: storing ordered sets of keys into a plurality of data structures; storing addresses of said data structures in a root node; storing, in association with each of said addresses, counts of ones of said keys in each of said data structures; and determining a first ordinality of one of said keys.
- Claim 2Depends on #1
The method according to claim 1 wherein said determining further comprises adding at least one of said counts to a second ordinality of said one key, said second ordinality determined with respect to others of said keys commonly stored in one of said data structures.
- Claim 3Depends on #1
The method according to claim 1 wherein said data structures include at least one first level data structure referencing a plurality of second
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 26 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (5)
- Acharya, Anurag, Huican Zhu, and Kai Shen, "Adaptive Algorithms for Cache-efficeint Trie Search." University of California, Santa Barbara, CA, 1-11, (no date).
- Ai-suw aiyel, M. and Ellis Horowitz, "Algorithms for Trie Compaction," ACM Transactions on Database Systems, vol. 9, No. 2. (Jun., 1984), 243-263.
- Bentley, Jon and Robert Sedgewick, "Ternary Search Trees," Dr. Dobb's Journal, (Apr. 1998), 1-8.
- Bentley, Jon and Robert Sedgewick. "Fast Algorithms for Sorting and Searching Strings," 360-369, (no date).
- Bentley, Jon L. "Multidimensional Binary Search Trees Used for Associative Searching." Association for Computing Machinery, Inc. vol. 18, No. 9, (Sep. 1975), 509-517.