Role of Randomness
In many cases, the space requirements for an algorithm can be drastically cut by using a randomized algorithm. For example, say we wish to know if two vertices in a graph of n vertices are in the same connected component of the graph. There is no known simple, deterministic, in-place algorithm to determine this, but if we simply start at one vertex and perform a random walk of about 20n3 steps, the chance that we will stumble across the other vertex provided that it's in the same component is very high. Similarly, there are simple randomized in-place algorithms for primality testing such as the Miller-Rabin primality test, and there are also simple in-place randomized factoring algorithms such as Pollard's rho algorithm. See RL and BPL for more discussion of this phenomenon.
Read more about this topic: In-place Algorithm
Famous quotes containing the words role of and/or role:
“The role of the intelligencethat part of us which affirms and denies and formulates opinionsis merely to submit.”
—Simone Weil (19091943)
“A few [women] warrant our attention not because they have the answer but because they have rejected the mentality that insists there must be one answer. What makes them role models is not how much or how little they work, how many or how few hats they wear, but rather how well they understand, and accept, that for all rewards there will be commensurate sacrifice; for all gains, some loss; for any pleasure, some pain.”
—Melinda M. Marshall (20th century)