#ifndef _hashpaki_hpp_ #define _hashpaki_hpp_ #include #include #include #include #include #include using namespace std; const int MAP_SIZE = 500; class WordPair{ string sortWord; string word; public: WordPair(string _origWord, string _sortWord) { word = _origWord; sortWord = _sortWord; } inline string getOrig(){ return word; } inline string getSort(){ return sortWord; } }; class Wordlist{ vector wordMap[MAP_SIZE]; void loadList(string filename); int generateHash(string word); string sortWord(string word); void analyze(); public: vector findWordL(string word); bool findExact(string word); vector findWordWithMissing(string word, int nrMissing); vector buildPyramid(string start,int depth); Wordlist(string filename); }; #endif