Marking guide for assignment #3 ####################################################################################### The program falls in one of three categories: Program does not compile (at most 30) Compiles but crashes when trying to run (at most 50) Runs without crashing The marks are divided as follows: --------------------------------- (15 marks) are given to two test files (students.txt and students2.txt) /5 students.txt - part I /5 students.txt - part II (keys: 2453106, 2087743, 2633582) /3 students2.txt - part I /2 students2.txt - part II (keys: 2173098, 2225639, 2364551) Part1: to check whether the bucket, directory and log file is created correctly. Possible errors: a. Empty directory, bucket or log files (-5 for students.txt, -3 for student2.txt) b. The log file shows that the buckets are not being created correctly (-4 for students.txt, -2 for student2.txt ) Part2:(2 marks) is used to check if the program can search the record according to the directory and bucket file built in part I a. Does not give any correct search results for the above keys (-5 for students.txt, -2 for student2.txt) b. Give correct search results for some keys (from -1 to -4 depending on the number of correct searches) (2 marks) report file not present -2. Following are 3 different possible cases: (85 marks) A) When program compiles and runs without crashing or crashes after producing a good amount of partial results ----------------------------------------------------------------------------------------------------------------------- Possible discounts are: /20 Manipulation of Datafile a. Not complete, handling the end of file is not correct (up to -5) b. Not correct, get wrong key & rrn (up to -20) /15 Manipulation/Creation of Bucket File a. Initial creation is not correct (up to -5) b. Appending lately is not correct (-5 to -10) c. Reading and writing the bucket are not correct (up to -5) /10 Simple insertion a. Insertion is not correct (-5 to -10) /25 Insertion with Bucket Split (detected in EHBUckets.txt) a. Splitting is not correct (-5) b. Redistribution (-5 to -10) c. Hashing mechanism, locating the bucket and packing/unpacking the bucket (up to -10) /5 Correct Directory update a. Not correct (up to -5) b. Packing/unpacking the directory /10 Search a. Not correct (up to -10) (50 marks) B) When program compiles but crashes when run, the 50 marks are divided as follows: ------------------------------------------------------------------------------------- With little or no partial results produced Possible discounts are: a. Doesn't give any result, no printout on the screen, no files created (at most 30, depending on the coding effort) b. Not complete: lack datafile manipulation (-10) Searching (-5) Bucket/directory file manipulation (-10) (30 marks) C) When doesn't compile, the 30 marks are divided as follows: ------------------------------------------------------------------------ (Maximum 30 marks depending on partial correctness) possible discounts are: a. The program is almost the same as that downloaded from the web (-30) b. Show very weak coding capability (too many simple compiling errors, like variable not defined.) (-20) ######################################################################################