.hovertable {
font-family: verdana,arial,sans-serif;
font-size:11px;
margin: -2px;
width: 100%;
overflow: hidden;
background: #FFF;
color: #024457;
border:2px solid #167F92;
border-radius: 10px;
border-collapse: separate;
}
.hovertable th {
background-color:#c3dde0;
border-width: 1px;
color:#024457;
padding: 8px;
border-: solid;
border-color: #a9c6c9;
}
.hovertable tr {
border: 1px solid #D9E4E6;
&:nth-child(odd) { // highlight the odd rows with a color
background-color: #EAF3F3;
}
.hovertable td {
border-width: 1px;
padding: 8px;
border-: solid;
border-color: #a9c6c9;
}
summary {
cursor: pointer;
font-size: 16px;
font-weight: bold;
text-decoration-line: overline underline line-through;
}
.coin {
background-color:#E4EFFF;
border:1px solid #9FC6FF;
padding:5px;
/*arrondir les coins en haut à gauche et en bas à droite*/
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
font-family: ‘Trebuchet MS’, Verdana, sans-serif;
}
Algorithme de tri
|
// |
Définitions
Tri par sélection
Principes:Autrement procédure <strong>tri_selection</strong>(tableau t, entier n) pour i de 1 à n - 1 min ← i pour j de i + 1 à n si t[j] < t[min], alors min ← j fin pour si min ≠ i, alors échanger t[i] et t[min] fin pour fin procédure En pascal;procedure Tri par ************************ion(n : integer ; var t : tab) ;var i, j, min, tmp : integer begin for i:=1 to n-1 do begin i:=min; for j:=i+1 to n do if (t[j] < t[min]) then min:=j; if (i <> min) then begin tmp := t[i]; t[i] := t[min]; t[min] := tmp; end; end; end; Tri par insertion
Autrement Le tri à bulle
PrincipeTri fusion
Le tri rapideDes tris avec des arbres. . .Tri par tasOptimalité des algorithmes de triContenu du chapitre :Algorithme de tri1.Définitions et utilisations2.QCM3.Exercices4.Examens corrigésSommaire du cours Algorithme
|