Passer au contenu

Sorting algorithms

Introduit
Fiche de cours
Leçon vidéo pour ce sujet Ouvrir la page vidéo
15:34

Recherche & Tri

Un annuaire téléphonique avec un million de noms. Si vous les vérifiez un par un, vous pouvez faire un million de comparaisons. Mais vous connaissez déjà l'astuce : ouvrez-le dans le…

Narration en anglais · sous-titres en anglais et en 中文 au choix

Dans cette leçon

Leçon vidéo
Vocabulaire
English Sens
sort/sɔːt/To arrange items in a list into a chosen order.
library/ˈlaɪbrəri/A collection of reusable routines that programs can call.
algorithm/ˈælɡərɪθəm/A finite sequence of precise steps for solving a problem or carrying out a task.
bubble sort/ˈbʌbl sɔːt/tri à bulles
insertion sort/ɪnˈsɜːʃn sɔːt/tri par insertion
list/lɪst/A collection of items arranged in a particular order.
trace/treɪs/To follow an algorithm step by step, recording how its data changes.
array/əˈreɪ/An indexed collection of elements arranged in one or more dimensions.
pass/pæs/One complete run through a part of the list during sorting.
swap/swɒp/To exchange two values so that each takes the other's place.
elements/ˈelɪmənts/Individual items in a collection or data structure.
inner loop/ˈɪnə luːp/A loop inside another loop that repeats steps during each pass.
flag/flæɡ/A stored indicator of a condition or state, often represented by a Boolean value or a single bit.
sorted sectionThe part of a list whose items are already in order.
key/kiː/The item held aside to be placed into the sorted section.
best caseThe input that allows an algorithm to complete with the least work.
extra memoryMemory used by an algorithm in addition to its input data.
in place/ɪn pleɪs/en place
stable/ˈsteɪbl/
field/fiːld/A named component of a record, with its own value and type.
recordsGroups of related data stored together as a single item.
linear timeRunning time that grows in proportion to the number of items.
Suivant →

Fiche de cours

Se connecter ou créer un compte

IGCSE, A-Level & AP