A fast implementation for the 2D/3D box placement problem

Wenbin Zhu, School of Business Administration, South China University of Technology, Guangzhou, Peoples Republic of China 510640

Zhixing Luo, International Center of Management Science and Engineering, School of Management and Engineering, Nanjing University, Nanjing, China 210093

Andrew Lim, International Center of Management Science and Engineering, School of Management and Engineering, Nanjing University, Nanjing, China 210093 and School of Physical and Mathematical Sciences, Nanyang Technological University, Singapore, Singapore 637371

Wee Chong Oon, School of InfoComm Technology, Ngee Ann Polytechnic, Singapore, Singapore 599489

ABSTRACT

The box placement problem involves finding a location to place a rectangular box into a container given n rectangular boxes that have already been placed. It commonly arises as a subproblem in many algorithms for cutting stock problems as well as 2D/3D packing problems. We show that the box placement problem is closely related to some well-studied problems in computational geometry, such as the maximum depth problem and Klee’s measure problem. This allows us to leverage on existing techniques for these problems to develop new algorithms for the box placement problem that are not only conceptually simpler but also asymptotically fastest for 2D and faster than existing approaches for 3D. Our implementations rely on augmenting the standard segment tree for 2D or quadtree for 3D, and can be directly incorporated as subroutines into many algorithms for cutting and packing problems.