Advanced Data Structures: An Introduction
Advanced Data Structures: An Introduction
An introduction
120
linear (N)
100 Logarithmic (log N)
80
60
40
20
0
1 2 3 4 5 6 7 8 9 10
N
O(N) algorithm
1 billion transactions = > 1 billion clock cycles
O(lg N) algorithm
1 billion transactions => 30 clock cycles
Cpt S 223. School of EECS, WSU 7
Example 2
Scheduling job in a printer
Degrees of separation
Ch i off d
Choice data
t structures
t t matters
tt
Ch ll
Challenge
Design appropriate data structure & associated algorithms
for a problem
A l
Analyze tto show
h iimproved
d performance
f