Pular para o conteúdo

Sorting algorithms

Introduzido
Material de apoio
Videoaula para este tópico Abrir a página do vídeo
15:34

Busca & Ordenação

Um livro telefônico com um milhão de nomes. Se você verificar um de cada vez, pode fazer um milhão de comparações. Mas você já conhece o truque: abra-o no…

Narração em inglês · legendas em inglês e 中文 que você pode alternar

Nesta aula

Videoaula
Vocabulário
English Significado
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/ordenação por bolha
insertion sort/ɪnˈsɜːʃn sɔːt/ordenação por inserção
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/no local
stable/ˈsteɪbl/estável
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.
Próximo →

Material de apoio

IGCSE, A-Level & AP