Approximate estimation of number of distinct keys in a multiset using a sample
AssigneeOracle International Corporation
InventorSuratna Budalakoti
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle International Corporation
InventorSuratna Budalakoti
Estimating the term…
Herein are quantitative analytics to increase the accuracy of cardinality estimation without increasing sample size. In an embodiment, a computer selects a few sample values from a multiset. A high-frequency exact count of distinct values that have at least a threshold amount of occurrences in the sample values is counted. A low-frequency exact count of distinct values in the sample that do not have at least the threshold amount of occurrences in the sample is counted. Based on multiple binomial probabilities, an upper bound of a count of missing distinct values in the multiset that are not in the sample is calculated. A total count of distinct values (NDV) in the multiset is estimated based on: a) the high-frequency exact count of distinct values, b) the low-frequency exact count of distinct values, and c) the upper bound of the count of missing distinct values in the multiset that are not in the sample.
A method comprising:
One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause:
Dependencies are inferred from the claim text.