random algorithms
random algorithms Algorithms that are fast but instead of always giving the correct answer give the correct answer with high probability. They have been devised because of the difficulty (impossibility?) of finding polynomial time algorithms for some problems (see P=NP question).
An example is that of trying to test whether or not a number is prime. Given an integer n there is a test that uses a “guess” i, chosen at random between 1 and n, that takes O(log2n) time to perform. If the test is successful n is known to have factors; on the other hand if n has factors then the test will be successful for at least half of the integers in the range 1 to n. Thus if the test fails k times it can be said that n is prime with probability 1 – 2–k.
Several other examples of problems amenable to a similar approach have now been found. However, such examples are either already known to be solvable in polynomial time anyway (although the random algorithms are an order of magnitude faster) or, like prime-testing, under suspicion of so being.
An example is that of trying to test whether or not a number is prime. Given an integer n there is a test that uses a “guess” i, chosen at random between 1 and n, that takes O(log2n) time to perform. If the test is successful n is known to have factors; on the other hand if n has factors then the test will be successful for at least half of the integers in the range 1 to n. Thus if the test fails k times it can be said that n is prime with probability 1 – 2–k.
Several other examples of problems amenable to a similar approach have now been found. However, such examples are either already known to be solvable in polynomial time anyway (although the random algorithms are an order of magnitude faster) or, like prime-testing, under suspicion of so being.
More From encyclopedia.com
Acceptance testing , acceptance testing See testing. See also review.
system testing See testing. Undescended Testes , Definition
Also known as cryptorchidism, undescended testes is a congenital condition characterized by testicles that do not follow the normal develo… Psychological Tests , Definition
Psychological tests are written, visual, or verbal evaluations administered to assess the cognitive and emotional functioning of children… Bender-gestalt Test , Bender-Gestalt Test
Definition
The Bender Visual Motor Gestalt test (or Bender-Gestalt test) is a psychological assessment used to evaluate visual-mo… Schilling Test , Schilling test (shil-ing) n. a test used to assess a patient's capacity to absorb vitamin B12 from the bowel. Radioactive vitamin B12 is given by mou… Hypothesis , The formulation of hypotheses and their testing through observation are essential steps in the scientific process. A detailed discussion of their rol…
You Might Also Like
NEARBY TERMS
random algorithms