Rôle d'un algorithme ?
mateo13
Messages postés
77
Date d'inscription
Statut
Membre
Dernière intervention
-
tomatiche Messages postés 393 Date d'inscription Statut Membre Dernière intervention -
tomatiche Messages postés 393 Date d'inscription Statut Membre Dernière intervention -
bonjour à tous, j'ai un algorithme sous les yeux et j'aimerais bien savoir quel est sont rôle.
l'algo en question est :
procédure A_TROUVER(v_tab[TAILLE] : entier, v_tab[TAILLE] : entier )
début
Avec i, k : entiers
j : booléen
k <-- TAILLE/2
répeter
j <-- FAUX
pour i de 1 à TAILLE - k faire
si v_tab[i] > v_tab[i+k] alors
echanger(v_tab[i], v_tab[i+k])
j <-- VRAI
finsi
finfaire
si ( non j ) alors
k <-- k/2
finsi
tant que k != 0
fin
de plus je ne comprend pas pourquoi il y a deux tableaux identiques en paramètres.
Merci pour vos réponses.
l'algo en question est :
procédure A_TROUVER(v_tab[TAILLE] : entier, v_tab[TAILLE] : entier )
début
Avec i, k : entiers
j : booléen
k <-- TAILLE/2
répeter
j <-- FAUX
pour i de 1 à TAILLE - k faire
si v_tab[i] > v_tab[i+k] alors
echanger(v_tab[i], v_tab[i+k])
j <-- VRAI
finsi
finfaire
si ( non j ) alors
k <-- k/2
finsi
tant que k != 0
fin
de plus je ne comprend pas pourquoi il y a deux tableaux identiques en paramètres.
Merci pour vos réponses.
A voir également:
- Role algorithme
- Algorithme euromillion excel gratuit - Forum Excel
- Un algorithme sur excel ou un logiciel à programmer - Forum Logiciels
- Logiciel algorithme euromillion - Télécharger - Loisirs créatifs
- Algorithme : toutes les combinaisons possibles dans un tableau de 2 par 7 ✓ - Forum VB / VBA
- Algorithme ajout rapide snapchat ✓ - Forum Snapchat