Jump to content

Randomization function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jorge Stolfi (talk | contribs) at 23:08, 11 April 2009 (Turned redirect of hash function to a separate article since the concepts are different.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, randomization function or randomizing function is a algorithm or procedure that implements a random function between two specific sets.

Randomizing functions are central to the design of randomized algorithms, that have good expected performance for any input. For example, consider an algorithm like quicksort, which has small expected running time for random inputs, but is very slow when the input data are presented in certain unfavorable orders. A randomizing function from the integers 1 to n to the integers 1 to n can be used used to rerrange the n input items in "random" order, before calling that algorithm. This modified algorithm will have small expected running time for any input.

Randomizing functions are related to random number generators and hash functions, but have somewhat different requirements and uses, and often need specific algorithms.

{[stub}}