1 / 12

A General Method of Solving Divide-and-Conquer

A General Method of Solving Divide-and-Conquer. 計算方法設計 Chapter05 重要補充 唐傳義 老師. given. rewrite it into template. given. ,. Deduction-1. (1). (1). Example1-(1). Example 1 : Solution :. iteration and cancellation. 又. log n terms. ,. Deduction-2. 而. Deduction-3.

hadar
Download Presentation

A General Method of Solving Divide-and-Conquer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A General Method of Solving Divide-and-Conquer 計算方法設計 Chapter05重要補充 唐傳義老師

  2. given rewrite it into template given , Deduction-1

  3. (1) (1) Example1-(1) • Example 1 : Solution:

  4. iteration and cancellation 又 log n terms , Deduction-2 • 而

  5. Deduction-3 • Ο:upper bound ex: • Ω:lower bound ex: • Θ:exactly ex: • ο:exactly,even constant ex: 不同的 g(n)對應不同的

  6. Example1-(2) • Example 1 : Solution: From (1)

  7. , Example2 • Example 2 : Solution:

  8. given , , 仍然是 只差 的constant If g(n) is monotone General Representation • In general

  9. Example3-- Pan’s Matrix • Example 3 : Solution:

  10. More General Representation • More general given ,

  11. Example4 • Example 4 : Solution: ,

  12. Reference • Bentley, Haken & Saxe “A General Method of Solving Divide-and-Conquer Recurrences”, SIGACT News Fall 1980,page36-44

More Related