mdd/gpu/SAX.cpp
long hashWord(word saxWord) {
	char beginSym = 'a';
	int result = 0;
	for (int i = m_string_size - 1; i >= 0; i--)
	{
		result += abs(saxWord[i] - 'a')*powl(m_string_size, m_string_size - 1 - i);
	}
	return result;
}
/*
* Map SAX word to it's index in array of words
* Input: saxWord - word
* Return: hash
*/
Map SAX word to it's index in array of words
Input: saxWord - word
Return: hash
Map SAX word to it ' s index in array of words Input : saxWord - word Return : hash
long hashWord(word saxWord) {
	char beginSym = 'a';
	int result = 0;
	for (int i = m_string_size - 1; i >= 0; i--)
	{
		result += abs(saxWord[i] - 'a')*powl(m_string_size, m_string_size - 1 - i);
	}
	return result;
}
long hashWord ( word saxWord ) { char beginSym = ' ' ; int result = 0 ; for ( int i = m_string_size - 1 ; i >= 0 ; i -- ) { result += abs ( saxWord [ i ] - ' ' ) * powl ( m_string_size , m_string_size - 1 - i ) ; } return result ; }
Map SAX word to it's index in array of words
Input: saxWord - word
Return: hash
Map SAX word to it ' s index in array of words Input : saxWord - word Return : hash