Randomized Algorithms Randomized Algorithms CS648 Lecture 1 1.

Slides:



Advertisements
Similar presentations
CSCI 3160 Design and Analysis of Algorithms Tutorial 4
Advertisements

Order Statistics Sorted
WS Algorithmentheorie 03 – Randomized Algorithms (Primality Testing) Prof. Dr. Th. Ottmann.
Randomized Algorithms Randomized Algorithms CS648 Lecture 2 Randomized Algorithm for Approximate Median Elementary Probability theory Lecture 2 Randomized.
Lecture 1: Overview CMSC 201 Computer Science 1 (Prof. Chang version)
1 Today’s Material Medians & Order Statistics – Ch. 9.
Randomized Algorithms Randomized Algorithms CS648 Lecture 6 Reviewing the last 3 lectures Application of Fingerprinting Techniques 1-dimensional Pattern.
CSL758 Instructors: Naveen Garg Kavitha Telikepalli Scribe: Manish Singh Vaibhav Rastogi February 7 & 11, 2008.
WS Algorithmentheorie 03 – Randomized Algorithms (Overview and randomised Quicksort) Prof. Dr. Th. Ottmann.
Humboldt University Berlin, University of Novi Sad, University of Plovdiv, University of Skopje, University of Belgrade, University of Niš, University.
CSE332: Data Abstractions Lecture 27: A Few Words on NP Dan Grossman Spring 2010.
March 11, 2015CS21 Lecture 271 CS21 Decidability and Tractability Lecture 27 March 11, 2015.
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
CSE 830: Design and Theory of Algorithms Dr. Eric Torng.
EE 220 (Data Structures and Analysis of Algorithms) Instructor: Saswati Sarkar T.A. Prasanna Chaporkar, Programming.
Study Group Randomized Algorithms Jun 7, 2003 Jun 14, 2003.
Theory I Algorithm Design and Analysis (9 – Randomized algorithms) Prof. Dr. Th. Ottmann.
Syllabus 1. Go to Click Analysis of Algorithms link 4. bookmark course website  Important.
Lecture 20: April 12 Introduction to Randomized Algorithms and the Probabilistic Method.
CSE 589 Applied Algorithms Course Introduction. CSE Lecture 1 - Spring Instructors Instructor –Richard Ladner –206.
Lecture 29 CSE 331 Nov 11, To be strictly enforced For the rest of the semester on Fridays SUBMIT your HOMEWORKS by 1:10 PM.
Spring 2012 MATH 250: Calculus III. Course Topics Review: Parametric Equations and Polar Coordinates Vectors and Three-Dimensional Analytic Geometry.
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
Spring 2008 Mark Fontenot CSE 1341 Principles of Computer Science I Note Set 1 1.
Polyhedral Optimization Lecture 1 – Part 1 M. Pawan Kumar Slides available online
CS223 Algorithms D-Term 2013 Instructor: Mohamed Eltabakh WPI, CS Introduction Slide 1.
Introduction to the Theory of Computation
CS216: Program and Data Representation University of Virginia Computer Science Spring 2006 David Evans Lecture 25 There.
Randomized Algorithms (Probabilistic algorithm) Flip a coin, when you do not know how to make a decision!
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Randomized Turing Machines
Chapter 14 Randomized algorithms Introduction Las Vegas and Monte Carlo algorithms Randomized Quicksort Randomized selection Testing String Equality Pattern.
Course Web Page Most information about the course (including the syllabus) will be posted on the course wiki:
8/19/2003CS 303 – Administrivia Lecture 0 1 Administrivia Labs Homework Grades Exams Quiz.
CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.
Course Overview Prepared by L. Nouf Almujally 1. Course Objectives Fundamental concepts of database systems, in particular, relational database systems.
CPSC 335 Randomized Algorithms Dr. Marina Gavrilova Computer Science University of Calgary Canada.
Data Structures (Second Part) Lecture 1 Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University.
1 WELCOME TO COMPUTER SCIENCE 1027b COMPUTER SCIENCE FUNDAMENTALS II Lecturers: Eric Schost (001) John Barron (002)
CS 6961: Structured Prediction Fall 2014 Course Information.
COT 5405 Spring 2009 Discussion Session 3. Introduction Our weekly discussion class are like organized TA office hours. Here we encourage students to.
Computation Model and Complexity Class. 2 An algorithmic process that uses the result of a random draw to make an approximated decision has the ability.
Introduction to LS 10A:Elementary Algebra with Geometry Multimedia Course with ALEKS tutorial.
CS 456 Advanced Algorithms Where: Engineering Bldg When: Monday & Wednesday 12:00 – 1:15 p.m. Texts: Algorithm Design, Jon Kleinberg & Eva Tardos.
Fall 2014 MATH 250: Calculus III. Course Topics Review: Parametric Equations and Polar Coordinates Vectors and Three-Dimensional Analytic Geometry.
1 BIM304: Algorithm Design Time: Friday 9-12am Location: B4 Instructor: Cuneyt Akinlar Grading –2 Midterms – 20% and 30% respectively –Final – 30% –Projects.
Lecture 1: Overview CMSC 201 Computer Science 1. Course Info This is the first course in the CMSC intro sequence, followed by 202 CS majors must pass.
ICS 353: Design and Analysis of Algorithms
Boris Milašinović Faculty of Electrical Engineering and Computing University of Zagreb, Croatia.
NP-Completness Turing Machine. Hard problems There are many many important problems for which no polynomial algorithms is known. We show that a polynomial-time.
Communication Complexity Guy Feigenblat Based on lecture by Dr. Ely Porat Some slides where adapted from various sources Complexity course Computer science.
Analysis of Algorithms Spring semester 2002 Uri Zwick
DATA STRUCTURES (CS212D) Overview & Review Instructor Information 2  Instructor Information:  Dr. Radwa El Shawi  Room: 
Instructor: Shengyu Zhang 1. Optimization Very often we need to solve an optimization problem.  Maximize the utility/payoff/gain/…  Minimize the cost/penalty/loss/…
Spring 2008 Mark Fontenot CSE 1341 – Honors Principles of Computer Science I Note Set 1 1.
RISK ANALYSIS & MANAGEMENT Budapest University of Technology and Economics Prof. Janos LEVENDOVSZKY, Attila CEFFER
Introduction to Computing
Introduction to Randomized Algorithms and the Probabilistic Method
Randomized Algorithm (Lecture 2: Randomized Min_Cut)
Lecture 8 Randomized Algorithms
CPSC 441: Computer Communications
Definition In simple terms, an algorithm is a series of instructions to solve a problem (complete a task) We focus on Deterministic Algorithms Under the.
COMS E F15 Lecture 2: Median trick + Chernoff, Distinct Count, Impossibility Results Left to the title, a presenter can insert his/her own image.
Crowd Simulation (INFOMCRWS) - Course Introduction
Randomized Algorithms CS648
Randomized Algorithms CS648
Dynamic Graph Algorithms
Randomized Algorithms CS648
Programming Fundamentals Lecture #1 Overview of Computer Programming
COMP 122 – Design and Analysis of Algorithms
Presentation transcript:

Randomized Algorithms Randomized Algorithms CS648 Lecture 1 1

Overview of the lecture What is a randomized algorithm ? Motivation The structure of the course 2

What is a randomized algorithm ? 3

Deterministic Algorithm The output as well as the running time are functions only of the input. 4 Algorithm Input Output

Randomized Algorithm The output or the running time are functions of the input and random bits chosen. 5 Algorithm Input Output Random bits

EXAMPLE 1 : APPROXIMATE MEDIAN 6

Approximate median 7

EXAMPLE 2 : RANDOMIZED QUICK SORT 8

9

10

11

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

MOTIVATION FOR RANDOMIZED ALGORITHMS 13

“Randomized algorithm for a problem is usually simpler and more efficient than its deterministic counterpart.” 14

Example 1: Sorting 15

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

Example 3: minimum Cut 17

Example 4: Primality Testing 18

UNCERTAINTY ASSOCIATED WITH RANDOMIZED ALGORITHMS IS IT REALLY A SERIOUS ISSUE ? 19

A real Fact [A study by Microsoft in 2008] 20 Compare this probability with the failure (or exceeding the running time) probability of various randomized algorithms mentioned earlier.

COURSE STRUCTURE 21

Prerequisites Fundamentals of Data structures Fundamentals of the design and analysis of Algorithms Adequate programming skills (in C++) Elementary probability (12 th standard) Ability to work hard Commitment to attend classes 22

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

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