23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

if we implement D us<strong>in</strong>g a skip list, then we can perform best(c) queries <strong>in</strong><br />

O(logn) expected time <strong>and</strong> add(c,p) updates <strong>in</strong> O((1 + r)log n) expected time,<br />

where r is the number of po<strong>in</strong>ts removed. Thus, we are able to achieve good<br />

runn<strong>in</strong>g times for the methods that ma<strong>in</strong>ta<strong>in</strong> our set of maxima.<br />

9.6 Exercises<br />

for source code <strong>and</strong> help with exercises, please visit<br />

java.datastructures.net.<br />

Re<strong>in</strong>forcement<br />

R-9.1<br />

574

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!