30 "CS 367, Summer 2014 Homework 6" "H6" "gradeReport.html" 0 12 q1 "Question 1" "Solution must be recursive" 1 12 q1x0 "Question 1 not answered" 1 2 q1b "Base cases" 2 2 q1b1 "Incorrect/missing base case for empty tree (n == null)" "-2 missing; -1 incorrect" 2 1 q1b2 "Test for n == null should come before recursive calls" 1 2 q1i "Incorrect/missing test for item == null" "-2 missing; -1 incorrect" 1 8 q1r "Recursive case" 2 1 q1r1 "Doesn't correctly handle check of whether data in current node matches" 2 2 q1r2 "Missing recursive call on left child of n" 2 2 q1r3 "Missing recursive call on right child of n" 2 2 q1r4 "Incorrect calculation of total count" "For example, the second recursive call just overwrites the counter instead of adding to it" 2 1 q1r5 "Missing return statement" 0 18 q2 "Question 2" 1 18 q2x0 "Question 2 not answered" 1 5 q2a "Part A" 2 5 q2ax "Part A not answered" 2 2 q2ac "Gave cases in code instead of English" 2 2 q2ab2 "Missing base case of tree with one node" 2 2 q2ab3 "Incorrect/incomplete description of base case of tree with one node" "deduct up to 2 points" 2 3 q2ar1 "Missing recursive case" 2 2 q2ar2 "Recursive case not phrased recursively" 2 1 q2ar3 "Recursive case does not include 'this' node" 1 13 q2b "Part B" "Solution must be recursive" 2 5 q2b "Base cases" 3 2 q2bb1 "Incorrect/missing base case for empty tree" "-2 for missing; up to -2 for incorrect" 3 1 q2bb2 "Test for n == null should come first, before trees with one or more nodes" 3 3 q2bb3 "Incorrect/missing base case for tree with one node" "-3 for missing; up to -3 for incorrect (don't deduct for items you've already taken points off for)" 2 8 q2br "Recursive case" 3 8 q2brx "Missing recursive case: sum of recursive calls" 3 2 q2br1 "Doesn't add 1 to total count for this node in the recursive case" 3 3 q2br2 "Need to use an iterator to go through children" 3 2 q2br3 "Incorrect use of iterator" "Don't deduct if iterator is not declared with the correct generic type, e.g., Iterator iter = ... is ok; use of extended for-loop is ok" 3 4 q2br4 "Incorrect recursive case" "Deduct up to 4 points for mistakes not listed above; give comment indicating why points were lost" 3 1 q2br5 "Missing return statement"