Tomorrow's lecture is the last COMP1911 lecture. I will finish sort & searching, briefly revise some topics important fo the exam, and then discuss the final exam format & assessment generally There will be an opportunity to ask questions.
I've updated the starting point code for assignment 2 to include the example function (countBlackPixels) I wrote in yesterday's lecture (note it only partly works!). If you have already started on the assignment and have counting black pixels working you don't need to do anything. If you don't have counting black pixels working - look at the example fucntion from lectures.
I've extend the week 10 lab exercise deadline 1 week to Mon May 23rd. Both lab 11 & lab 12 exercise have to be be submitted by Mon May 23rd. You can demonstrate both (if you haven't already) to your tutor in the week 12 lab.
Reminder: there are no week 12 lab exercises. As well as demonstrating week 10 & 11 lab exercises, in week 12 you can ask your tutor for feedback about ass 1, and for help with any problems you are having with ass 2.
I've put the assignment 2 description up.
Don't panic - much of the mark is for the easier parts.
I'll add soem diagrams to the description Sunday and talk about the assignment in Monday's lecture.
I'm getting a number of questions from students saying their assignment works on there laptop but not on a CSE machine, or works when they run it directly but doesn't work when they it via ~cs1911/bin/arismet-random-test
As I've said in lectures, the usual cause is illegal C in your program. In the case of assignment 1 either using an illegal array index or accessing a variable before initializing it.
If you compile with dcc on a CSE computer when you run your program you will get an error message if you use an illegal array index. You should be able to figure out from the error message where you are using the illegal array index.
If you add the -u flag, e.g. dcc -u arismet.c when you run your program you will get an error message if you use an uninitialized variable. its harder for dcc to indicate where the error occurred but you should be able to figure out which variable has been used without being initialized.
Please remember you must initialize array elements before using their value.
If you an engineer you should be horrified at building something with the unpredicable behaviour that results from illegal C!
To help you out ~cs1911/bin/arismet-random-test runs your program twice for each input, once compiled with dcc and once compiled with dcc -u.
As announced in today's lecture I've changed the assignment 1 specification for cases where the same highest score can be obtained in multiple ways.
You should still use the rule with the alphabetically first name (e.g. "Even-Triple" beats "Odd-Triple").
If the rule name is the same, e.g. two different "Sequences", the numerically smallest numbers win , (e.g. {9,20,31} beats {10,12,14}) - you'll need to use the Arismet Perfect Player to discover exactly how this should be calculated.
Note this affects ony ~1% of inputs so its not something to worry about unlessl you have the assignment close to working- many students won't get that far!
The new specification is easier to implement in the C we cover in COMP1911. Apologies to anyone who had successfully already implemented the old specification (you are doing really well!).
I've accidentally deleted some questions about assignment 1. Please add them again to the web page for the assignment description.
Tomorrow's consultation is moved to Friday 1st April. No other consultations during the break.
Check the Timetable page for times
Starting this week, you can't swap to another course at myUNSW. You can request a class or course swap for the above courses here . Your request will be processed manually by the CSE student office and you will be notified via email when it is done. This service is available until end of March only.
The Timetable page has consultation times and locations. Check this page regularly because we may add more times later. The consultations that are held in the labs are run like a lab class except that you can't get your labs marked.
It is not compulsory to attend the consultation. But they are useful if you have questions or struggling with the course content. Or you could make use of them to prepare your labs each week.