Algorithms: Design and Analysis Note

Divide-and-Conquer

 Master method

Assumption:all subproblems has same size

 

Recurrence Format 

Algorithms: Design and Analysis Note_第1张图片

 

The Master Method formula

Algorithms: Design and Analysis Note_第2张图片

 

Randomized Algorithms

QuickSort (选取一个pivot是关键,选取pivot的思想是关键)

Randomized Selection (也就是 QuickSelect)(也是选取一个pivot是关键)(分析running time的思想特别有借鉴意义)

以及在contraction algirithm中的应用

你可能感兴趣的:(Algorithms: Design and Analysis Note)