Knapsack (last time through) - PowerPoint PPT Presentation

About This Presentation
Title:

Knapsack (last time through)

Description:

BandB Knapsack. Same scenario: objects with weights and values and a capacity ... Do a Knapsack B and B problem. same method for drawing the tree, managing the ... – PowerPoint PPT presentation

Number of Views:101
Avg rating:3.0/5.0
Slides: 9
Provided by: mike437
Category:
Tags: bb | knapsack | last | through | time

less

Transcript and Presenter's Notes

Title: Knapsack (last time through)


1
Knapsack (last time through)
  • Lecture 30
  • CS 312

2
Objectives
  • Go over the homework
  • Use BB for a maximization (rather than
    minimization) problem.
  • Talk about TSP using Branch and Bound

3
Review
  • How did the homework go?

4
BandB Knapsack
  • Same scenario objects with weights and values
    and a capacity
  • Maximize the profit of what goes in the knapsack
  • Bounds for maximization?

5
BandB for maximization
lower
bssf
actual
upper
actual
bssf
6
Approximate Best Load Value
  • Make sure approximation is greater than or equal
    to actual load.
  • Assume objects are in order of decreasing
    value/weight ratios.

7
Early Cycles in TSP
  • Assume use the include/exclude edge from a to b
    method.
  • Why is this a problem?
  • Prevent or detect?

8
Homework
  • Do a Knapsack B and B problem.
  • same method for drawing the tree, managing the
    queue etc.
  • Different approximation function.
  • The equation for finding the bound is in the
    book.
Write a Comment
User Comments (0)
About PowerShow.com