This site archives my teaching materials (slides, notes, assignments, exam questions, demos etc.) from the courses that I taught, with the hope that it will be benefitial to others. Please credit properly if you do reuse some of my materials. Disclaimer: There are bound to be mistakes in these materials. Use at your own risk! Bug reports will be much appreciated.
Several of the exam/exercise questions are inspired by existing questions on the web or in textbooks. Unfortunately I did not keep track of them. Please let me know so that I can credit them properly.
CS1102 Data Structures and Algorithms (Semester 1 and 2, 2002/03)
Lecture Notes
- Sorting
- Binary Search Tree
- Red-Black and AVL Trees
- Hash Tables
- Graph and Algorithms
- Algorithm Design Techniques
Tutorial Question and Answers
- Sorting
- Graph Algorithms (Not actually used in class)
Programming Assignments
- Binary Trees: Question Set A | Set B | Set C
- Binary Heaps: Question Set A | Set B | Set C
- Hash Tables: Question
- Binary Trees and Tries: Questions and Solution 1, 2.
Practical Exam
Final Exam
- Sample Exam Questions
- Final Exam Selected Questions
Demos
CS2281 Programming in UNIX (Semester 3, 2003/04)
Lecture Materials (Examples)
- Administrative Matters
- C Examples 01-18, 19-28, 29-46 (39,40,43) 47-52, 53-59.
- Shell Examples 01-08, 09-15, 16-20, 21-24.
- UNIX Examples 01-15, 16-22, 23-26.
Programming Assignments
- Approximating Pi in 1,000,000,000 loops
- Edge Detection on PGM Image
- Vector Library Sample Main Program.
- Student Database Using Bash Script
- Instant Messaging in UNIX
- Which Search Terms in Google Lead to SoC web log (zipped), urldecode.c
- Approximating Pi, with Signal
Exam Questions
Lecture Video (within NUS only)
- 3 May 04, Part 1 Part 2. Sorry the audio quality is bad in this one :(
- 6 May 04, Part 1 Part 2
- 10 May 04, Part 1 Part 2.
- 13 May 04, (Part 1 N/A) Part 2
- 17 May 04, Part 1 Part 2
- 20 May 04, Part 1 Part 2
- 24 May 04, Part 1 Part 2
- 27 May 04, Part 1 Part 2
- 31 May 04, Part 1 Part 2
- 3 June 04, Part 1 Part 2
- 7 June 04, (Part 1 N/A) Part 2
- 10 June 04,
Part 1
You will need ffdshow or xvid codec to play. WARNING: each video is roughly 100MB.