Marking Guide for Assignment#1 ------------------------------ Question 1) Programming Problem: (Total 80 marks) 1. If Standards are not met (i) Files not zipped (or, .rar instead of .zip) : -4 (ii) Did not use command line arguments : -4 (iii)Any of the files(keysort.h/keysort.cpp/main.cpp) missing : -2 2. Testing: (5) - For small.txt (i) Correct Output (No errors detected by checker) : 2/2 (ii) Small errors(one extra/missing record) : 1/2 (iii)Incorrect Output : 0/2 - For courses.txt (i) Correct Output (No errors detected by checker) : 3/3 (ii) Small errors(one extra/missing record) : 2/3 (iii)Incorrect Output : 0/3 3. Programming Style: (5) (i) No documentation/unreadable code : 1/5 (ii)No use of keysort class/everything inside main(): 2/5 (iii)Keysort class has only one method and no data : 3/5 (iv)Improper use of keysort class : 4/5 (v) Good style and proper documentation : 5/5 4. Programs running successfully (max. marks: 70) - Error checking for files (5) (i) No checks for #arguments : -2 (ii)No checks after opening files : -3 - Reading records from input file (15) (i)No checks for array overflow : -2 (ii)Reading the whole file an extra time : -3 (iii)Mistake in calculating offset/length of record: -7 (iv)Storing whole records in memory(Not keysorting): -10 - Keysorting (20) (i) Sorting using two parallel arrays for offset and keys : -2 (ii)Creating new array for sorting/inefficient sorting : -5 (iii)Incorrect Sorting (mistake in the algorithm) : -10 - Writing to output (30) (i) Did not write length indicator : -10 (ii) Incorrect length indicator : -10 (iii)Error in writing format : -5 (iv) Searching whole array while writing : -8 5. For Programs which doesn't compile or crashes when run (max. marks:20) (i) Incomplete program : 10/20 (ii) Major mistakes in programming : 15/20 (iii)Complete program with minor errors : 20/20 Question 2) Written Problem (Total 20 Marks) 2.1) Disks (10 marks) For each part - Full marks for correct answer and zero for incorrect answer. (Approximately correct answers also get full marks) 2.2) Tapes (10 marks) 2.2.1) Mix-up between maximum and minimum Blocking Factor : -2 2.2.2) Minor calculation mistakes : -1 2.2.3) Minor calculation mistakes : -1