The document discusses randomized algorithms. Randomized algorithms employ randomness as part of their logic, using random bits to guide their behavior. This allows them to achieve good average performance over many trials. The output or running time of a randomized algorithm is a random variable. Advantages include simplicity, efficiency through testing many possibilities, and better complexity bounds than deterministic algorithms. Disadvantages include potential for hardware failures from long runtimes, high memory usage for repeated processes, and longer runtimes as operations split into many parts.
1 of 2
Downloaded 56 times
More Related Content
Topic 1.4: Randomized Algorithms
1. Chapter Name:
Introduction To Algorithm
Topic 1.4 :
Randomized Algorithms
Project Prepared By:
KM Bappi
CSE 2006-2007
2. Q:1: What Is Randomized Algorithms? Describe its Advantages
and Disadvantages.
Answers :
A Randomized Algorithm is an algorithm which employs a degree of randomness as part of its logic. The algorithm typically uses
uniformly random bits as an auxiliary input to guide its behavior, in the hope of achieving good performance in the "average case" over all possible
choices of random bits. Formally, the algorithm's performance will be a random variable determined by the random bits; thus either the running time, or
the output (or both) are random variables.
Advantages of Randomized Algorithms Disadvantages of Randomized Algorithms
Simplicity:
A majority of the randomized algorithms found in a literature are
simpler then the best deterministic algorithms for the same problem.
Efficiency:
For repeated element identification and primary testing grabs the
most effective part with countless results.
Complexity Bounds:
Have also been shown to yield better complexity bounds.
Competitive In Practice:
Easy to practice.
Less Spend Time:
For repeated element identification spend time for RA is (log n)
where for deterministic algorithms is 立 (log n)
Hardware Fail:
Max time with continues progress can be cased mass hardware fail.
Mass Space Required:
For Continues and repeated process it requires mass storage space
on the main memory.
Longer Runtime:
For being repeated algorithm the process looped between some
specific process. While being a operation progressed the operation
splits into continuous parts and it causes a longer run time to get the
ending result.