4 ms·
We don't have to (and shouldn't, IMO) American-ize "Monte Carlo" Edit: TIL that they are different. (Thanks for the explanations below! esp: gmfawcett and 1001
by sokoloff 10y ago
We don't have to (and shouldn't, IMO) American-ize "Monte Carlo"
Edit: TIL that they are different. (Thanks for the explanations below! esp: gmfawcett and 1001101)
- protonfish 10y agoI guess you could use "stochastic" but that isn't nearly as clear and descriptive as "Monte Carlo"
- 1001101 10y agoLas Vegas = Always Correct, Probably Fast Monte Carlo = Probably Correct, Always Fast
- hyperbovine 10y agoSince when is Monte Carlo fast :-)
- snovv_crash 10y agoMore often than not, it is faster than figuring out the exact solution, if an exact solution exists. Things like having a piecewise distribution somewhere in your problem make Monte Carlo several orders of magnitude easier to implement.
- hyperbovine 10y agoThe depends a lot of the dimension of the space you're trying to integrate over, and in any case, (vanilla) Monte Carlo is trivial to implement. I was more poking fun at the very different way theorists and practitioners view classes certain algorithms. "Deterministic running time" is not a particularly strong guarantee, in practice.
- thomasahle 10y agoI think people would probably call an algorithm that is "Probably Correct, Probably Fast" Monte Carlo as well.
- funkaster 10y agoAdding speed to the classification is misleading. It might be better to state: - Las Vegas: Correct, Time unbounded - Monte Carlo: Not always correct, Time bounded edit: format
- kccqzy 10y agoAs pointed out already, a Las Vegas algorithm might have bounded but non-deterministic time.
- gmfawcett 10y agoI had the same initial reaction, but it seems that they are not the same thing: https://en.wikipedia.org/wiki/Las_Vegas_algorithm https://en.wikipedia.org/wiki/Las_Vegas_algorithm
- teraflop 10y agoIt's not just an Americanization. "Las Vegas" and "Monte Carlo" are technical terms with specific, different meanings. A Monte Carlo algorithm runs in a deterministic amount of time, and computes a probabilistic (approximate) result. For example: Monte Carlo numerical integration, or Miller-Rabin primality testing. A Las Vegas algorithm takes a non-deterministic amount of time, but is guaranteed to return a correct result. For example: quicksort with a random choice of pivot.
- tgb 10y agoI don't see why quick sort with a random pivot takes a non deterministic amount of time.
- rdtsc 10y ago> I don't see why quick sort with a random pivot takes a non deterministic amount of time. Because it might sort faster or slower depending on how the pivot gets picked. But you'd get the sorted list in the end. A Monte Carlo solution might run for 5 seconds but you might get a partially sorted list only.
- tgb 10y agoAh I see thanks. I was thinking the claim was that it might take an unbounded amount of time.
- rawnlq 10y agoThere's a popular interview question that has a las vegas algorithm as a solution. It's a more illustrative example since it takes an unbounded amount of time. Let's say you want to simulate a 1/3-biased coin with a fair coin. One solution is to flip the fair coin twice, then output heads if you get HH, output tails if you get TH or HT, otherwise retry (if TT). Then this process is guaranteed to always output heads with 1/3 probability and tails with 2/3 probability if it ever ends. The runtime complexity is unbounded since you can keep getting TT forever but the expected runtime is constant.