Randomized Algorithms Randomized Algorithms CS648 Lecture 6 Reviewing the last 3 lectures Application of Fingerprinting Techniques 1-dimensional Pattern.

Slides:



Advertisements
Similar presentations
Randomized Algorithms Introduction Rom Aschner & Michal Shemesh.
Advertisements

Sublinear Algorithms … Lecture 23: April 20.
Overcoming Limitations of Sampling for Agrregation Queries Surajit ChaudhuriMicrosoft Research Gautam DasMicrosoft Research Mayur DatarStanford University.
Counting Distinct Objects over Sliding Windows Presented by: Muhammad Aamir Cheema Joint work with Wenjie Zhang, Ying Zhang and Xuemin Lin University of.
CSCI 3160 Design and Analysis of Algorithms Tutorial 4
Analysis of Algorithms
Order Statistics Sorted
Random variables 1. Note  there is no chapter in the textbook that corresponds to this topic 2.
Theory of Computing Lecture 3 MAS 714 Hartmut Klauck.
“Devo verificare un’equivalenza polinomiale…Che fò? Fò dù conti” (Prof. G. Di Battista)
Randomized Algorithms Randomized Algorithms CS648 Lecture 9 Random Sampling part-I (Approximating a parameter) Lecture 9 Random Sampling part-I (Approximating.
Lecture 3: Randomized Algorithm and Divide and Conquer II: Shang-Hua Teng.
Randomized Algorithms Randomized Algorithms CS648 Lecture 2 Randomized Algorithm for Approximate Median Elementary Probability theory Lecture 2 Randomized.
Randomized Algorithms Randomized Algorithms CS648 Lecture 3 Two fundamental problems Balls into bins Randomized Quick Sort Random Variable and Expected.
1 Today’s Material Medians & Order Statistics – Ch. 9.
Randomized Algorithms Randomized Algorithms CS648 Lecture 1 1.
CSC-2259 Discrete Structures
Randomized Algorithms Randomized Algorithms CS648 Lecture 20 Probabilistic Method (part 1) Lecture 20 Probabilistic Method (part 1) 1.
Randomized Algorithms Randomized Algorithms CS648 Lecture 8 Tools for bounding deviation of a random variable Markov’s Inequality Chernoff Bound Lecture.
Quick Sort Elements pivot Data Movement Sorted.
CS38 Introduction to Algorithms Lecture 7 April 22, 2014.
Lecture 8 Jianjun Hu Department of Computer Science and Engineering University of South Carolina CSCE350 Algorithms and Data Structure.
Maths for Computer Graphics
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Lecture 1 (Part 1) Introduction/Overview Tuesday, 9/4/01.
Efficient Statistical Pruning for Maximum Likelihood Decoding Radhika Gowaikar Babak Hassibi California Institute of Technology July 3, 2003.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2003 Review Lecture Tuesday, 5/6/03.
CS333/ Topic 11 CS333 - Introduction CS333 - Introduction General information Goals.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2002 Lecture 1 (Part 1) Introduction/Overview Tuesday, 9/3/02.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2002 Review Lecture Tuesday, 12/10/02.
Preference Analysis Joachim Giesen and Eva Schuberth May 24, 2006.
1 CSC401 – Analysis of Algorithms Lecture Notes 9 Radix Sort and Selection Objectives  Introduce no-comparison-based sorting algorithms: Bucket-sort and.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Study Group Randomized Algorithms Jun 7, 2003 Jun 14, 2003.
Theory I Algorithm Design and Analysis (9 – Randomized algorithms) Prof. Dr. Th. Ottmann.
Lecture 20: April 12 Introduction to Randomized Algorithms and the Probabilistic Method.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2002 Lecture 1 (Part 1) Introduction/Overview Tuesday, 1/29/02.
The Design and Analysis of Algorithms
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
1 Fingerprinting techniques. 2 Is X equal to Y? = ? = ?
Finding Frequent Items in Data Streams [Charikar-Chen-Farach-Colton] Paper report By MH, 2004/12/17.
Chapter 14 Randomized algorithms Introduction Las Vegas and Monte Carlo algorithms Randomized Quicksort Randomized selection Testing String Equality Pattern.
Treatment Learning: Implementation and Application Ying Hu Electrical & Computer Engineering University of British Columbia.
CPSC 335 Randomized Algorithms Dr. Marina Gavrilova Computer Science University of Calgary Canada.
Monte Carlo Methods Versatile methods for analyzing the behavior of some activity, plan or process that involves uncertainty.
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.
Optimal XOR Hashing for a Linearly Distributed Address Lookup in Computer Networks Christopher Martinez, Wei-Ming Lin, Parimal Patel The University of.
Chapter 7 Sampling and Sampling Distributions ©. Simple Random Sample simple random sample Suppose that we want to select a sample of n objects from a.
Author: B. C. Bromley Presented by: Shuaiyuan Zhou Quasi-random Number Generators for Parallel Monte Carlo Algorithms.
BLAST: Basic Local Alignment Search Tool Altschul et al. J. Mol Bio CS 466 Saurabh Sinha.
Simulating Differential Dosimetry M. E. Monville1, Z. Kuncic2,3,4, C. Riveros1, P. B.Greer1,5 (1)University of Newcastle, (2) Institute of Medical Physics,
Searching Chapter 13 Objectives Upon completion you will be able to:
1 Embedding and Similarity Search for Point Sets under Translation Minkyoung Cho and David M. Mount University of Maryland SoCG 2008.
CSCI-455/552 Introduction to High Performance Computing Lecture 23.
ICS 353: Design and Analysis of Algorithms
Communication Complexity Guy Feigenblat Based on lecture by Dr. Ely Porat Some slides where adapted from various sources Complexity course Computer science.
1. Searching The basic characteristics of any searching algorithm is that searching should be efficient, it should have less number of computations involved.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Review Lecture Tuesday, 12/11/01.
REU 2009-Traffic Analysis of IP Networks Daniel S. Allen, Mentor: Dr. Rahul Tripathi Department of Computer Science & Engineering Data Streams Data streams.
REVIEW Linear Combinations Given vectors and given scalars
Subject Name: Design and Analysis of Algorithm Subject Code: 10CS43
Open Problems in Streaming
Lecture 5 – Improved Monte Carlo methods in finance: lab
Randomized Algorithms CS648
Randomized Algorithms CS648
Chapter 5: Probabilistic Analysis and Randomized Algorithms
Problem 1.
Randomized Algorithms CS648
Chapter 5: Probabilistic Analysis and Randomized Algorithms
What is this course about?
Presentation transcript:

Randomized Algorithms Randomized Algorithms CS648 Lecture 6 Reviewing the last 3 lectures Application of Fingerprinting Techniques 1-dimensional Pattern matching Preparation for the next lecture. Lecture 6 Reviewing the last 3 lectures Application of Fingerprinting Techniques 1-dimensional Pattern matching Preparation for the next lecture. 1

Randomized Algorithms discussed till now Randomized algorithm for Approximate Median Randomized Quick Sort Frievald’s algorithm for Matrix Product Verification Randomized algorithm for Equality of two files 2 Randomly select a sample Randomly permute the array Randomly select a vector Randomly select a prime number

Randomized Algorithms How does one go about designing a randomized algorithm ? 3

Randomized Algorithms Some random idea is required to design a randomized algorithm. 4

Randomized Algorithms An idea based on insight into the problem Difficult/impossible to exploit the idea deterministically A randomized algorithm 5 Randomization to materialize the idea

RANDOMIZED QUICK SORT 6

Randomized Quick Sort 7 Elements of A arranged in Increasing order of values A pivot

Randomized Quick Sort Observation: There are many elements in A that are good pivot. Is it possible to select one good pivot efficiently ? (not possible deterministically  ) We select pivot element randomly uniformly. 8

RANDOMIZED ALGORITHM FOR APPROXIMATE MEDIAN 9

Randomized Algorithm for Approximate median A sample captures the essence of the original population. 10

Randomized Algorithm for Approximate median Idea: Is it possible to select a small subset of elements whose median approximates the median ? (not possible deterministically  ) Median of a uniformly random sample will be approximate median. 11 A random sample captures the essence of the original population.

FRIEVALD’S TECHNIQUE APPLICATION MATRIX PRODUCT VERIFICATION 12

Frievald’s Algorithm 13

Frievald’s Algorithm The key idea 14 Randomization used to exploit the idea:

Frievald’s Algorithm (Analyzing error probability) 15

FINGERPRINTING APPLICATION CRYPTOGRAPHY 16

17 Aim: To determine if File A identical to File B by communicating fewest bits ? File A File B

Key idea from prime 19

Visualize a file as a binary number 20

FINGERPRINTING APPLICATION 3 PATTERN MATCHING 21

Motivation Simplicity, real time implementation, streaming environment Extension to 2-dimensions Converting Monte Carlo to Las Vegas algorithm m⨯mm⨯m n⨯nn⨯n

RANDOMIZED ALGORITHM FOR FINGERPRINTING 24

Small size Efficiently computable

Small size but Not efficiently computable

Fingerprint function: how good is it ?

Bounding the error probability of the algorithm 29

Final result 30

Probability tool (union theorem) 31

APPLICATIONS OF THE UNION THEOREM 32

Balls into Bins … i … n … m-1 m

Balls into Bins … i … n … m-1 m

Randomized Quick sort 35