make_arrays()
This exercise will provide you with 2 strings. The first string represents the master string, the second represents the substring. For this exercise you will trace through the algorithm, counting the number of comparisons and shifts made. Comparisons are the number of character comparisons made in the algorithm, which is equal to the number of times the while loop must iterate. Shifts are counted by the number of times the shift amount must be looked up in the alignment array. Therefore we don't count mismatches on the first character in the sub string as a shift, only when the algorithm enters the else statement in the pseudo code. When you are done tracing the algorithm, enter the two numbers you come up with and hit Check Answer.

Number of Compares:

Number of Shifts:

[started]
var x = checkAnswer(); if (!x && !guess[0]) return ""; else return x;