Skip to content
Snippets Groups Projects
Commit c467aaaa authored by Antoine Boch's avatar Antoine Boch
Browse files

Structure Finale et plots

parent 13868ae7
Branches master
No related merge requests found
graphs/DeleteparOccuEtTemps.png

19.4 KiB

graphs/addQparOccuEtTemps.png

19.9 KiB

graphs/addTparOccuEtTemps.png

19.3 KiB

graphs/allComparaisonMemoireAarray.png

103 KiB

graphs/allComparaisonTimeArray.png

120 KiB

...@@ -22,44 +22,19 @@ ggplot(perf,aes(x=occu, y=memoire, color=struct))+ ...@@ -22,44 +22,19 @@ ggplot(perf,aes(x=occu, y=memoire, color=struct))+
ylim(0,100000) ylim(0,100000)
ggsave("allComparaisonMemoire.png") ggsave("allComparaisonMemoire.png")
ggplot(subset(perf, test =="0"), aes(x=occu, y=temps, color=struct))+ ggplot(perf,aes(x=occu, y=temps, color=struct))+
geom_point()+geom_smooth()+
ggtitle("Par occurénce sur le temps, Test : addQ")+
xlab("Occurence")+
ylab("Temps")
ggsave("addQparOccuEtTemps.png")
ggplot(subset(perf, test =="0"), aes(x=occu, y=memoire, color=struct))+
geom_point()+geom_smooth()+
ggtitle("Par occurénce sur le mémoire, Test : addQ")+
xlab("Occurence")+
ylab("Memoire")
ggsave("addQparOccuEtTemps.png")
ggplot(subset(perf, test =="1"), aes(x=occu, y=temps, color=struct))+
geom_point()+geom_smooth()+
ggtitle("Par occurénce sur le temps, Test : addT")+
xlab("Occurence")+
ylab("Temps")
ggsave("addTparOccuEtTemps.png")
ggplot(subset(perf, test =="1"), aes(x=occu, y=memoire, color=struct))+
geom_point()+geom_smooth()+
ggtitle("Par occurénce sur le mémoire, Test : addT")+
xlab("Occurence")+
ylab("Memoire")
ggsave("addTparOccuEtTemps.png")
ggplot(subset(perf, test =="2"), aes(x=occu, y=temps, color=struct))+
geom_point()+geom_smooth()+ geom_point()+geom_smooth()+
ggtitle("Par occurénce sur le temps, Test : Delete")+ ggtitle("Le temps sur les opérations ")+
xlab("Occurence")+ xlab("Occurence")+
ylab("Temps") ylab("Temps")+
ggsave("DeleteparOccuEtTemps.png") facet_grid(rows=vars(struct),cols=vars(test))
ggsave("allComparaisonTimeAnalyse.png")
ggplot(subset(perf, test =="2"), aes(x=occu, y=memoire, color=struct))+ ggplot(perf,aes(x=occu, y=memoire, color=struct))+
geom_point()+geom_smooth()+ geom_point()+geom_smooth()+
ggtitle("Par occurénce sur le mémoire, Test : Delete")+ ggtitle("La mémoire prise par les opérations ")+
xlab("Occurence")+ xlab("Occurence")+
ylab("Memoire") ylab("Memoire")+
ggsave("DeleteparOccuEtTemps.png") facet_grid(rows=vars(struct),cols=vars(test))+
ylim(0,100000)
ggsave("allComparaisonMemoireAnalyse.png")
import java.util.*;
import javax.swing.JButton;
public class ArrayListI2<E> extends ArrayList<E> implements IStructure{
private ArrayList<Integer> AL;
private JButton btn;
public ArrayListI2(int taille){
this.AL=new ArrayList<>(taille);
}
@Override
public void enTete(int n){
for(int i=0;i<n;i++) {
this.AL.add(btn);
}
}
@Override
public void enQueue(int n){
for(int i=0;i<n;i++) {
this.AL.add(btn);
}
//System.out.println("AL ok");
}
@Override
public void effacer(){
this.AL.clear();
//System.out.println("AL clear");
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment