Dear COS340A Students You can submit the code for Assignment 2 through myUnisa. Your submission should be in the form of a single zip file eg. created with WinZip or pkzip. Take note of the following: • Do NOT submit a .exe (or any object files). • Only submit the .dev and .cpp files in a single zipped archive. • Make sure there are no other files (eg. text of your assignmentby aronl - COS340A
Dear Students To submit your code for question5, assignment 3, please follow the link below. Then click on the COS340A Assignment 3 link and follow the instructions. Please note that maximum file upload size is 200kb. So you need to use low resolution pictures which take up very little memory for your texture mapping. http://osprey.unisa.ac.za/hallakj/upload/ regards COS340 Lecturersby aronl - COS340A
Dear Students Please note that we haved moved the due date for assignment 3 to 10 August 2009. regards Lazarus Aronby aronl - COS340A
Dear Students Please note that Tutorial Letter 202 containing solutions to assignment 2 is available on myunisa and osprey. The code(.cpp file) for question 4 is also available. regards Lazarus Aronby aronl - COS340A
Please click on the link below and then follow the instructions to upload your code for Assignment 2, Question 4 onto osprey. http://osprey.unisa.ac.za/hallakj/upload/ regards Lazarus Aronby aronl - COS340A
There are some important issues which you need to take note if you wish to complete your 2nd assignment successfully. (1) Note that when working with template classes both the implemenation and header must be in the same file(the header file). (2) When working with derived classes the compiler supplied by the School of Computing does not associate any inherited data members as membersby aronl - COS211X
Dear Students Please take note of the following troubleshooting tips when using Dev c++ and the mingw compiler: It is possible that Dev-C++ doesn't know where the MinGW compiler is. Check the following in "Tools | Compiler Options" under the "Directories" tab: C:\unisa\mingw\bin should be added to "Binaries". C:\unisa\mingw\lib should be added to "by aronl - COS340A
This question is similar to question 6 of assignment 2, the solution is also very similar. regards Lazarus Aronby aronl - COS211X
An estimate will be sufficient. regards Lazarus Aronby aronl - COS211X
Dear Students For those of you who may have been unaware the exam tutorial letter has been available on myunisa since 22 August. It is also on osprey now. regards Lazarus Aronby aronl - COS340A
I have uploaded a document on osprey called "review questions.doc" that contains more practise questions. If you would like your solutions to be checked you can place them on this forum. regards Lazarus Aronby aronl - COS211X
Provide the time complexity of the following code fragments. Explain your answers. i) for (int i = 1; i<=n/2; i++) for (int j = 1; j<=n; j++) sum++; ii) for (int i=1; i<=n; i=*2) for (int i=1 ; i<=10 ; i++) doIt() ; where the efficiency of the algorithm doIt is in the order of O(n2 ). regards Lazarus Aronby aronl - COS211X
Answer given above is correct. There is no set formulae to use, the best way is by inspection.by aronl - COS211X
Sorry! Consider the table below and answer the question that follows .The table depicts the running time (seconds) dependant on input size (n) of three algorithms Algorithm ____n = 4____n = 8_____n = 16 ___ A _________ 16 _____ 256 ____ 65536 ___ B _________ 17 ______ 65 _____ 257 ___ C _________ 6 _______ 11 _____ 20 What is the running time complexity of algorithm A, B and C?by aronl - COS211X
Consider the table below and answer the question that follows .The table depicts the running time (seconds) dependant on input size (n) of three algorithms Algorithm ____n = 100____n = 1000_____n = 10 000 ___ A _________ 4 _________ 400 __________ 40 000 ___ B _________ 9 _________ 90 ___________ 900 ___ C _________ 21 ________ 31 ___________ 41 What is the running time complexity of algby aronl - COS211X
Solution to first question is: O(log n), O(n), O(n log n) ,O(n2), O(n3) Solution to 2nd Question is : i)T(n) = 5 seconds ii)T(n) = (1 * 503) / 103 = 125 seconds iii)T(n) = (1 * 2 50 )/ 2 10 = 2 40 seconds See new thread (Review 2) for more questions regards Lazarus Aronby aronl - COS211X
Here is another question..... If an algorithm takes 1 second to run with a problem size of N = 10, what is the approximate time requirement for that same algorithm with a problem size of N = 50 if the time complexity is: i) Linear ii) Cubic iii) Exponential (ie: O(2n))by aronl - COS211X
Remember the question says ... write in ascending order the Big Oh time complexity...by aronl - COS211X
The assignments are marked by external markers and they sometimes tend to follow the marking guidelines more strictly than they are required to. They are told to look at each solution individually but they don't always do that. The exams will be marked by the lecturers. We understand that coding on paper under pressure is not the easiest thing to do and we are not strict. We use the markingby aronl - COS211X
You are right. The 5 and 2 in column 2 should move 1 column to the right. Lazarus Aronby aronl - COS211X
Assignment 3 solutions are now available on osprey and myUnisa regards Lazarus Aronby aronl - COS340A
Due to the low(no) reponse, I will try this again when we get closer to the examinations. regards Lazarusby aronl - COS211X
Dear Students For the next few weeks I will regularly put up exercises on this forum based on the different Cos211x topics. You can discuss the questions and post your answers on the forum. I will look at your replies. We can also discuss any of the assignment questions you may have had a problem with. For the next week(until 27/ 08) the questions will based on Algorithm analysis and Complby aronl - COS211X
Dear Students The examination tutorial letter(103) is now available for download on myUnisa and Osprey. regards Lazarus Aronby aronl - COS211X
Dear Students Please note that the solutions for assignment 4 is available for download on myUnisa and osprey. regards Lazarus Aronby aronl - COS211X
If your 3rd assignment is received by UNISA before or on the 15th of August it will still be marked and credits will be awarded for it. Please take note that if it is sent via myUnisa it will marked as received on the date you uploaded it. If you place it in an assignment box at one of the UNISA centres(including main campus) then the received date will be a few days later. In this case you willby aronl - COS340A
Yes you can use someone else's code.Here is also an example of how to load a 512 x 1024 bitmap const int WIDTH = 512; const int HEIGHT = 1024; GLubyte image[3]; FILE * fd; fd = fopen("VrugtePaletmesprojek2.bmp","rb" fseek(fd,55,SEEK_SET); // Move file pointer past header info fread(&image,1,WIDTH*HEIGHT*3,fd); fclose(fd); regards Lazarusby aronl - COS340A
Dear Students To upload third assignment code click on the link below and follow the instructions. http://osprey.unisa.ac.za/hallakj/upload/cos340_3 Regards Lazarus Aronby aronl - COS340A
Dear Students Please note that the Tutorial Letter 203, containing the solutions to Assignment 3, is available for download on osprey and MyUnisa. Regards Lazarus Aronby aronl - COS211X
Hi The newer version complies more with the latest C++ standards, with respect to templates,than the older version. C++ compilers in general do not comply with all the latest C++ standards. Regarding the compiler to use, you could use either one (the old or new).Because the old version does not comply with the latest standards, it is more error prone, when doing more advanced template progby aronl - COS211X