Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Talk:Count-distinct problem

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 1 year ago by Pychron in topic CVM algorithm: Knuth's version or not?

[Untitled]

[edit]

Hi, I created a page titled "Weighted Cardinality Estimation", I want to rename it so I created another page with the same content titled "Count-Distinct Problem".

Please delete the "Weighted Cardinality Estimation" and keep the "Count-Distinct Problem" page - this should be the page's name.

Thank you, Aviv

I've moved the page for you. Tutelary (talk) 22:39, 15 October 2014 (UTC)Reply

CVM algorithm; initial value of "p"?

[edit]

There's a seemingly clear definition of the CVM algorithm using pseudo-code. Problem: there's no apparent initial value for the variable "p" (a probability threshold). What should it be? -- Dan Griscom (talk) 22:52, 18 May 2024 (UTC)Reply

Must be 1 according to Knuth's paper. Retimuko (talk) 20:01, 19 May 2024 (UTC)Reply
In the CVM paper Algorithm 1, line 1, states: `Initialise p <- 1;`
Paddy (talk) 20:52, 28 May 2024 (UTC)Reply

CVM algo: halving p

[edit]

Fixed assignment to p. Needs to be outside the while loop. [1]

Paddy (talk) 20:38, 28 May 2024 (UTC)Reply

References

CVM algorithms: adding u to data structure

[edit]

I don't think there's any need to add u to the dictionary data structure (since it never gets used by the CVM algorithm). I believe it gets used in a CVM variant presented by Knuth (that deletes only 1 element at a time using treaps). 72.82.224.191 (talk) 11:47, 21 June 2024 (UTC)Reply

CVM algorithm: Knuth's version or not?

[edit]

The text claimed to present a modification by Knuth, but reading https://www-cs-faculty.stanford.edu/~knuth/papers/cvm-note.pdf his modification resulted in algorithm D, while algorithm X was the original one with a biased estimate. I've changed the page to show algorithm D and added algorithm D' as improvement of D.  Preceding unsigned comment added by Pychron (talkcontribs) 08:22, 13 November 2024 (UTC)Reply