Chart Packing Heuristic

Slides:



Advertisements
Similar presentations
Texture-Mapping Progressive Meshes
Advertisements

Approximation algorithms for geometric intersection graphs.
Algorithm Design Methods Spring 2007 CSE, POSTECH.
NP-Completeness.
Shortest Vector In A Lattice is NP-Hard to approximate
Triangle partition problem Jian Li Sep,2005.  Proposed by Redstar in Algorithm board in Fudan BBS.  Motivated by some network design strategy.
 Review: The Greedy Method
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
S. J. Shyu Chap. 1 Introduction 1 The Design and Analysis of Algorithms Chapter 1 Introduction S. J. Shyu.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Cutting a surface into a Disk Jie Gao Nov. 27, 2002.
Polynomial time approximation scheme Lecture 17: Mar 13.
© J. Christopher Beck Lecture 18: Timetabling with Workforce Capacity.
A tale of 2-dimensional (Guillotine) bin packing Nikhil Bansal (IBM) Andrea Lodi (Univ. of Bologna, Italy) Maxim Sviridenko (IBM)
Improved results for a memory allocation problem Rob van Stee University of Karlsruhe Germany Leah Epstein University of Haifa Israel WADS 2007 WAOA 2007.
Bold Stroke January 13, 2003 Advanced Algorithms CS 539/441 OR In Search Of Efficient General Solutions Joe Hoffert
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Round and Approx: A technique for packing problems Nikhil Bansal (IBM Watson) Maxim Sviridenko (IBM Watson) Alberto Caprara (U. Bologna, Italy)
Approximation schemes Bin packing problem. Bin Packing problem Given n items with sizes a 1,…,a n  (0,1]. Find a packing in unit-sized bins that minimizes.
1 Approximation Through Scaling Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
© 2010 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. Case Studies: Bin Packing.
Chapter 15 Approximation Algorithm Introduction Basic Definition Difference Bounds Relative Performance Bounds Polynomial approximation Schemes Fully Polynomial.
Packing Rectangles into Bins Nikhil Bansal (CMU) Joint with Maxim Sviridenko (IBM)
TECH Computer Science NP-Complete Problems Problems  Abstract Problems  Decision Problem, Optimal value, Optimal solution  Encodings  //Data Structure.
Approximation Algorithms
Formal Engineering Research with Models Abstractions and Transformations FERMAT Low Power Hardware Synthesis from Concurrent Action Oriented Specifications.
Approximation algorithms for TSP with neighborhoods in the plane R 郭秉鈞 R 林傳健.
Solving the Maximum Cardinality Bin Packing Problem with a Weight Annealing-Based Algorithm Kok-Hua Loh University of Maryland Bruce Golden University.
Asanka Herath Buddhika Kottahachchi
The bin packing problem. For n objects with sizes s 1, …, s n where 0 < s i ≤1, find the smallest number of bins with capacity one, such that n objects.
1 Approximation algorithms Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij TexPoint fonts used in EMF. Read the TexPoint manual.
© The McGraw-Hill Companies, Inc., Chapter 1 Introduction.
Conceptual Foundations © 2008 Pearson Education Australia Lecture slides for this course are based on teaching materials provided/referred by: (1) Statistics.
2IMA20 Algorithms for Geographic Data Spring 2016 Lecture 7: Labeling.
Approximation Algorithms
8.3.2 Constant Distance Approximations
Hard Problems Some problems are hard to solve.
Bin Packing First fit decreasing algorithm
Abolfazl Asudeh Azade Nazi Nan Zhang Gautam DaS
Algorithm Design Methods
An introduction to Approximation Algorithms Presented By Iman Sadeghi
Core-Sets and Geometric Optimization problems.
Hamiltonian Cycle and TSP
Approximation algorithms
Haim Kaplan and Uri Zwick
Bin Packing Optimization
Lecture 5 Dynamic Programming
Computability and Complexity
The Subset Sum Game Revisited
Intro to NP Completeness
Bin Fu Department of Computer Science
Finding Subgraphs with Maximum Total Density and Limited Overlap
Sanjoy Baruah The University of North Carolina at Chapel Hill
Exam 2 LZW not on syllabus. 73% / 75%.
Bin Packing First fit decreasing algorithm
PTAS for Bin-Packing.
Sungho Kang Yonsei University
Polynomial time approximation scheme
Bin Packing First fit decreasing algorithm
Bin Packing First fit decreasing algorithm
for Vision-Based Navigation
Algorithm Design Methods
ICS 353: Design and Analysis of Algorithms
Algorithm Design Methods
Complexity Theory in Practice
Computer Vision Lecture 19: Object Recognition III
Clustering.
Approximation Algorithm
Nesting by Shachaf Ben Jakov.
Algorithm Design Methods
Presentation transcript:

Chart Packing Heuristic Xun Shi 208395360

Problem Statement Finding the least area to pack all the texture charts for a 3D models. Optimal packing Extract texture 2006-11

Outline Bin packing and its heuristics Algs Chart packing Algs Non-overlapping bounding rectangle Heuristic Bruno’s Heuristic APTAS Heuristic 2006-11

Bin packing problem Objects of different volumes must be packed into a finite number of bins with capacity V in a way that minimizes the number of bins used. NP-hard; Several Heuristic Algs; Applications: chart packing, linear packing, packing by weight, etc. 2006-11

Heuristic Algs First Fit Decreasing (FFD) Best Fit Decreasing first sort the items by volume, then insert into the first bin with sufficient space; With sorting: 11/9 OPT + 1 bins; Without sorting: 17/10 OPT + 2 bins; A More efficient Alg: 71/60 OPT + 1 bins; Best Fit Decreasing 2006-11

Chart Packing Problem given a set of polygons, find a non-overlapping placement of the polygons that the enclosing rectangle is of minimum area. Tangram 2006-11

Chart Packing Problem Ancient China 2006-11

Chart Packing Problem given a set of polygons, find a non-overlapping placement of the polygons that the enclosing rectangle is of minimum area. Tangram HOW?? 2006-11

ALG 1: Packing by non-overlapping bounding rectangle However, due to the arbitrary shapes… 2006-11

ALG 2: Bruno’s Heuristic Rotate the charts: maximum diameter of the charts are oriented vertically Sort the charts in decreasing order 2006-11

ALG 2: Bruno’s Heuristic cont. Insert the charts one by one 2006-11

ALG 2: Bruno’s Heuristic cont. Using horizontal function to approximate chart position; Rely on experience Not proved !! 2006-11

ALG 2: Bruno’s Heuristic cont. Save space Waste space 2006-11

APTAS for charts packing APTAS: asymptotic polynomial time approximation scheme de la Vega and Leuker, 1980 For every fixed ε> 0 algorithm outputs a solution of size (1+ε)OPT + 1 in time polynomial in n. 2006-11

APTAS for charts packing cont. Instance: Multiset of real numbers Solution: A partition of I into subsets Optimal Solution: A solution with a minimum number of subsets k. 2006-11

APTAS for charts packing cont. Two constructive reductions Reduce BP into Large Set BP[ ], with the threshold Also have Small Set Reduce Large Set BP[ ] into BP[ , m], all are chosen from a set of at most m different values 2006-11

APTAS for charts packing cont. Large Set: BP[ , m] can be solved by dynamic programming in polynomial of n. k ≤(1+ ) OPT Small Set: Greedy insert 2006-11

APTAS for charts packing cont. Running time: dominated for packing Large Set k≤(1+2 ) OPT + 1 for sufficiently small ( ≤½) 2006-11

Reference B. Lévy, S. Petitjean, N. Ray, J. MaillotLeast, “Squares Conformal Maps for Automatic Texture Atlas Generation”, ACM Press, 2002 P. Sander, J. Snyder, S. Gortler, H. Hoppe, “Texture mapping progressive meshes” In SIGGRAPH 01 Conf. Proc. 409-416. ACM Press, 2001. U. Zwick, E. Reshef, “Bin Packing”, course note, 1997/8 del la Vega, G. S. Lueker, “Bin packing can be solved within 1+ε in linear time”, Combinatiorica, 1(4):349-355, 1981 2006-11

THANK YOU VERY MUCH!! 2006-11