Lecture06-divideconquer

Lecture06-divideconquer - This work is licensed under a...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 312: Algorithm Analysis Lecture #6: Divide and Conquer This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. Slides by: Eric Ringger, with contributions from Mike Jones, Eric Mercer, Sean Warnick
Background image of page 1

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

View Full DocumentRight Arrow Icon
Announcements § Project #1 § Due: today (5pm) § HW #4 due Friday § Project #2 § Guidelines and software distribution available from the schedule § We do have one bug fix to release later today, though § Help session on Thursday § §
Background image of page 2
Objectives § Introduce Divide and Conquer § Apply to Multiplication § Analyze by defining a recurrence relation § Introduce the Convex Hull problem
Background image of page 3

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

View Full DocumentRight Arrow Icon
Thought “Nothing is particularly hard if you divide it into small jobs.” -- Henry Ford
Background image of page 4
Divide and Conquer ... Solve the smaller pieces.
Background image of page 5

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

View Full DocumentRight Arrow Icon
Recall Efficiency of Multiplication Algorithms § Problem: Multiplication § Algorithms: § American § British § a la Francaise / Russe § Arabic § § Efficiency so far:
Background image of page 6
Recall Efficiency of Multiplication Algorithms § Problem: Multiplication § Algorithms: § American § British § a la Francaise / Russe § Arabic § § Efficiency so far:
Background image of page 7

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

View Full DocumentRight Arrow Icon
Divide and Conquer 0502 5001 05  50 shift 4 = 250 0000 05  01 shift 2 = 5 00 02  50 shift 2 = 100 00 02  01 shift 0 = 2 2510502
Background image of page 8
Divide and Conquer 0502 5001 05  50 shift 4 = 250 0000 05  01 shift 2 = 5 00 02  50 shift 2 = 100 00 02  01 shift 0 = 2 2510502 Is it correct?
Background image of page 9

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

View Full DocumentRight Arrow Icon
0502 5001 05 x 50 shift 4 = 250 0000 05 x 01 shift 2 = 5 00 02 x 50 shift 2 = 100 00 02 x 01 shift 0 = 2 2510502 5001 x 502 10002 0 2500500 2510502 Is it correct? How long does it take on an input of size n?
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 39

Lecture06-divideconquer - This work is licensed under a...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online