GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - R-Besson/strip-packing-cpp: Strip Packing Written in C++

This repository was archived by the owner on Oct 28, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

44 Commits
44 Commits

Folders and files

NameName
Last commit message
Last commit date
Draw
Draw
 
 
Tests
Tests
 
 
README.md
README.md
 
 
example.txt
example.txt
 
 
packer.cpp
packer.cpp
 
 
packer.h
packer.h
 
 

Repository files navigation

Strip Packing

This project is now ARCHIVED, a new entirely rewritten codebase can be found at the following repository: https://github.com/R-Besson/strip-packing-cpp-rewritten

This repository contains implementations for the strip packing problem that can be found here: https://en.wikipedia.org/wiki/Strip_packing_problem

The strip packing problem attempts to optimize the placing of rectangles in a strip of fixed width and variable height, such that the overall height of the strip is the smallest possible.

In this algorithm, I use an ingenious method of placing rectangles inside of Holes. The first hole starts as the entirety of the strip (with a Height that is negligeable but higher than the height of any rectangle & the theoretical min height of the strip). As we place the rectangles inside the holes, we break the antecedent hole into new holes using 15 different positional cases, check for overlap, etc ... We can choose to rotate rectangles efficiently, or to not do so. We can specify the width of the canvas (strip), specify the sorting strategies, etc.

Compilation

g++ packer.cpp Draw\ez-draw.cpp -O3 -o packer -lgdi32
packer -help

About

Strip Packing Written in C++

Topics

algorithmsnp-completenp-complete-problemsnp-completenesspackingpacking-algorithmpacking-algorithmsstrip-packing

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.