Retrieval Data Structure
In computer science, a retrieval data structure, also known as static function, is a space-efficient dictionary-like data type composed of a collection of (key, value) pairs that allows the following operations:Construction from a collection of (key, value) pairs - Retrieve the value associated with the given key or anything if the key is not contained in the collection - Update the value associated with a key (optional)
They can also be thought of as a function b: 𝒰 → {0, 1}^(r) for a universe 𝒰 and the set of keys S ⊆ 𝒰 where retrieve has to return b(x) for any value x ∈ S and an arbitrary value from {0, 1}^(r) otherwise.
In contrast to static functions, AMQ-filters support (probabilistic) membership queries and dictionaries additionally allow operations like listing keys or looking up the value associated with a key and returning some other symbol if the key is not contained.
As can be derived from the operations, this data structure does not need to store the keys at all and may actually use less space than would be needed for a simple list of the key value pairs. This makes it attractive in situations where the associated data is small (e.g. a few bits) compared to the keys because we can save a lot by reducing the space used by keys.
To give a simple example suppose n video game names annotated with a boolean indicating whether the game contains a dog that can be petted are given. A static function built from this database can reproduce the associated flag for all names contained in the original set and an arbitrary one for other names. The size of this static function can be made to be only (1 + ϵ)n bits for a small ϵ which is obviously much less than any pair based representation.
Source: https://en.wikipedia.org/wiki/Retrieval_Data_Structure
Created with WikipediaReaderSentry (c) WikipediaReader
Images and videos sourced from Pexels (https://www.pexels.com)
Other Videos By WikiReader
2023-04-26 | Thomas Ashe |
2023-04-26 | Clash of Champions (2019) |
2023-04-25 | Preventive nutrition |
2023-04-25 | Festival of San Fermín |
2023-04-25 | Night of Champions (2015) |
2023-04-25 | 1881 in baseball |
2023-04-25 | Ludlow Amendment |
2023-04-24 | European Junior Chess Championship |
2023-04-24 | Dr Challoner's Grammar School |
2023-04-24 | Did you know that the 19-story Starrett–Lehigh Building was built on the principle of "every... |
2023-04-24 | Retrieval Data Structure |
2023-04-24 | Cú Chulainn |
2023-04-23 | Kilpauk Medical College |
2023-04-23 | Did you know that First Battery Armory later housed ESPN offices? |
2023-04-23 | Western astrology |
2023-04-22 | Zhan Guo Ce |
2023-04-22 | Lucifer (wrestler) |
2023-04-22 | Did you know that Untitled Goose Game escaped being called Some Like It Honk{{-?}} |
2023-04-22 | Anatoly Demidov, 1st Prince of San Donato |
2023-04-22 | Estonian identity card |
2023-04-21 | Kodagu district |