COS 226 Programming Assignment Checklist: Bin Packing
Frequently Asked Questions
|
My program doesn't compile when I hit the Compile button
on the Web submission system. Is this OK?
No. You will lose a substantial number of points if you
don't follow the instructions. We will compile your programs with
the following commands:
gcc226 worstfit.c pq.c item.c
(see assignment 1 checklist for help on gcc226).
Input, Output, and Testing
|
Input.
Your program should read in a sequence of integers between
0 and 1000000 separated by whitespace from standard input.
Here are some
sample input files.
You may also use
generate.c
to generate random test instances.
It takes 4 command line inputs
N, l, u, and s and generate
N pseudorandom integers between l and u
using the seed s. The fourth command line input s
is optional: if it is not supplied the seed for rand()
is set arbitrarily via
the system clock; otherwise s is used as the seed.
Besides providing details about your implementation which are not
clear from the comments within your source code, your
readme.txt file should also contain:
These are purely suggestions for how you might make progress. You do
not have to follow these steps.