12. Types of Randomized Algorithms
Randomized Las Vegas Algorithms:
ā¢ Output is always correct
ā¢ Running time is a random variable
Example: Randomized Quick Sort
Randomized Monte Carlo Algorithms:
ā¢ Output may be incorrect with some probability
ā¢ Running time is deterministic.
Example: Randomized algorithm for approximate median
12
16. Example 2: Smallest Enclosing circle
Problem definition: Given n points in a plane, compute the smallest radius circle
that encloses all n point.
Applications: Facility location problem
Best deterministic algorithm : [Megiddo, 1983]
ā¢
O(n) time complexity, too complex, uses advanced geometry
Randomized Las Vegas algorithm: [Welzl, 1991]
ā¢
Expected O(n) time complexity, too simple, uses elementary geometry
16
20. A real Fact
[A study by Microsoft in 2008]
Compare this probability with the failure (or exceeding
the running time) probability of various randomized
algorithms mentioned earlier.
20
22. Prerequisites
ā¢
ā¢
ā¢
ā¢
ā¢
ā¢
Fundamentals of Data structures
Fundamentals of the design and analysis of Algorithms
Adequate programming skills (in C++)
Elementary probability (12th standard)
Ability to work hard
Commitment to attend classes
22
23. Marks Breakup
Assignments: 40%
ā¢ Programming as well as theoretical.
ā¢ To be done in groups of 2.
Mid Semester Exam: 30%
End Semester Exam: 30%
Passing criteria:
ā¢ At least 25% marks in both the exam (Total 15 out of 60)
ā¢ If a student scores less than 50% marks in first mid semester exam, he/she
must attend all classes for the rest of the course.
23
24. Contact Details
Office: 307, Department of CSE
Office Hours:
ā Every week day 12:30PM-1:00PM and 5:30PM-6:00PM
Course website will be maintained at moodle.cse.iitk.ac.in
24