Jump to content

Talk:Alias method

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Cewbot (talk | contribs) at 19:43, 7 February 2024 (Maintain {{WPBS}} and vital articles: 3 WikiProject templates. Keep majority rating "Start" in {{WPBS}}. Remove 3 same ratings as {{WPBS}} in {{WikiProject Computing}}, {{WikiProject Statistics}}, {{WikiProject Mathematics}}.). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

optimizing

[edit]

I wonder whether there's literature on building the table to maximize , i.e., minimize the probability of consulting K. —Tamfang (talk) 21:03, 24 November 2018 (UTC)[reply]

Oops, there it is: Doing this optimally turns out to be NP hard, but a “Robin Hoodheuristic comes reasonably close: rob from the richest and give to the poorest. Cute, but I'll add a link to greedy algorithm. —Tamfang (talk) 19:59, 26 September 2019 (UTC)[reply]