For Wednesday Read chapter 10, section 3 Homework Chapter 10, - - PowerPoint PPT Presentation

for wednesday
SMART_READER_LITE
LIVE PREVIEW

For Wednesday Read chapter 10, section 3 Homework Chapter 10, - - PowerPoint PPT Presentation

For Wednesday Read chapter 10, section 3 Homework Chapter 10, exercise 10 Program 4 Any questions? Research Paper Any questions? Bin Packing Off-Line Strategies First Fit Decreasing Best Fit Decreasing Divide and


slide-1
SLIDE 1

For Wednesday

  • Read chapter 10, section 3
  • Homework

– Chapter 10, exercise 10

slide-2
SLIDE 2

Program 4

  • Any questions?
slide-3
SLIDE 3

Research Paper

  • Any questions?
slide-4
SLIDE 4

Bin Packing

slide-5
SLIDE 5

Off-Line Strategies

  • First Fit Decreasing
  • Best Fit Decreasing
slide-6
SLIDE 6

Divide and Conquer

  • Basic Concept

– Break a problem into pieces – Solve the problem for each piece – Combine the solutions to create the solution for the entire problem

  • Recursion

– The divide and conquer concept is recursive – Implementations of divide and conquer algorithms may or may not be recursive

slide-7
SLIDE 7

Finding a Counterfeit Coin

slide-8
SLIDE 8

Familiar Divide and Conquer Algorithms

  • What algorithms have we looked at that fit

this type?

slide-9
SLIDE 9

Familiar Divide and Conquer Algorithms

  • Quicksort
  • Mergesort
  • Binary Search
  • Permutations
  • Towers of Hanoi Solution
slide-10
SLIDE 10

Divide and Conquer Examples

  • Finding max-min
  • Closest two points
  • Selection