Algorithme

Fermé
joanice - 16 nov. 2007 à 14:12
 joanice - 17 nov. 2007 à 16:04
Bonjour,
commment écrire l'algorithme qui permet la recherche d'un élément non-triés? l'élément est donné par l'utilisateur!!
merci

2 réponses

blux Messages postés 25976 Date d'inscription dimanche 26 août 2001 Statut Modérateur Dernière intervention 18 avril 2024 3 287
16 nov. 2007 à 14:20
Salut,

ben à part le parcours séquentiel, je ne vois pas...

I=0
TANT QUE NON FIN DE LISTE
SI ELEMENT[i] EST DIFFERENT DE ELEMENT_CHERCHE
ALORS INCREMENTER I
SINON AFFICHER TROUVE EN I
IS
FIN TANT QUE


0
merci mais il existe 3 méthode différent qu'on m'a dit mais je ne les trouve pas!
merci
0