Example #1
0
void testPrune(){

		//pr
	hashTable* str_table1;
	triple** code_arr1 = NULL;

	long ts1 = (1 << (3 - 1)) - 1;
	long as1 = (1 << 3);

	setSize(ts1, as1);
	// create hash
	initializeTables(&str_table1, &code_arr1);
	startMiniTables(&str_table1, &code_arr1);
	encode(&str_table1, &code_arr1, 3,-1, as1);

		printArray(code_arr1);
		printf("------------------------\n");
	//pr
	hashTable* str_table;
	triple** code_arr = NULL;

	long ts = (1 << (3 - 1)) - 1;
	long as = (1 << 3);

	setSize(ts, as);
	// create hash
	initializeTables(&str_table, &code_arr);
	startMiniTables(&str_table, &code_arr);
	encode(&str_table, &code_arr, 3, 1, as);
	printArray(code_arr);
}
Example #2
0
RabinHashFunction32::RabinHashFunction32(const int vP):P(vP)
{
	initializeTables();
}