for friday
play

For Friday Read Weiss, chapter 10, section 3 Program 4 due Program - PowerPoint PPT Presentation

For Friday Read Weiss, chapter 10, section 3 Program 4 due Program 4 Any questions? Research Paper Questions? Huffman Codes File compression technique Greedy algorithm is optimal Bin Packing Whats the problem?


  1. For Friday • Read Weiss, chapter 10, section 3 • Program 4 due

  2. Program 4 • Any questions?

  3. Research Paper • Questions?

  4. Huffman Codes • File compression technique • Greedy algorithm is optimal

  5. Bin Packing • What’s the problem?

  6. On-Line Strategies • Next Fit • First Fit • Best Fit

  7. Off-Line Strategies • First Fit Decreasing • Best Fit Decreasing

  8. 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

  9. Finding a Counterfeit Coin

  10. Familiar Divide and Conquer Algorithms • What algorithms have we looked at that fit this type?

  11. Familiar Divide and Conquer Algorithms • Quicksort • Mergesort • Binary Search • Permutations • Towers of Hanoi Solution

  12. Divide and Conquer Examples • Finding max-min • Closest two points • Selection

Recommend


More recommend