Docsity

CS241 Winter 2011 Homework Assignments Instructions - Prof. Fang Tang, Study notes of Data Structures and Algorithms

Toggle sidebar
bg1
CS241: Homework Assignments
Winter 2011
CS241 home page Schedule/Notes Assignments
Subject to change. Check back frequently for updates.
Description Announcement
Date Due Date Status
Binary Search
Tree Jan. 13 Jan. 24 Ready
Due Dates and Late Submission: Project report and the Java source files (.java) should be submitted via
email, due at 23:59:59 on the assigned due date. Each late submission will incur a 10 points penalty per
day. The final project must be turned in on time. No late project will be accepted for the final one.
Any project violates the above rules will receive zero credit.
Do's and Don'ts
1. Your source code must be .java files. You do not need to copy them into your project report.
2. Your project report must be either word document or pdf document.
3. DO NOT create/use your own package in your Java files. All the source code must be compilable
when I run "javac *.java" using Commend Prompt. To do this, you can declare your other classes
to be non-public, such as "class Set {}" instead of "public class Set {}" and declare your class with
the main() function as public.
4. When you are done programming and ready to submit it, create a directory with your first name,
last name and project number, for example, my project 2 directory would be called "daisytang2".
Copy all the .java files, program output and your project report into this directory. DO NOT copy
extra junk files such as your .class files.
5. Zip the files in the directory so that when I unzip it, a directory with your name that contains all
your files will appear. Sorry, files with .rar postfix will NOT be accepted.
6. It is important that you include your output files (usually in the form of .txt) with your program. If
your program uses an interactive way for the user to enter data, please make it as friendly as
possible.
7. Commenting your code: high level commenting is preferred, for example, each class should have a
comment introducing the functionality of this class, and each method should have a comment just
before it to introduce the input/output and its functionality. Make appropriate inline comments.
Standard Project Format (adapted from Dr. Hillam)
All work, except code listings and program output, must be done using a word processor. Handwritten
projects will not be accepted. Use a standard font such as courier, Times Roman, etc. at 12 point. Italic
fonts, bold fonts, and script fonts are not acceptable. Black ink is required. The one exception is that many
‘context free’ editors output code and comments in different colors. This deviation is acceptable.
pf2

Partial preview of the text

Download CS241 Winter 2011 Homework Assignments Instructions - Prof. Fang Tang and more Study notes Data Structures and Algorithms in PDF only on Docsity!

CS241: Homework Assignments

Winter 2011 CS241 home page Schedule/Notes Assignments Subject to change. Check back frequently for updates. Description Announcement Date Due Date Status Binary Search Tree Jan. 13 Jan. 24 Ready Due Dates and Late Submission : Project report and the Java source files (.java) should be submitted via email, due at 23:59:59 on the assigned due date. Each late submission will incur a 10 points penalty per day. The final project must be turned in on time. No late project will be accepted for the final one. Any project violates the above rules will receive zero credit. Do's and Don'ts

1. Your source code must be .java files. You do not need to copy them into your project report.

2. Your project report must be either word document or pdf document.

3. DO NOT create/use your own package in your Java files. All the source code must be compilable

when I run " *javac .java " using Commend Prompt. To do this, you can declare your other classes to be non-public, such as "class Set {}" instead of "public class Set {}" and declare your class with the main() function as public.

4. When you are done programming and ready to submit it, create a directory with your first name,

last name and project number, for example, my project 2 directory would be called "daisytang2". Copy all the .java files, program output and your project report into this directory. DO NOT copy extra junk files such as your .class files.

5. Zip the files in the directory so that when I unzip it, a directory with your name that contains all

your files will appear. Sorry, files with .rar postfix will NOT be accepted.

6. It is important that you include your output files (usually in the form of .txt) with your program. If

your program uses an interactive way for the user to enter data, please make it as friendly as possible.

7. Commenting your code: high level commenting is preferred, for example, each class should have a

comment introducing the functionality of this class, and each method should have a comment just before it to introduce the input/output and its functionality. Make appropriate inline comments. Standard Project Format (adapted from Dr. Hillam) All work, except code listings and program output, must be done using a word processor. Handwritten projects will not be accepted. Use a standard font such as courier, Times Roman, etc. at 12 point. Italic fonts, bold fonts, and script fonts are not acceptable. Black ink is required. The one exception is that many ‘context free’ editors output code and comments in different colors. This deviation is acceptable.

Each project is to begin with a title page. One-third the way down and centered is the project number, project title, and class, on separate lines and in that order. Two-thirds the way down and centered is your name, your email address, and the due date on separate lines. The next portion of your project is in an essay format. It must be done on standard paper as noted above. It is composed of the following sections: Section 1. Project description Section 2. Project specification Section 3. Testing methodology Section 4. Lessons learned Section 5. Analysis of output (Project dependent) The section names as listed above (including the word “Section”) are part of the format and head each section. The project description will usually be provided as part of the project handout. The specification includes the requirements for the project and how your project meets them. Testing methodology includes what you did to insure correctness. This section would outline what you used to verify code correctness including but not limited to test data and description of the test drivers. It would include a listing of pathological case and how you handled them. This testing strategy would test every method and user defined or raised exception if relevant. Lessons learned describes what doing and analyzing the project taught you, if anything. Some projects may be in the form of numerical or programming experiments. In that case, the project description would suggest questions this section must answer. Please be concise, make your project report between 1 - 2 pages long. Focus on your testing methodology and lessons learned. After the essay portion attach the output generated by your program. The appearance of your Output must look professional. Landscape is okay for your output. If you are printing tables, the columns must be vertical. You are studying to be professionals. Your work should look professional. Remember Title page Written description in correct form Program output Project Grading 15% Program write-up 70% Program Output and correctness. If your program does not compile, you get a zero here. 15% Program. Efficiency of your program. How well your program is organized, does the listing look professional, are comments appropriate, are class design done to promote correctness. Last updated: Jan. 2011