Spectral Analysis of Internet Topologies - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Spectral Analysis of Internet Topologies

Description:

Say that a splitter is good if it creates two partitions whose sizes ... Factors of each other, eg 1/2 ,1/2 or 1/4,3/4, otherwise say that the splitter is bad. ... – PowerPoint PPT presentation

Number of Views:18
Avg rating:3.0/5.0
Slides: 8
Provided by: valueds176
Category:

less

Transcript and Presenter's Notes

Title: Spectral Analysis of Internet Topologies


1
Lecture 4, Wed. Aug 27 03.
Today
Quicksort Design Paradigm Recursion, Divide
Conquer, Randomization !!! Performance O(n
log n) comparisons, In Place ! Reading CLRS,
Chapter 7, and these
lecture notes.
2
Quicksort is a Recursive Divide Conquer
Algorithm
sort elements smaller than s
sort elements larger than s
3
By picking random splitters we create, on the
average, O( log n) recursion depth,
for a total number of comparisons, on the
average, O(n log n) .
Why do we expect recursion depth log n
? Because, even if we are unlucky and pick bad
splitters for a few rounds, we expect that, it
is unlikely to continue picking bad splitters for
too long, and pretty soon we are bound to pick a
good splitter.
Say that a splitter is good if it creates two
partitions whose sizes are within constant
Factors of each other, eg 1/2 ,1/2 or 1/4,3/4,
otherwise say that the splitter is bad. If all
splitters are good then the recursion depth is
definetely O( log n).
4
(No Transcript)
5
(No Transcript)
6
Complexity Analysis
T(n) Expected Number of Comparisons
Notice the partition is balanced, on the average
!!!
Formula is too messy to start substitutions. Will
bring it to slightly easier form.
7
Solve by Substitution
Write a Comment
User Comments (0)
About PowerShow.com