Comparison of orbital rocket engines: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Savemaxim
Found a source for Merlin 1D TTW
en>Savemaxim
RD-0124: Active -> Operational
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
In [[computing]], the '''alias method''' is a family of efficient [[algorithm]]s for [[pseudo-random number sampling|sampling from a discrete probability distribution]], due to A. J. Walker.<ref>A. J. Walker, Electronics Letters 10, 127 (1974); ACM TOMS 3, 253 (1977)</ref> The algorithms typically use <math>O(n \log n)</math> or <math>O(n)</math> preprocessing time, after which random values can be drawn from the distribution in <math>O(1)</math> time.<ref>Vose, Michael. [http://web.eecs.utk.edu/~vose/Publications/random.pdf A Linear Algorithm For Generating Random Numbers with a Given Distribution]</ref>
Terrilyn is her identify despite the fact that it is not her birth identify. [http://Search.huffingtonpost.com/search?q=Meter+examining&s_it=header_form_v1 Meter examining] is how she makes a living. For several years she's been living in New [http://hampshire.com/ Hampshire] and she will by no means shift. To do martial arts is something she genuinely enjoys doing. Her partner and her preserve a web site. You may well want to look at it out: http://doc.[http://doc.froza.ru/index.php/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:JeffryYFFzrd froza.ru]/index.php/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:JeffryYFFzrd
 
Internally, the algorithm builds two tables, a ''[[probability]] [[Table (information)|table]]'' and an ''alias table''. To generate a random outcome, a fair [[dice|die]] is rolled to determine an index into the probability table. Based on the probability stored at that index, a [[biased coin]] is then flipped, and the outcome of the flip is used to determine which result to output.<ref>[http://www.keithschwarz.com/darts-dice-coins/ Darts, Dice, and Coins: Sampling from a Discrete Distribution]. KeithSchwarz.com. Retrieved on 2011-12-27.</ref>
 
There are cases in which the alias method is not optimal in rolls of the die. Consider the case where there are two choices with equal probability, and we have a die with 256 sides. The alias method could be performed with one throw of the die. However, the roll of the die could be used to make 8 independent selections between two choices using the binary representation of the numbers from 0 to 255. Another case is when there are a million different choices, but one of the choices has a probability of 99.99%. The alias method would require several rolls of the 256 side die. The table method described by Marsaglia et al. is more efficient.<ref>{{Citation |author1=George Marsaglia |author2=Wai Wan Tsang |author3=Jingbo Wang |title=Fast Generation of Discrete Random Variables |url=http://www.jstatsoft.org/v11/i03 |journal=Journal of Statistical Software |date=2004-07-12 |volume=11 |issue=3 |pages=1–11|accessdate=2012-07-14}}</ref>
 
==Literature==
 
Knuth, Art of Computer Programming, Vol 2: Seminumerical Algorithms: Sect. 3.4.1.
 
==Implementations==
* http://www.keithschwarz.com/darts-dice-coins/ Keith Schwarz: Detailed explanation, numerically stable version of Vose's algorithm, and link to Java implementation
* http://apps.jcns.fz-juelich.de/ransampl Joachim Wuttke: Implementation as a small C library.
 
==References==
{{reflist}}
 
[[Category:Pseudorandom number generators]]
 
 
{{statistics-stub}}
{{comp-sci-stub}}

Latest revision as of 23:44, 8 January 2015

Terrilyn is her identify despite the fact that it is not her birth identify. Meter examining is how she makes a living. For several years she's been living in New Hampshire and she will by no means shift. To do martial arts is something she genuinely enjoys doing. Her partner and her preserve a web site. You may well want to look at it out: http://doc.froza.ru/index.php/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:JeffryYFFzrd