University of Toronto
Department of Computer Science
Summer 1997
CSC 148H: INTRODUCTION TO
COMPUTER SCIENCE
Assignments
Assignment 1
Assignment 2
Assignment 3
Assignment 4
Assignment 5
Assignment 1: Election Night
- Handout
- Files:
- Driver - a1driver.t
- Class - election.tu
- Example input file
- Example output file
- Solution:
- election.tu
- Testing strategy
- Some statistics
- Directory of test cases
- ZIP file of all test cases
Assignment 2: Page Replacement Algorithms
- Handout
- Other:
- Announcements and Hints
- traces
- Solution
- Comments from the TAs who marked it. (or ``How to do better on A3.'')
- Solutions to the questions.
Assignment 3: Travesty: Playing with words
-
Handout
- Other:
- Announcements and Hints for the assignment. This page may
change
frequently so check it often.
- Sample input
- Solution
- Comments for the day and evening sections. (you should read both of these)
- travesty.tu
- main.t
Assignment 4: Make like a tree and ...
- Handout
- Files:
- Driver - a4driver.t
- Class - tree.tu
- Example input file
- Example output file
- Solution:
- the function
- comments on recursion (please read)
- Testing strategy
- Some statistics
- Directory of test cases
- ZIP file of all test cases
Assignment 5: Carnivores and herbivores
- Handout
- Other:
- Announcements and Hints for the
assignment. Check here often.
- FYI only: Here's a
web page about a simulation of fish stocks around
Norway.(not accessible from CDF machines)
- Solution:
- ftree.tu
- Neat ideas for new
classes (for bonus marks)
- Files: (either download the ZIP file, or download
each file individually.)
- ZIP file of everything.
(use pkunzip to open it up.)
- README (How to run the thing!)
- active.tu
- animal.tu
- ftree.tu
- herbivor.tu
- location.tu
- main.t
- mountain.tu
- mouse.tu
- object.tu
- plain.tu
- pq.tu
- refresh.tu
- set.tu
- simvar.tu
- stats.tu
- terrain.tu
- water.tu
- world.tb
- world.ti
Last modified: Mon Aug 18 16:33:24 EDT