Icon Créer jeu Créer jeu

Algorithm for binary search

Compléter

Fill in the blanks for an algorithm for a binary search

Téléchargez la version papier pour jouer

Âge recommandé: 14 ans
4 fois fait

Créé par

United Kingdom

Top 10 résultats

Il n'y a toujours pas de résultats pour ce jeu. Soyez le premier à apparaître dans le classement! pour vous identifier.
Créez votre propre jeu gratuite à partir de notre créateur de jeu
Affrontez vos amis pour voir qui obtient le meilleur score dans ce jeu

Top Jeux

  1. temps
    but
  1. temps
    but
temps
but
temps
but
game-icon

Completar

Algorithm for binary search

Fill in the blanks for an algorithm for a binary search

James
1

focus greater Initially item searching middle midpoint ordered empty range change

Take an list of data and an that is being searched for ?
Maintain a of items where the search item might be found . ?
, set the range to be the entire list . ?
Repeat steps a - e until you find the item you are for or there are no more items to check ( the range is ) : ?
Find the item in the of the range ( the item ) . ?
Compare the midpoint item to the item you are searching for . ?
If the midpoint item is equal to the search item , then stop searching . ?
Otherwise , if the midpoint item is less than than the search item , the range to focus on the items after the midpoint . ?
Otherwise , if the midpoint item is than than the search item , change the range to on the items before the midpoint . ?