@@ -0,0 +1,1621 @@
+package test.patriciaTrie;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Set;%0A%0Aimport algo.HybridTrie;%0Aimport algo.PatriciaTrie;%0Aimport parser.FilesParser;%0A%0Apublic class PatriciaTest %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09PatriciaTrie root = new PatriciaTrie();%0A%09%09PatriciaTrie root2 = new PatriciaTrie();%0A%09%09%0A%09%09/*FilesParser f = new FilesParser();%0A%09%09List%3CString%3E l = new ArrayList%3CString%3E();%0A%09%09Set%3CString%3E words = null;%0A%09%09l.add(%22hamlet.txt%22);%0A%09%09try %7B%0A%09%09%09words = f.readFiles(l);%0A%09%09%7D catch (InterruptedException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09%0A%09%09for(String s : words)%7B%0A%09%09%09root.addWord(s);%0A%09%09%7D%0A%09%09%0A%09%09List%3CString%3E lwords = root.ListeMots();%09%0A%09%09System.out.println(root.ComptageMots());%0A%09%09System.out.println(root.Hauteur());%0A%09%09System.out.println(root.ProfondeurMoyenne());*/%0A%09%09%0A%09%09System.out.println(root.ComptageNil());%0A%09%09%0A%09%09root.addWord(%22tester%22);%0A%09%09System.out.println(root.ComptageNil());%0A%09%09root.addWord(%22slow%22);%0A%09%09root.addWord(%22slower%22);%0A%09%09root.addWord(%22water%22);%0A%09%09root.addWord(%22test%22);%0A%09%09root.addWord(%22team%22);%0A%09%09root.addWord(%22toast%22);%0A%09%09%0A%09%09System.out.println(root.ComptageNil());%0A%09%09%0A%09%09%0A%09%09HybridTrie h = root.convert();%0A%09%09%0A%09%09root.Suppression(%22slow%22);%0A%09%09%0Aboolean b = root.search(%22tester%22);%0ASystem.out.println(b);%0A b = root.search(%22tes%22);%0A System.out.println(b);%0A b = root.search(%22t%22);%0A System.out.println(b);%0A b = root.search(%22slower%22);%0ASystem.out.println(b);%0A%0A%09%09List%3CString%3E words = root.ListeMots();%09%0A%09%09System.out.println(root.ComptageMots());%0A%09%09System.out.println(root.Hauteur());%0A%09%09System.out.println(root.ProfondeurMoyenne());%0A%09%09%0A%09%09System.out.println(root.Prefixe(%22te%22));%0A%09%09%0A%09%09%0A%0A%09%7D%0A%0A%7D%0A

Create PatriciaTest.java