Programming assignment: submission, libraries
We recommend that you use CGAL and LEDA for your programming project.
The information below should be enough to get you started.
To submit your programming assignment, simply login to a leland
machine (elaine), and type
and follow the instructions. This basically copies all the files in
a given directory to the class directory. It does check several
- In the submission directory, you must include a README
file and the source code. You may choose to include your
writeup as well. In the README file, please include group member
names and a description of the submitted files.
- The total size of your files cannot exceed 1Mb --- please delete
the object, executable, and core files in the submission
- You may resubmit your assignment once before the deadline
for the first assignment). We will look at the latest submission
only. Please be sure to include all the files.
- For each group, you need only submit one copy. Once again,
include the name of the group members in the README file
A detailed help file for what submit does can be found in
the class directory:
If you have any question/trouble to submit/resubmit, please contact the TA.
Use the local copies of the manuals:
Look also at the CGAL and LEDA home pages for other useful links.
CGAL and LEDA are in the leland cluster in the
/usr/class/cs368 directory. Currently, the libraries have
been compiled only for sparc stations. Follow the following steps to
Don't hesitate to contact the
teaching assistant if you run into any problem.
- Connect to any elaine workstation in sweethall
and type your password.
- To set your environment variables properly, include the following line in your .cshrc file (assuming you are using csh):
If you want to proceed right now without loging in again, type in the above in your shell prompt. If you are not using csh or tcsh, contact the TA.
- To verify that your environment is fine, copy the start program and compile it locally:
This program computes the intersection points of a query line with
a set of input lines. Check the source file line_intersect.C
- setenv DISPLAY :0.0
- cp -r /usr/class/cs368/example/start .
- cd start
Writing your own programs
As the CGAL and LEDA libraries are using C++ template classes heavily,
the error messages can sometimes be dauting. Come and see the TA for