Algorithms: Design and Analysis Note

Divide-and-Conquer

 Master method

Assumption:all subproblems has same size

 

Recurrence Format 

 

The Master Method formula

 

Randomized Algorithms

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

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

以及在contraction algirithm中的应用

posted @ 2015-10-22 11:37  whu.yt  阅读(137)  评论(0编辑  收藏  举报