Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

download Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

of 68

Transcript of Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    1/68

    Introduction Square Packing Hypercube Packing Summary

    Approximating the Orthogonal Knapsack

    Problem for Hypercubes

    Rolf Harren

    University of Dortmund

    2007.09.07

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    2/68

    Introduction Square Packing Hypercube Packing Summary

    Outline

    1 IntroductionProblem

    Preparation

    2 Square Packing

    Separation into Large, Medium and Small ItemsPacking the Large Items Optimally

    Adding the Small Items

    Putting Everything Together

    3 Hypercube PackingGeneralization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    3/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Outline

    1 IntroductionProblem

    Preparation

    2 Square Packing

    Separation into Large, Medium and Small ItemsPacking the Large Items Optimally

    Adding the Small Items

    Putting Everything Together

    3 Hypercube PackingGeneralization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    4/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Multidimensional Orthogonal Packing Problems

    Input:

    d-dimensional cuboid items a1, . . . , an

    . . . . . .

    Objective:

    an orthogonal, non-rotational and non-overlapping packing intoa given space such that...

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    5/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Multidimensional Orthogonal Packing Problems

    BIN PACKING...the number of bins

    is minimized . . .k = 1 2 3

    STRIP PACKING

    ...the total height

    is minimizedh

    KNAPSACK PACKING

    ...the profit of the packed

    selection of items

    is maximized . . .

    . . .

    selection

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    6/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Orthogonal Knapsack Packing for Hypercubes

    Considered problemAll items are squares, cubes or hypercubes 0 < a1, . . . , an 1Items have profits piBin has unit size

    . . . . . .

    selection

    1

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    I d i S P ki H b P ki S P bl P i

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    7/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Results

    BIN PACKING STRIP PACKING

    2- dim 1.525.. Bansal, Correa, AFPTAS Kenyon, Rmila

    APX-complete Sviridenko

    3- dim 3.382.. 1.691.. Bansal, Han, Iwama

    Sviridenko, Zhang

    d- dim open open

    Hypercube BIN PACKING Hypercube STRIP PACKING

    2- dim APTAS Bansal, Correa, AFPTAS

    Kenyon, Sviridenko

    d- dim APTAS Bansal, Correa, APTAS

    Kenyon, Sviridenko

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    I t d ti S P ki H b P ki S P bl P ti

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    8/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Results

    BIN PACKING STRIP PACKING

    2- dim 1.525.. Bansal, Correa, AFPTAS Kenyon, Rmila

    APX-complete Sviridenko

    3- dim 3.382.. 1.691.. Bansal, Han, Iwama

    Sviridenko, Zhang

    d- dim open open

    Hypercube BIN PACKING Hypercube STRIP PACKING

    2- dim APTAS Bansal, Correa, AFPTAS

    Kenyon, Sviridenko

    d- dim APTAS Bansal, Correa, APTAS

    Kenyon, Sviridenko

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    9/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Results

    KNAPSACK PACKINGGeneral Hypercube

    2- dim 2 + Jansen, Zhang 54 +

    3- dim 7 + Diedrich, H., Jansen 9

    8

    + APX-complete Thle, Thomas

    d- dim open 2d+12d

    +

    Further results exist onPACKING WITH LARGE RESOURCES,MAXIMIZING THE VOLUME,MAXIMIZING THE NUMBER, ...

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    10/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Results

    KNAPSACK PACKINGGeneral Hypercube

    2- dim 2 + Jansen, Zhang 54 +

    3- dim 7 + Diedrich, H., Jansen 9

    8

    + APX-complete Thle, Thomas

    d- dim open 2d+12d

    +

    Further results exist onPACKING WITH LARGE RESOURCES,MAXIMIZING THE VOLUME,MAXIMIZING THE NUMBER, ...

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    11/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Open Question

    NP-Completeness

    It is unknown for all previous packing problems whether therestriction to Hypercube packing is NP-hard for d 3.

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    12/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Applications

    Cutting Problems

    All packing problems can be seen as cutting problems, e.g.,

    cutting textile or wood

    Transportation Industry

    Arranging container on a ship

    Arranging items inside a container

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    13/68

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    Applications

    Cutting Problems

    All packing problems can be seen as cutting problems, e.g.,

    cutting textile or wood

    Transportation Industry

    Arranging container on a ship

    Arranging items inside a container

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    14/68

    q g yp g y p

    Applications

    Advertisement Placement

    Arranging ads in a newspaper

    Arranging ads on a flash page

    Scheduling

    Bounded running time on a computer with a grid layout for

    the processors

    Tasks need a fixed running time on a rectangular grid ofprocessors

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    15/68

    q g yp g y p

    Applications

    Advertisement Placement

    Arranging ads in a newspaper

    Arranging ads on a flash page

    Scheduling

    Bounded running time on a computer with a grid layout for

    the processors

    Tasks need a fixed running time on a rectangular grid of

    processors

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    16/68

    Outline

    1 Introduction

    Problem

    Preparation

    2 Square Packing

    Separation into Large, Medium and Small ItemsPacking the Large Items Optimally

    Adding the Small Items

    Putting Everything Together

    3

    Hypercube PackingGeneralization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    17/68

    NFDH

    NEXT-FIT-DECREASING-HEIGHT (NFDH)

    is a very efficient layer based packing

    algorithm for small items

    l1

    l2

    l3

    l4

    Lemma

    For small items ai , the unfilled volume is bounded byd

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    18/68

    Gaps in a Packing

    Lemma

    Given a packing P of m squares we can partition the free spaceinto at most3m rectangles

    At least one item in P has to be aligned to the bottom of the bin

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    19/68

    Shifting Technique

    w = 1h . . .S

    1 S3 S4 Sl

    hL

    L

    . . .SiS2

    . . .

    dispose

    . . .

    Lemma

    For small items ai it is possible to free a given line L byshifting the items into a gap losing not more than O()p(I) ofthe profit.

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    20/68

    Shifting Technique

    w = 1h . . .S

    1 S3 S4 Sl

    h

    L

    L

    . . .SiS2

    . . .

    dispose

    . . .

    Lemma

    For small items ai it is possible to free a given line L byshifting the items into a gap losing not more than O()p(I) ofthe profit.

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    21/68

    Rectangle Packing with Large Resources

    If the bin is much bigger than the items we can derive a goodapproximation ratio

    Lemma

    There is an approximation algorithm for RECTANGLE PACKING

    into a bin B = (a, b) where a= 1 and b 14 with approximation

    ratio(1 + )

    Idea:

    Bin has strip-like shapePack a selection of items with the AFPTAS for STRIP PACKING and

    apply a shifting technique to the overhang

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Problem Preparation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    22/68

    Rectangle Packing with Large Resources

    If the bin is much bigger than the items we can derive a goodapproximation ratio

    Lemma

    There is an approximation algorithm for RECTANGLE PACKING

    into a bin B = (a, b) where a= 1 and b 14 with approximation

    ratio(1 + )

    Idea:

    Bin has strip-like shapePack a selection of items with the AFPTAS for STRIP PACKING and

    apply a shifting technique to the overhang

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    23/68

    Outline

    1 Introduction

    Problem

    Preparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items Optimally

    Adding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    O li

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    24/68

    Outline

    1 Introduction

    Problem

    Preparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items Optimally

    Adding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    S ti

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    25/68

    Separation

    A little bit technical...

    Separation

    Let r = 1

    and 0 = , i+1 = 4i

    Divide (unknown) optimal solution Iopt

    Mi = {s Iopt : s [i+1, i[} for 1 i r i {1, . . . , r} with p(Mi) p(Iopt)

    Large, medium and small items

    Lopt := {s Iopt : s i

    }M := Mi

    S := {s I : s < i+1}

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    S ti

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    26/68

    Separation

    A little bit technical...

    Separation

    Let r = 1

    and 0 = , i+1 = 4i

    Divide (unknown) optimal solution Iopt

    Mi = {s Iopt : s [i+1, i[} for 1 i r i {1, . . . , r} with p(Mi) p(Iopt)

    Large, medium and small items

    Lopt := {s Iopt : s i

    }M := Mi

    S := {s I : s < i+1}

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    S ti

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    27/68

    Separation

    A little bit technical...

    Separation

    Let r = 1

    and 0 = , i+1 = 4i

    Divide (unknown) optimal solution Iopt

    Mi = {s Iopt : s [i+1, i[} for 1 i r i {1, . . . , r} with p(Mi) p(Iopt)

    Large, medium and small items

    Lopt := {s Iopt : s i

    }M := Mi

    S := {s I : s < i+1}

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Separation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    28/68

    Separation

    A little bit technical...

    Separation

    Let r = 1

    and 0 = , i+1 = 4i

    Divide (unknown) optimal solution Iopt

    Mi = {s Iopt : s [i+1, i[} for 1 i r i {1, . . . , r} with p(Mi) p(Iopt)

    Large, medium and small items

    Lopt := {s Iopt : s i

    }M := Mi

    S := {s I : s < i+1}

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Separation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    29/68

    Separation

    A little bit technical...

    Separation

    Let r = 1

    and 0 = , i+1 = 4i

    Divide (unknown) optimal solution Iopt

    Mi = {s Iopt : s [i+1, i[} for 1 i r i {1, . . . , r} with p(Mi) p(Iopt)

    Large, medium and small items

    Lopt := {s Iopt : s i

    }M := Mi

    S := {s I : s < i+1}

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Separation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    30/68

    Separation

    A little bit technical...

    Separation

    Let r = 1

    and 0 = , i+1 = 4i

    Divide (unknown) optimal solution Iopt

    Mi = {s Iopt : s [i+1, i[} for 1 i r i {1, . . . , r} with p(Mi) p(Iopt)

    Large, medium and small items

    Lopt := {s Iopt : s i

    }M := Mi

    S := {s I : s < i+1}

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Separation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    31/68

    Separation

    In a nutshell

    Large items are large (i.e., i)

    Small items are small (i.e., < i+1)

    Medium items are unimportant (i.e., p(M) OPT(I)).

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Separation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    32/68

    Separation

    In a nutshell

    Large items are large (i.e., i)

    Small items are small (i.e., < i+1)

    Medium items are unimportant (i.e., p(M) OPT(I)).

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Separation

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    33/68

    Separation

    In a nutshell

    Large items are large (i.e., i)

    Small items are small (i.e., < i+1)

    Medium items are unimportant (i.e., p(M) OPT(I)).

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Outline

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    34/68

    Outline

    1 Introduction

    Problem

    Preparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items Optimally

    Adding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enumeration

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    35/68

    Enumeration

    Enumeration

    All relevant values are constant:

    r, i and i {1, . . . , r}

    at most1

    2i large items fit into the bin (volume argument)

    try all values for i and all possible selection of 1

    2i

    large

    items

    we assume i

    and an optimal packing of the large items areknown

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enumeration

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    36/68

    Enumeration

    Enumeration

    All relevant values are constant:

    r, i and i {1, . . . , r}

    at most1

    2i large items fit into the bin (volume argument)

    try all values for i and all possible selection of 1

    2i

    large

    items

    we assume i

    and an optimal packing of the large items areknown

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enumeration

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    37/68

    Enumeration

    Enumeration

    All relevant values are constant:

    r, i and i {1, . . . , r}

    at most1

    2i large items fit into the bin (volume argument)

    try all values for i and all possible selection of 1

    2i

    large

    items

    we assume i

    and an optimal packing of the large items areknown

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enumeration

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    38/68

    Enumeration

    Enumeration

    All relevant values are constant:

    r, i and i {1, . . . , r}

    at most1

    2i large items fit into the bin (volume argument)

    try all values for i and all possible selection of 1

    2i

    large

    items

    we assume i

    and an optimal packing of the large items areknown

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Unfilled Volume

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    39/68

    U ed o u e

    Gaps in packing

    Small items

    NFDH

    Packing ofLopt

    At most 3m gapsUnfilled volume per gap 2

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Unfilled Volume

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    40/68

    Gaps in packing

    Small items

    NFDH

    Packing ofLopt

    At most 3m gapsUnfilled volume per gap 2

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Unfilled Volume

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    41/68

    Adding small items with NEXT-FIT-DECREASING-HEIGHT

    Unfilled volume

    number of gaps

    3m

    unfilled volume per gap

    2

    3 1

    2i

    2i+1

    = 3 1

    2i

    24i

    2i

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Outline

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    42/68

    1 Introduction

    ProblemPreparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items OptimallyAdding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    3 Methods

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    43/68

    Enough remaining space

    Several large items

    Only one very large item

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enough Remaining Space Vol(Lopt) 1 i

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    44/68

    ( p )

    S S

    constantpacking

    . . . . . .

    NFDH

    Gaps in packingGuess Lopt

    3|Lopt| gapspartition free space in

    comple

    te

    enume

    ration

    separated by i

    Input I

    selection with

    FracKnap+(S, V 22i)

    Packing of Lopt

    p(S) V22

    i

    V OPT(S) (1 22

    i

    i)OPT(S)

    p(Lopt S) (1 O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enough Remaining Space Vol(Lopt) 1 i

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    45/68

    p

    S S

    constantpacking

    . . . . . .

    NFDH

    Gaps in packingGuess Lopt

    3|Lopt| gapspartition free space in

    comple

    te

    enume

    ration

    separated by i

    Input I

    selection with

    FracKnap+(S, V 22i)

    Packing of Lopt

    p(S) V22

    i

    V OPT(S) (1 22

    i

    i)OPT(S)

    p(Lopt S) (1 O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Enough Remaining Space Vol(Lopt) 1 i

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    46/68

    S S

    constantpacking

    . . . . . .

    NFDH

    Gaps in packingGuess Lopt

    3|Lopt| gapspartition free space in

    comple

    te

    enume

    ration

    separated by i

    Input I

    selection with

    FracKnap+(S, V 22i)

    Packing of Lopt

    p(S) V22

    i

    V OPT(S) (1 22

    i

    i)OPT(S)

    p(Lopt S) (1 O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Several Large Items

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    47/68

    S S

    constantpacking

    . . . . . .

    NFDH

    Lopt \ {ak}

    Knapsack(S, 1 Vol(Lopt), )

    P1

    P2

    constantpacking

    complete

    enumeration

    selection with

    separated by i

    partition free space in

    Input I

    Guess Lopt

    Same packing without ak Gaps in packing

    k 1 items

    k items

    Packing of Lopt

    3|Lopt|gaps

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Several Large Items

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    48/68

    Profit P1 k pkProfit P2 p(Lopt S

    ) pk

    0 0.25 0.5 0.75 1

    0.5

    1

    P1 P2

    max(P1, P2) (k

    k + 1

    O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Several Large Items

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    49/68

    Profit P1 k pkProfit P2 p(Lopt S

    ) pk

    0 0.25 0.5 0.75 1

    0.5

    1

    P1 P2

    max(P1, P2) (k

    k + 1

    O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Only One Very Large Item amax 1 4

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    50/68

    S3

    S2

    S1

    g1

    g2

    amaxg1

    g2

    amax

    1 amax

    S5

    1 + amax

    1 amax

    1 amax

    S4

    amax

    Use RECTANGLE PACKING WITH LARGE RESOURCES for the free

    space

    p(Lopt S) (1 O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Only One Very Large Item amax 1 4

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    51/68

    S3

    S2

    S1

    g1

    g2

    amaxg1

    g2

    amax

    1 amax

    S5

    1 + amax

    1 amax

    1 amax

    S4

    amax

    Use RECTANGLE PACKING WITH LARGE RESOURCES for the free

    space

    p(Lopt S) (1 O())OPT(I)

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Outline

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    52/68

    1 Introduction

    ProblemPreparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items OptimallyAdding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Putting Everything Together

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    53/68

    We derived methods for

    Case 1 Enough remaining space (1 O())OPT(I)

    Case 2 Several large items ( kk+1 O())OPT(I)Case 3 Only one very large item (1 O())OPT(I)

    We show that k < 4 can be reduced to Case 1 or Case 3

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Separation Large Items Small Items Everything

    Main Idea

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    54/68

    Three similarly large squares cannot fill a square bin almostcompletely

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Outline

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    55/68

    1 Introduction

    ProblemPreparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items OptimallyAdding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Methods for Hypercube Packing

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    56/68

    Direct adoption of 2-dim methodsWith suitable separation parameters

    Case 1 Enough remaining space

    Case 2 Several large items

    work as well

    More work needed

    For Case 3 we need an approximation algorithm for

    ORTHOGONAL KNAPSACK PACKING WITH LARGE

    RESOURCES FOR HYPERCUBESwith ratio (1 + ) if the bin is big enough

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Methods for Hypercube Packing

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    57/68

    Direct adoption of 2-dim methodsWith suitable separation parameters

    Case 1 Enough remaining space

    Case 2 Several large items

    work as well

    More work needed

    For Case 3 we need an approximation algorithm for

    ORTHOGONAL KNAPSACK PACKING WITH LARGE

    RESOURCES FOR HYPERCUBESwith ratio (1 + ) if the bin is big enough

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Wellstructured Packing

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    58/68

    amax big enough

    amax

    x1

    x2

    x3

    1

    free of items

    space for

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Construction of a Wellstructured Packing

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    59/68

    amax big enough

    amax

    x1

    x2

    x3

    C

    H1 H1

    H2

    H2

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Packing the Small Items

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    60/68

    Applying the algorithm for ORTHOGONAL KNAPSACK PACKING

    WITH LARGE RESOURCES FOR HYPERCUBES

    amax

    x1

    x2

    x3space for

    S3

    S1S2

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Improving Approximation Ratio

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    61/68

    Seven similarly large cubes cannot fill a cube bin almost

    completely

    In generalFor d-dim Hypercube Packing, we can reduce Case 2 with

    k < 2d to Case 1 or Case 3

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary Generalization

    Improving Approximation Ratio

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    62/68

    Seven similarly large cubes cannot fill a cube bin almost

    completely

    In generalFor d-dim Hypercube Packing, we can reduce Case 2 with

    k < 2d to Case 1 or Case 3

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary

    Outline

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    63/68

    1 Introduction

    ProblemPreparation

    2 Square Packing

    Separation into Large, Medium and Small Items

    Packing the Large Items OptimallyAdding the Small Items

    Putting Everything Together

    3 Hypercube Packing

    Generalization

    4 Summary

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary

    Summary

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    64/68

    ResultWe developed an approximation algorithm with approximation

    ratio 1 + 12d

    + for d-dimensional ORTHOGONAL KNAPSACKPACKING FOR HYPERCUBES

    Main StepsSeparation of large, medium and small items

    Packing the large items

    Adding the small items

    Three similarly large squares cannot fill a square binalmost completely

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary

    Summary

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    65/68

    Result

    We developed an approximation algorithm with approximation

    ratio 1 + 12d

    + for d-dimensional ORTHOGONAL KNAPSACKPACKING FOR HYPERCUBES

    Main StepsSeparation of large, medium and small items

    Packing the large items

    Adding the small items

    Three similarly large squares cannot fill a square binalmost completely

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary

    Additional notes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    66/68

    Practical application of this algorithm

    The running time is dominated by huge enumerations, making

    the algorithm practically unusable.

    Asymptotic behavior

    The structure of the problem does not allow asymptotic

    algorithms. Neither in the size of the input, nor in the value of

    an optimal solution.

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary

    Additional notes

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    67/68

    Practical application of this algorithm

    The running time is dominated by huge enumerations, making

    the algorithm practically unusable.

    Asymptotic behavior

    The structure of the problem does not allow asymptotic

    algorithms. Neither in the size of the input, nor in the value of

    an optimal solution.

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    Introduction Square Packing Hypercube Packing Summary

    The End

    http://find/http://goback/
  • 8/3/2019 Rolf Harren- Approximating the Orthogonal Knapsack Problem for Hypercubes

    68/68

    Thanks for your attention

    Rolf Harren Approx. the Orthogonal Knapsack Problem for Hypercubes

    http://find/http://goback/