{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture13AlgDesign1

# lecture13AlgDesign1 - Recursive breakdown of problem Saving...

This preview shows pages 1–8. Sign up to view the full content.

Algorithm Design Techniques (Chapter 10)  Overview of a large area

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
General types of algorithms Greedy algorithms Divide and conquer Dynamic programming Randomized algorithms Backtracking algorithms
Greedy algorithms Make the best choice at each phase May or may not get a global optimum Dijkstra’s algorithm and Kruskal’s  algorithm do produce globally optimal  results. Some change making algorithms and  some scheduling algorithms do also.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Divide and conquer Divide larger problem into smaller  problems, perhaps recursively. Solve (conquer) the smaller problems  and construct the solution to the larger  one. Binary search, quicksort, matrix  multiplication
Dynamic programming

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Recursive breakdown of problem Saving a table of intermediate results so that they need not be recomputed Ordering matrix multiplications All pairs shortest paths in graph Viterbi algorithm for error correction Randomized algorithms Use random number generation to make decision, avoid bad case. Skip lists Hashing? Backtracking Going forward with choices (perhaps in a greedy manner) but backing up to remake choices later on Can have smart heuristics to stop going forward and to prune a search tree Game playing Graph search See separate slides On different algorithm design techniques...
View Full Document

{[ snackBarMessage ]}

### Page1 / 8

lecture13AlgDesign1 - Recursive breakdown of problem Saving...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online