Imperfect Sorting
The sorting of the count arrays is not perfect. Here's a sample output: https://gitlab.com/JohnMoon94/CS146_SJSU/blob/master/Project3/AtlantisOutput.txt
We see:
888 the
871 and
883 of
421 to
343 we
267 a
287 that
We expect:
888 the
883 of
871 and
421 to
343 we
287 that
267 a
I believe this probably has something to do with the flipping of indexes during quicksort. There's likely some imprecise incrementation of the indexes...