Skip to content

Latest commit

 

History

History
86 lines (81 loc) · 1.14 KB

README.md

File metadata and controls

86 lines (81 loc) · 1.14 KB

Shopping

Use the Makefile to compile, run and clean using the following commands:

Compile All programs

make

Compile One Program

make shoprec
make shopmem
make shopdp
make shopmemcosts
make shopdpcosts

Run Programs

./shoprec 3000 < files/shop.txt
./shoprec 5000 < files/shop.txt
./shoprec 8800 < files/shop.txt
./shoprec 1400 < files/shop.txt
./shopmem 3000 < files/shop.txt
./shopmem 5000 < files/shop.txt
./shopmem 8800 < files/shop.txt
./shopmem 1400 < files/shop.txt
./shopdp 3000 < files/shop.txt
./shopdp 5000 < files/shop.txt
./shopdp 8800 < files/shop.txt
./shopdp 1400 < files/shop.txt
./shopmemcosts 3000 < files/shop.txt
./shopdpcosts 3000 < files/shop.txt
./shopmemcosts 5000 < files/shop.txt
./shopdpcosts 5000 < files/shop.txt
./shopmemcosts 8800 < files/shop.txt
./shopdpcosts 8800 < files/shop.txt

Clean After Execution

make clean