18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Lecture 3 - recurrence relations<br />

A good example of this approach is insertion sort<br />

A recursive technique<br />

Divide-and-Conquer<br />

● Divide problem into sub-problems of the same kind.<br />

● For subproblems that are really small (trivial), solve them directly. Else solve them recursively.<br />

(conquer)<br />

● Combine subproblem solutions to solve the whole thing (combine)<br />

A good example of this approach is Mergesort.<br />

Next: Lecture 4 - heapsort Up: No Title Previous: Lecture 2 - asymptotic<br />

<strong>Algorithm</strong>s<br />

Mon Jun 2 09:21:39 EDT 1997<br />

file:///E|/LEC/LECTUR17/NODE3.HTM (10 of 10) [19/1/2003 1:34:27]

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

Saved successfully!

Ooh no, something went wrong!