Las Vegas Algorithm

In computing, a Las Vegas algorithm is a randomized algorithm that always gives correct results; that is, it always produces the correct result or it informs about the failure. In other words, a Las Vegas algorithm does not gamble with the verity of the result; it gambles only with the resources used for the computation. A simple example is randomized quicksort, where the pivot is chosen randomly, but the result is always sorted. The usual definition of a Las Vegas algorithm includes the restriction that the expected run time always be finite, when the expectation is carried out over the space of random information, or entropy, used in the algorithm.

Las Vegas algorithms were introduced by László Babai in 1979, in the context of the graph isomorphism problem, as a stronger version of Monte Carlo algorithms. Las Vegas algorithms can be used in situations where the number of possible solutions is relatively limited, and where verifying the correctness of a candidate solution is relatively easy while actually calculating the solution is complex.

The name refers to the city of Las Vegas, Nevada, which is well known within the United States as an icon of gambling.

Read more about Las Vegas Algorithm:  Complexity Class, Relation To Monte Carlo Algorithms

Famous quotes containing the word vegas:

    Shoot, a fellow could have a pretty good weekend in Vegas with all that stuff.
    Stanley Kubrick (b. 1928)