Content deleted Content added
Pointed out that alias structure is not unique |
|||
Line 36:
The Alias structure is not unique.
As the lookup procedure is slightly faster if {{math|''y'' < ''U<sub>i</sub>''}} (because {{mvar|K<sub>i</sub>}} does not need to be consulted), one goal during table generation is to maximize the sum of the {{mvar|U<sub>i</sub>}}. Doing this optimally turns out to be [[NP hard]],<ref name=marsaglia/>{{Rp|6}} but a
==Efficiency==
|