diff --git a/SAÉ2.02-Exploitation_algorithme-algo1.svg b/SAÉ2.02-Exploitation_algorithme-algo1.svg new file mode 100644 index 0000000..fb440b8 --- /dev/null +++ b/SAÉ2.02-Exploitation_algorithme-algo1.svg @@ -0,0 +1,3 @@ + + +
1
1
2
2
4
4
9
9
11
11
19
19
34
34
1
1
ex : pour i = 0, tab[1] > tab[0] ?
1 > 2 ?
ex : pour i = 0, t...
Non, donc on échange pas et la variable echange reste à 0
Non, donc on échange pas e...
2
2
3
3
4
4
ex : pour i = 5, tab[5] < tab[4] ?
19 < 11 ?
ex : pour i = 5, t...
Non, donc on échange pas et la variable echange n'est pas incrémenté de 1 et reste donc à 0
Non, donc on échange pas et la variable echan...
5
5
deb = 0
deb = 0
fin = 6
fin = 6
fin = 5
fin = 5
deb = 0
deb = 0
34
34
19
19
11
11
9
9
4
4
2
2
1
1
1
1
ex : pour i = 0, tab[1] > tab[0] ?
34 > 19 ?
ex : pour i = 0, t...
Oui, donc on échange tab[1] et tab[0] et la variable echange est incrémenté de 1
Oui, donc on échange tab[1] et tab[0...
2
2
3
3
4
4
ex : pour i = 5, tab[5] < tab[4] ?
2 < 4 ?
ex : pour i = 5, t...
Oui, donc on échange tab[5] et tab [4] et la variable echange est incrémenté de 1
Oui, donc on échange tab[5] et tab [...
5
5
deb = 0
deb = 0
fin = 5
fin = 5
deb = 0
deb = 0
deb = 1
deb = 1
fin = 5
fin = 5
echange = 0
echange = 0
fin = 6
fin = 6
echange = 1
echange = 1
echange = 7
echange = 7
4
4
19
19
1
1
2
2
11
11
34
34
9
9
1
1
ex : pour i = 0, tab[1] > tab[0] ?
4 > 19 ?
ex : pour i = 0, t...
Non, donc on échange pas et la variable echange reste à 0
Non, donc on échange pas et...
2
2
3
3
4
4
ex : pour i = 5, tab[5] < tab[4] ?
34 < 11 ?
ex : pour i = 5, t...
Non, donc on échange pas et la variable echange n'est pas incrémenté de 1 et reste donc à 0
Non, donc on échange pas et la variable echan...
5
5
deb = 0
deb = 0
fin = 5
fin = 5
deb = 0
deb = 0
deb = 1
deb = 1
fin = 5
fin = 5
fin = 6
fin = 6
echange = 0
echange = 0
echange = 4
echange = 4
echange = 0
echange = 0
Text is not SVG - cannot display
\ No newline at end of file diff --git a/SAÉ2.02-Exploitation_algorithme-algo3.svg b/SAÉ2.02-Exploitation_algorithme-algo3.svg new file mode 100644 index 0000000..dd90ae0 --- /dev/null +++ b/SAÉ2.02-Exploitation_algorithme-algo3.svg @@ -0,0 +1,3 @@ + + +
1
1
2
2
4
4
9
9
11
11
19
19
34
34
1
1
ex : pour i = 1, tab[0] > tab[1] ?
1 > 2 ?
ex : pour i = 1, t...
Non, donc pos = 1, pos = i donc on passe à i++
Non, donc pos = 1, pos = i...
2
2
i = 1
i = 1
i = 6
i = 6
i = 6
i = 6
34
34
19
19
11
11
9
9
4
4
2
2
1
1
4
4
19
19
1
1
2
2
11
11
34
34
9
9
i = 2
i = 2
1
1
ex : pour i = 1, tab[0] > tab[1] ?
34 > 19 ?
ex : pour i = 1, t...
Oui, donc pos = 0, pos != i donc on met tab[1] dans une nouvelle variable tmp, on met tab[0] dans tab[1] puis tmp dans tab[0]. On passe ensuite à i++
Oui, donc pos = 0, pos != i donc on met...
2
2
i = 1
i = 1
i = 6
i = 6
i = 6
i = 6
i = 2
i = 2
1
1
ex : pour i = 1, tab[0] > tab[1] ?
4 > 19 ?
ex : pour i = 1, t...
Non, donc pos = 1, pos = i donc on passe à i++
Non, donc pos = 1, pos = i...
2
2
i = 1
i = 1
i = 6
i = 6
i = 6
i = 6
i = 2
i = 2
Text is not SVG - cannot display
\ No newline at end of file diff --git a/SAÉ2.02-Exploitation_algorithme-tblx.svg b/SAÉ2.02-Exploitation_algorithme-tblx.svg new file mode 100644 index 0000000..5936cdf --- /dev/null +++ b/SAÉ2.02-Exploitation_algorithme-tblx.svg @@ -0,0 +1,3 @@ + + +
1
1
2
2
4
4
9
9
11
11
19
19
34
34
34
34
19
19
11
11
9
9
4
4
2
2
1
1
4
4
19
19
1
1
2
2
11
11
34
34
9
9
Text is not SVG - cannot display
\ No newline at end of file