next up previous contents
Next: See Also Up: Algorithms Previous: Complexity   Contents

Example

#include <astl.h>
#include <dfa.h>
#include <cursor.h>
#include <hash.h>
#include <iostream>
#include <cassert>

int main()
{
  DFA_matrix<plain, hash_tag> A;
  make_hash(A);
  const char *word = ``word'';
  std::cout << hash_value(forwardc(A), word, word + 4) << std::endl;
}


Vincent Le Maout 2003-07-08