232 citations · 2.4k across the 65 of their papers we have counts for
16 papers · 1 filter
Exact Short Products From Truncated Multipliers
Daniel Lemire
We sometimes need to compute the most significant digits of the product of small integers with a multiplier requiring much storage: e.g., a large integer (e.g., ) or an ir…
Fast Number Parsing Without Fallback
Noble Mushtak, Daniel Lemire
In recent work, Lemire (2021) presented a fast algorithm to convert number strings into binary floating-point numbers. The algorithm has been adopted by several important systems:…
Transcoding Unicode Characters with AVX-512 Instructions
Robert Clausecker, Daniel Lemire
Intel includes in its recent processors a powerful set of instructions capable of processing 512-bit registers with a single instruction (AVX-512). Some of these instructions have…
Binary Fuse Filters: Fast and Smaller Than Xor Filters
Thomas Mueller Graf, Daniel Lemire
Bloom and cuckoo filters provide fast approximate set membership while using little memory. Engineers use them to avoid expensive disk and network accesses. The recently introduced…
Number Parsing at a Gigabyte per Second
Daniel Lemire
With disks and networks providing gigabytes per second, parsing decimal numbers from strings becomes a bottleneck. We consider the problem of parsing decimal numbers to the nearest…
Integer Division by Constants: Optimal Bounds
Daniel Lemire, Colin Bartlett, Owen Kaser
The integer division of a numerator n by a divisor d gives a quotient q and a remainder r. Optimizing compilers accelerate software by replacing the division of n by d with the div…
Xor Filters: Faster and Smaller Than Bloom and Cuckoo Filters
Thomas Mueller Graf, Daniel Lemire
The Bloom filter provides fast approximate set membership while using little memory. Engineers often use these filters to avoid slow operations such as disk or network accesses. As…
Efficient Computation of Positional Population Counts Using SIMD Instructions
Marcus D. R. Klarqvist, Wojciech Muła, Daniel Lemire
In several fields such as statistics, machine learning, and bioinformatics, categorical variables are frequently represented as one-hot encoded vectors. For example, given 8 distin…
Xorshift1024*, Xorshift1024+, Xorshift128+ and Xoroshiro128+ Fail Statistical Tests for Linearity
Daniel Lemire, Melissa E. O'Neill
L'Ecuyer & Simard's Big Crush statistical test suite has revealed statistical flaws in many popular random number generators including Marsaglia's Xorshift generators. Vigna recent…
Fast Random Integer Generation in an Interval
Daniel Lemire
In simulations, probabilistic algorithms and statistical tests, we often generate random integers in an interval (e.g., [0,s)). For example, random integers in an interval are esse…
Faster Population Counts Using AVX2 Instructions
Wojciech Muła, Nathan Kurz, Daniel Lemire
Counting the number of ones in a binary stream is a common operation in database, information-retrieval, cryptographic and machine-learning applications. Most processors have dedic…
Regular and almost universal hashing: an efficient implementation
Dmytro Ivanchykhin, Sergey Ignatchenko, Daniel Lemire
Random hashing can provide guarantees regarding the performance of data structures such as hash tables---even in an adversarial setting. Many existing families of hash functions ar…
Faster 64-bit universal hashing using carry-less multiplications
Daniel Lemire, Owen Kaser
Intel and AMD support the Carry-less Multiplication (CLMUL) instruction set in their x64 processors. We use CLMUL to implement an almost universal 64-bit hash family (CLHASH). We c…
Tag-Cloud Drawing: Algorithms for Cloud Visualization
Owen Kaser, Daniel Lemire
Tag clouds provide an aggregate of tag-usage statistics. They are typically sent as in-line HTML to browsers. However, display mechanisms suited for ordinary text are not ideal for…
Hierarchical Bin Buffering: Online Local Moments for Dynamic External Memory Arrays
Daniel Lemire, Owen Kaser
Local moments are used for local regression, to compute statistical measures such as sums, averages, and standard deviations, and to approximate probability distributions. We consi…
Streaming Maximum-Minimum Filter Using No More than Three Comparisons per Element
Daniel Lemire
The running maximum-minimum (max-min) filter computes the maxima and minima over running windows of size w. This filter has numerous applications in signal processing and time seri…