Data Structures Lecture 9 Fang Yu Department of

Data Structures Lecture 9 Fang Yu Department of
1 / 1
Data Structures Lecture 9 Fang Yu Department of - slide 1 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 2 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 3 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 4 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 5 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 6 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 7 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 8 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 9 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 10 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 11 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 12 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 13 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 14 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 15 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 16 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 17 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 18 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 19 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 20 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 21 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 22 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 23 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 24 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 25 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 26 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 27 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 28 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 29 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 30 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 31 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 32 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 33 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 34 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 35 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 36 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 37 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 38 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 39 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 40 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 41 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 42 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 43 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 44 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 45 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 46 of 47 Data Structures Lecture 9 Fang Yu Department of - slide 47 of 47
Data Structures Lecture 9 Fang Yu Department of Management Information Systems National Chengchi University Fall 2010 Fundamental Algorithms Divide and Conquer: Merge-sort, Quick-sort, and Recurrence Analysis Divide-and-Conquer A general

Related Topics

Download this presentation From Below

"Data Structures Lecture 9 Fang Yu Department of" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Data Structures Lecture 9 Fang Yu
Department of Management Information Systems
National Chengchi University Fall 2010<br>
02
Fundamental Algorithms Divide and Conquer: Merge-sort, Quick-sort, and Recurrence Analysis<br>
03
Divide-and-Conquer A general algorithm design paradigm
Divide: divide the input data S in two or more disjoint subsets S1, S2, …
Recur: solve the sub problems recursively
Conquer: combine the solutions for S1, S2, …, into a solution for S
The base case for the recursion are subproblems of constant size
Analysis can be done using recurrence equations<br>