Skip to content

lucaszm7/AED3_Bin_Packing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AED3 Bin Packing Problem - Trabalho Final

Build: Linux

  1. Instale as dependências
make install
  1. Compile o Programa
make
  1. Rode :)
make run

Build: Windows

  1. Remova o compilador MinGW instalado
  2. Instale o MSYS2
  winget install MSYS2.MSYS2
  1. Atualize o MSYS2, abra o terminal do MSYS2 e digite
pacman -Syu
  1. Instale o MinGW pelo MSYS2
pacman -S mingw-w64-x86_64-gcc
  1. Instale o Make (Caso ainda não tenha instalado)
winget install GnuWin32.Make
  1. Adicione o Make ao PATH, o caminho é C:\Program Files (x86)\GnuWin32\bin
  2. Adicione o MinGW ao PATH, o caminho padrão é C:\msys64\mingw64\bin
  3. Compile o programa
make windows
  1. Rode o programe
make run_windows

Keyboard

Q -> zoom out
E -> zoom in
W, A, S, D -> move screen
C -> reset screen position and zoom
H -> Creates a big random 2D rectangle
J -> Creates a medium random 2D rectangle
K -> Creates a small random 2D rectangle
L -> Creates a smaller random 2D rectangle
B -> Creates a big random 1D rectangle
N -> Creates a medium random 1D rectangle
M -> Creates a small random 1D rectangle
U -> Insert rectangles with best fit
I -> Insert rectangles with first fit
O -> Insert rectangles with next fit