recursive search with prune or without?
===

This:

    string word1;
    int index1 = learn[index]; // replace char edit increment
    if (w->alpha[i].letter == word[index]) {
    	index1 = 0; //do not count edit if replacing with self i.e. word[1] == o
    	match = true;
    }
    word1[index] = w->alpha[i].letter; // replace char
    suggestCorrectionsHelper(w->alpha[i].next, suggest, index+1, word1, edits+index1, time);

Should be the same as:

    string word1;
    if (w->alpha[i].letter != word[index]) { //look for self replacement; word[1] == o
        word1[index] = w->alpha[i].letter; //replace char
        suggestCorrectionsHelper(w->alpha[i].next, suggest, index+1, word1, edits+(learn[index]), time); //do it again
    } else match = true; //trigger switch


The second version seems better since it will eliminate some of the search paths. But, when I use the second version the search has no results.

why don't these give the same results?

