Andrii Gakhov · 2019
Probabilistic Data Structures and Algorithms
for Big Data Applications
A technical book about popular space-efficient data structures and fast algorithms that are extremely useful in modern Big Data applications.
- Author
- Andrii Gakhov
- Published
- 2019, Books on Demand (BoD)
- Paperback
- ISBN 978-3-7481-9048-6, 220 pages
- E-book
- Kindle, ASIN B07MYKTY8W
- Editions
- English, Russian, Ukrainian, Simplified Chinese
About the book
Probabilistic data structures is a common name for data structures based mostly on different hashing techniques. Unlike regular (or deterministic) data structures, they always provide approximated answers but with reliable ways to estimate possible errors. Fortunately, the potential losses or errors are fully compensated for by extremely low memory requirements, constant query time, and scaling, three factors that become important in Big Data applications.
While it is impossible to cover all the existing amazing solutions, this book is to highlight their common ideas and important areas of application, including membership querying, counting, stream mining, and similarity estimation.
The purpose of this book is to introduce technology practitioners, including software architects and developers, as well as technology decision makers to probabilistic data structures and algorithms. Reading this book, you will get a theoretical and practical understanding of probabilistic data structures and learn about their common uses.
- Learn how to solve practical issues of massive data handling
- Master the theoretical aspects of probabilistic data structures
- Identify the right data structures for your particular problems
This is not a book for scientists, but to gain the most out of it you will need to have basic mathematical knowledge and an understanding of the general theory of data structures and algorithms.
Table of contents
Hashing
A brief overview of popular hash functions and hash tables that are widely used in probabilistic data structures.
- Cryptographic hash functions
- Non-cryptographic hash functions
- Hash tables
Membership
The most well-known probabilistic data structures that are used to answer approximate membership queries.
- Bloom filter
- Counting Bloom filter
- Quotient filter
- Cuckoo filter
Cardinality
Data structures that allow to estimate the number of unique elements in a dataset.
- Linear Counting
- Probabilistic Counting
- LogLog and HyperLogLog
Frequency
Solutions for common problems in streaming applications, such as finding the frequency of an element, filtering the most frequent elements in the stream, detecting trending elements.
- Majority algorithm
- Frequent algorithm
- Count Sketch
- Count–Min Sketch
Rank
Data structures to estimate quantiles and percentiles in a data stream using only one pass through the data.
- Random sampling
- q-digest
- t-digest
Similarity
How to efficiently solve the nearest neighbor problem for large datasets using sub-linear in time solutions.
- Locality-sensitive hashing
- MinHash
- SimHash
Editions
-
English
Probabilistic Data Structures and Algorithms for Big Data Applications
- Published
- 2019
- ISBN
- 978-3-7481-9048-6
- Publisher
- Books on Demand (BoD), Norderstedt
-
Russian
Вероятностные структуры данных и алгоритмы в приложениях Big Data
- Published
- 2022
- ISBN
- 978-3-347-54322-5
- Publisher
- tredition, Hamburg
-
Ukrainian
Ймовірнісні структури даних та алгоритми у застосунках Big Data
- Published
- 2024
- ISBN
- 979-8-324-62041-7
-
Simplified Chinese
概率数据结构与算法:面向大数据应用
- ISBN
- 978-7-111-71054-7
- Publisher
- China Machine Press (HZ Books), Computer Science series
- Translators
- 王平辉, 贾鹏, 李润东
Where to buy
The English edition.
Paperback
Published by BoD
E-book
Kindle, exclusively at Amazon
Free preview
Read the first pages: the preface, the table of contents and the beginning of the first chapter.
Download the preview (PDF, 0.8 MB)Google Books
Russian edition: ознакомительный фрагмент (PDF, 3.4 MB): title pages, contents, foreword and the beginning of chapter 1.
Errata
Found an error that is not in the list below? Please write to pdsa@gakhov.com. Once it is confirmed and fixed, it appears here.
| Edition | Location | Original text | Corrected text |
|---|---|---|---|
| 1st, 2019 | p. vii | footnote “What Is Big Data? https://www.ibm.com/software/data/bigdata/what-is-big-data.html” | [removed] |
| 1st, 2019 | p. 31 | “… by bitwise XOR, however …” | “… by bitwise AND, however …” |
| 1st, 2019 | p. 38, Algorithm 2.8 | ||
| 1st, 2019 | p. 41, Example 2.9 | … 16-bit fingerprints … | … 32-bit fingerprints … |
| 1st, 2019 | p. 41, Example 2.9 | ||
| 1st, 2019 | p. 41, Example 2.9 | ||
| 1st, 2019 | pp. 41, 43, Example 2.9 | ||
| 1st, 2019 | pp. 42–45 | … remainder … | … remainder … |
| 1st, 2019 | p. 62, Example 3.1 | “… of unique elements is 23 GB.” | “… of unique elements is 2.3 GB.” |
| 1st, 2019 | p. 65, Algorithm 3.2 | ||
| 1st, 2019 | p. 66, Example 3.3 | ||
| 1st, 2019 | p. 66, Example 3.3 | “… which is pretty close to …” | “… which is close but overestimates …” |
| 1st, 2019 | p. 66, Example 3.3 | ||
| 1st, 2019 | p. 67 | … a fixed constant , where is the total number of elements, including duplicates. Thus, the algorithm has time complexity. | … a fixed constant, and thus the algorithm has time complexity, where is the total number of elements, including duplicates. |
| 1st, 2019 | p. 81, Formula 3.12 | ||
| 1st, 2019 | p. 96, Example 4.2 | “… 500 billion …” | “… 500 million …” |
| 1st, 2019 | p. 109, Example 4.5 | ||
| 1st, 2019 | p. 135, Example 5.3 | “… remaining empty buffer .” | “… remaining empty buffer .” |
| 1st, 2019 | p. 159, Example 5.10 | ||
| 1st, 2019 | p. 173, Example 6.8 |
