DM207 I/O-Efficient Algorithms and Data Structures Fall 2011
Rolf Fagerberg
IOEADS Fall 2011 Page 1
DM207 I/O-Efficient Algorithms and Data Structures Fall 2011 Rolf - - PowerPoint PPT Presentation
DM207 I/O-Efficient Algorithms and Data Structures Fall 2011 Rolf Fagerberg IOEADS Fall 2011 Page 1 Prologue You are working for MegaHard R , a large software firm whose latest product is the programming language D . Your boss tells
IOEADS Fall 2011 Page 1
, a large software firm whose latest
IOEADS Fall 2011 Page 2
IOEADS Fall 2011 Page 3
IOEADS Fall 2011 Page 4
IOEADS Fall 2011 Page 5
5e-09 1e-08 1.5e-08 2e-08 1000 10000 100000 1e+06 1e+07 1e+08 1e+09 Heapsort Mergesort Quicksort
IOEADS Fall 2011 Page 6
5e-09 1e-08 1.5e-08 2e-08 1000 10000 100000 1e+06 1e+07 1e+08 1e+09 Heapsort Mergesort Quicksort
IOEADS Fall 2011 Page 7
IOEADS Fall 2011 Page 8
IOEADS Fall 2011 Page 9
IOEADS Fall 2011 Page 10
IOEADS Fall 2011 Page 11
CPU Memory 2
Block
Memory 1
IOEADS Fall 2011 Page 12
IOEADS Fall 2011 Page 13
IOEADS Fall 2011 Page 14
IOEADS Fall 2011 Page 15
IOEADS Fall 2011 Page 16
IOEADS Fall 2011 Page 17
IOEADS Fall 2011 Page 18
B )
B log M
B ( N
M ))
B log M
B ( N
M ))})
B ) = O(N)
IOEADS Fall 2011 Page 19
B )
B log M
B ( N
M ))
B log M
B ( N
M ))})
IOEADS Fall 2011 Page 20
IOEADS Fall 2011 Page 21
IOEADS Fall 2011 Page 22