All pastes #229554 Raw Edit

Stuff

public text v1 · immutable
#229554 ·published 2006-10-30 19:48 UTC
rendered paste body
list<string>::iterator out;
  list<string>::iterator in;
  int inner;
  int outer;
  try {
  
    for (in = data.begin(); in != data.end(); ++in)
    {
      outer++;
      inner=0;
      int count = 10;
      for (out = in; out != data.end() && count; ++out)
      {
        inner++;
        Trie * one = target->FindWord(*in);
        Trie * two = target->FindWord(*out);
        one->Relate( two, count^2);
        count--;
      }
    }
    target->Repr("");
    cout << "Press a key..." << endl;
    string blah;
    cin >> blah;
  }
  catch (char const *s) {
    cout << s << endl;
    cout << "On word " << outer+inner << " for " << outer << endl;
  }
 
Determining proximity for words
0x804e9a8 11Could not find letter for existing node
On word 30901 for 30900