DM207 I/O-Efficient Algorithms and Data Structures Fall 2009
Rolf Fagerberg
IOEADS Fall 2009 Page 1
DM207 I/O-Efficient Algorithms and Data Structures Fall 2009 Rolf - - PowerPoint PPT Presentation
DM207 I/O-Efficient Algorithms and Data Structures Fall 2009 Rolf Fagerberg IOEADS Fall 2009 Page 1 Analysis of algorithms (DM507, DM508,. . . ) The standard model: Memory CPU Add : 1 unit of time Mult : 1 unit of time Branch :
IOEADS Fall 2009 Page 1
IOEADS Fall 2009 Page 2
IOEADS Fall 2009 Page 3
IOEADS Fall 2009 Page 4
IOEADS Fall 2009 Page 5
IOEADS Fall 2009 Page 6
CPU Memory 2
Block
Memory 1
IOEADS Fall 2009 Page 7
IOEADS Fall 2009 Page 8
IOEADS Fall 2009 Page 9
IOEADS Fall 2009 Page 10
IOEADS Fall 2009 Page 11
IOEADS Fall 2009 Page 12
IOEADS Fall 2009 Page 13
IOEADS Fall 2009 Page 14
IOEADS Fall 2009 Page 15
B )
B log M
B ( N
M ))
B log M
B ( N
M ))})
B ) = O(N)
IOEADS Fall 2009 Page 16
B )
B log M
B ( N
M ))
B log M
B ( N
M ))})
IOEADS Fall 2009 Page 17
IOEADS Fall 2009 Page 18
IOEADS Fall 2009 Page 19