Skip to content
Snippets Groups Projects
Commit 00c00dc4 authored by Martin's avatar Martin
Browse files

Limite a 67500 caractères

parent c1cb9b07
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,8 @@
#include <omp.h>
//#include "suffixe_tree.cpp"
#include "SuffixTree.cpp"
#include "suffixe_tree.cpp"
//#include "SuffixTree.cpp"
#define CHRONO
......@@ -251,10 +251,23 @@ void nbAdditifsAvecSansOpenMP(){
}
void arbreDesSuffixes(){
int size = 40000;
high_resolution_clock::time_point t1 = high_resolution_clock::now();
int size = 67500;
if(size>fichier.size()){
size = fichier.size();
}
arbre = new SuffixTree(fichier.substr(0,size));
//SuffixTree = arbre->nodes[0]->child
//arbre->visualize();
high_resolution_clock::time_point t2 = high_resolution_clock::now();
duration<double> time_span = duration_cast<duration<double>>(t2 - t1);
std::cout << "arbre a "<<size<<" caracteres construit en : " << time_span.count() << " secondes" << std::endl;
}
int main(){
......
......@@ -60,5 +60,5 @@ tree2: SuffixTree.cpp
main: main.cpp $(OBJETS)
$(G) $(OPEN) $< -o $@ $(OBJETS)
exec:
run:
./$(EXEC)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment