We will give you exact seat numbers later.
Past papers and past sample exams
For the final exam you must be familiar with the assignment 2 spec and be able to state exactly which vertices a detective would visit, given a particular map if the detective was following a particular strategy etc.
For questions when you need compare algorithms do not say things like merge sort is faster or selection sort is slower. Use the exact time complexities. For example Bubble sort with early exit is adaptive and has a time complexity of O(n) on ordered data, whereas quicksort has a time complexity of O(n^2) for ordered data etc.
For programming questions:
Not in the exam
MakefilesThings you will NOT have to code in the exam
Note: these are things you need to understand, you may have to trace through or understand the time complexity of, know when to use etc but will not be asked to write the code for. You should understand how the code works though to thoroughly understand the concepts. You could be given the code for it and asked to use it for a given problem.
Content up to and including all graph material.
Possible programming questions
Things in the exam
The prac exam consists of five questions and you have 1 hour and 30 minutes to solve the questions. Each question is worth 10 marks.
As always, it is a good idea to start with the simplest question - be mindful of the time, if you get stuck, try to move to the next question and come back to the problem later.
The submission instructions are detailed in the file for each question. When submitting your program, the system will run a couple of simple tests. The test code is not available, but if a test fails, you can use gdb, set a break point at the function you implemented, and step through the execution to see where things are going wrong.
Each question is described in the corresponding .c file
This is to give you practice following instructions for the prac exam.
deleteLargest.c | A BST implementation you need to write a function for |
deleteLargest.h | An interface for the BST. You must not modify this |
deleteLargest.o | A simple test binary file for your implementation. You may wish to write your own extra test file for this question to test more thoroughly. |
The instructions for the task are detailed in the file for the question. The test code is not available, but if a test fails, you can use gdb, set a break point at the function you implemented, and step through the execution to see where things are going wrong.
Note: the .o file has been compiled using cse machines. It may not work on your machine at home. deleteLargestSoln.c
During the exam you will have access to the following Reference Card (pdf)