BRZ algorithm is almost stable

This commit is contained in:
fc_botelho 2005-07-29 19:43:21 +00:00
parent 2fa5457c27
commit 0db620e9cd

View File

@ -196,7 +196,8 @@ cmph_t *brz_new(cmph_config_t *mph, float c)
} }
// graphs_fd = fopen("/colecao/fbotelho/cmph.tmp", "wb"); // graphs_fd = fopen("/colecao/fbotelho/cmph.tmp", "wb");
graphs_fd = fopen("cmph.tmp", "wb"); /* graphs_fd = fopen("cmph.tmp", "wb");*/
graphs_fd = fopen("/var/tmp/cmph.tmp", "wb");
if (graphs_fd == NULL) if (graphs_fd == NULL)
{ {
free(brz->size); free(brz->size);
@ -213,7 +214,8 @@ cmph_t *brz_new(cmph_config_t *mph, float c)
DEBUGP("Graphs generated\n"); DEBUGP("Graphs generated\n");
fclose(graphs_fd); fclose(graphs_fd);
// graphs_fd = fopen("/colecao/fbotelho/cmph.tmp", "rb"); // graphs_fd = fopen("/colecao/fbotelho/cmph.tmp", "rb");
graphs_fd = fopen("cmph.tmp", "rb"); /* graphs_fd = fopen("cmph.tmp", "rb");*/
graphs_fd = fopen("/var/tmp/cmph.tmp", "rb");
// codigo do algoritmo... // codigo do algoritmo...
brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k); brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k); brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);