Ajouter un programme de recherche dichotomique (binary search) dans un tableau trié.
Ce qu'il faut faire
- Créer
examples/recherche_dichotomique.algo
- Utiliser une
Fonction pour la recherche
- Afficher si l'élément est trouvé et à quel index
C'est un algorithme fondamental souvent enseigné en cours d'algorithmique.
Ajouter un programme de recherche dichotomique (binary search) dans un tableau trié.
Ce qu'il faut faire
examples/recherche_dichotomique.algoFonctionpour la rechercheC'est un algorithme fondamental souvent enseigné en cours d'algorithmique.