SlideShare a Scribd company logo
Randomized Algorithms
CS648
Lecture 9
Random Sampling
part-I
(Approximating a parameter)
1
Overview of the Lecture
Randomization Framework for estimation of a parameter
1. Number of balls from a bag
2. Size of transitive closure of a directed graph
• An Inspirational Problem from Continuous probability
AN INSPIRATIONAL PROBLEM FROM
CONTINUOUS PROBABILITY
0 1
0 1
Sampling points on a line segment
0 1
Sampling points on a Circle (of circumference 1)
1
Transforming a line segment to a circle
(just a different perspective)
The knot formed by
joining the ends of
the line segment
Give the knot a
uniformly random
rotation around
the circle
Transforming a line segment to a circle
(just a different perspective)
First uniformly
random point is the
knot.
0 1
We have got the answer of the problem
(without any knowledge of continuous probability theory)
0 1
Lecture 9-cs648-2013 Randomized Algorithms
ESTIMATING THE NUMBER OF
BALLS IN A BAG
Estimating the number of Balls in a BAG
4
t
1
2
3
5
n
j
q
:
c
:
i
l
l
:
:
:
::
:
Estimating the number of Balls in a BAG
4
t
1
2
3
5
n
j
q
:
c
:
i
l
l
:
:
:
::
:
Can we use it to design
an algorithm ?
Estimating the number of Balls in a BAG
4
t
1
2
3
5
n
j
q
:
c
:
i
l
l
:
:
:
::
:
How good is the estimate ?
2 N1
N-1
multiple sampling.
Multiple samplings to
improve accuracy and reduce error probability
21 N
A better algorithm for
estimating the number of balls:
21 N
Final result
Randomized framework for
estimating a parameter
ESTIMATING THE SIZE OF
TRANSITIVE CLOSURE OF A DIRECTED GRAPH
Estimating size of Transitive Closure of
a Directed Graph
Estimating size of Transitive Closure of
a Directed Graph
Estimating size of Transitive Closure of
a Directed Graph
Randomized Monte Carlo Algorithm for
estimating the size of transitive closure of directed graph
MIN-Label Problem
MIN-Label Problem
MIN-Label Problem
Inference from the inspirational problem
RANDOMIZED MONTE CARLO ALGORITHM
FOR ESTIMATING THE SIZE OF
TRANSITIVE CLOSURE OF A DIRECTED GRAPH
Lecture 9-cs648-2013 Randomized Algorithms
0.45
0.71
0.22
0.53
0.830.38
0.34
0.14
0.45
0.71
0.22
0.53
0.83
0.28
0.901
0.65
0.265
0.49
0.54
0.74
0.38
0.81
0.63
Estimating size of Transitive Closure of
a Directed Graph
Estimating size of Transitive Closure of
a Directed Graph
0 1
Can you answer Question 2 now ?
Estimating size of Transitive Closure of
a Directed Graph
Homework
Use Chernoff bound to get a high probability bound on the error.
Hint:
Proceed along similar lines as in the case of estimating number of balls in a bag.
Make sincere attempts to do this homework. I shall discuss the same briefly in
the beginning of the next class.

More Related Content

PPT
Cohen-sutherland & liang-basky line clipping algorithm
PPT
Line clipping
PDF
SJUT/Mat210/Regression/Linear 2013-14S2
PPTX
Clipping
PPTX
line clipping
PPTX
Line clipping algorithm (Detailed)
PPTX
Cohen-Sutherland Line Clipping Algorithm
PPTX
Clipping 22
Cohen-sutherland & liang-basky line clipping algorithm
Line clipping
SJUT/Mat210/Regression/Linear 2013-14S2
Clipping
line clipping
Line clipping algorithm (Detailed)
Cohen-Sutherland Line Clipping Algorithm
Clipping 22

What's hot (14)

PPTX
Computer Graphic - Clipping
PPTX
Circle & curve clipping algorithm
PPTX
Cohen sutherland line clipping
PPT
Cohen and Sutherland Algorithm for 7-8 marks
PPT
Clipping in Computer Graphics
PPTX
Cohen sutherland line clipping algorithm
PPT
Calc 3.6a
PDF
clipping
PPTX
Clipping computer graphics
PPTX
January 23, 2015
PDF
PDF
Open GL 09 scan conversion
DOCX
Cohen sutherland algorithm
PPTX
Clipping ( Cohen-Sutherland Algorithm )
Computer Graphic - Clipping
Circle & curve clipping algorithm
Cohen sutherland line clipping
Cohen and Sutherland Algorithm for 7-8 marks
Clipping in Computer Graphics
Cohen sutherland line clipping algorithm
Calc 3.6a
clipping
Clipping computer graphics
January 23, 2015
Open GL 09 scan conversion
Cohen sutherland algorithm
Clipping ( Cohen-Sutherland Algorithm )
Ad

Viewers also liked (16)

PPTX
Lecture 10-cs648=2013 Randomized Algorithms
PPTX
Lecture 17-cs648
PPTX
Lecture 11-cs648-2013 Randomized Algorithms
PDF
Inovativa 2016
PPTX
Lecture 12-cs648-2013 Randomized Algorithms
PPTX
Lecture 5-cs648 Randomized Algorithms
PPTX
Lecture 4-cs648 Randomized Algorithms
PPTX
Lecture 18-cs648
PPTX
Lecture 14-cs648-2013
PPTX
Lecture 3-cs648 Randomized Algorithms
PPTX
Lecture 7-cs648 Randomized Algorithms
PPTX
Lecture 2-cs648 Randomized Algorithms
PPTX
Lecture 6-cs648 Randomized Algorithms
PPTX
Lecture 19-cs648
PPTX
Lecture 16
DOC
Muhammad umair cv sap pm wo pic
Lecture 10-cs648=2013 Randomized Algorithms
Lecture 17-cs648
Lecture 11-cs648-2013 Randomized Algorithms
Inovativa 2016
Lecture 12-cs648-2013 Randomized Algorithms
Lecture 5-cs648 Randomized Algorithms
Lecture 4-cs648 Randomized Algorithms
Lecture 18-cs648
Lecture 14-cs648-2013
Lecture 3-cs648 Randomized Algorithms
Lecture 7-cs648 Randomized Algorithms
Lecture 2-cs648 Randomized Algorithms
Lecture 6-cs648 Randomized Algorithms
Lecture 19-cs648
Lecture 16
Muhammad umair cv sap pm wo pic
Ad

Similar to Lecture 9-cs648-2013 Randomized Algorithms (20)

PPTX
Lecture 9-cs648-2013
PPTX
02-gates-w.pptx
PPT
PPT
QC-UNIT 2.ppt
PPTX
Learning Algorithms For A Specific Configuration Of The Quantron
PPTX
Statistics Assignment Help
PDF
Illustration Clamor Echelon Evaluation via Prime Piece Psychotherapy
PDF
Machine Setup Time - A Limit Determiner (Tool)
PDF
Optimization of sample configurations for variogram estimation
PDF
Materi_05_CG_2223_2_.pdf
PPT
03raster 1
PDF
mid_presentation
PPTX
Vu_HPSC2012_02.pptx
PDF
Andrew_Hair_Assignment_3
PDF
Count-Distinct Problem
PPT
discrete and continuous probability distributions pptbecdoms-120223034321-php...
PPTX
machine learning.pptx
PPTX
UNIT2.pptx
PPT
Graphics6 bresenham circlesandpolygons
Lecture 9-cs648-2013
02-gates-w.pptx
QC-UNIT 2.ppt
Learning Algorithms For A Specific Configuration Of The Quantron
Statistics Assignment Help
Illustration Clamor Echelon Evaluation via Prime Piece Psychotherapy
Machine Setup Time - A Limit Determiner (Tool)
Optimization of sample configurations for variogram estimation
Materi_05_CG_2223_2_.pdf
03raster 1
mid_presentation
Vu_HPSC2012_02.pptx
Andrew_Hair_Assignment_3
Count-Distinct Problem
discrete and continuous probability distributions pptbecdoms-120223034321-php...
machine learning.pptx
UNIT2.pptx
Graphics6 bresenham circlesandpolygons

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PPTX
A Presentation on Artificial Intelligence
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
A Presentation on Artificial Intelligence
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
sap open course for s4hana steps from ECC to s4
Dropbox Q2 2025 Financial Results & Investor Presentation
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx

Lecture 9-cs648-2013 Randomized Algorithms