Flashcards
Sem título
Flashcards do conjunto (2)
- 1Describe how to merge sort.Merge sort by getting a set of data, and halving it repeatedly until you have single pieces. Then compare the two sets and order them smallest to biggest. Repeat this until you have a complete set of sorted data.
- 2Merge sort 76, 98, 12, 7, 45, 2, 65, 5076, 98, 12, 7, 45, 2, 65, 50
Step 1: [76, 98, 12, 7] [45, 2, 65, 50]
Step 2: [76, 98] [12, 7] [45, 2] [65, 50]
Step 3: [76] [98] [12] [7] [45] [2] [65] [50]
Step 4: [76, 98] [7, 12] [2, 45] [50, 65]
Step 5: [7, 12, 76, 98] [2, 45, 50, 65]
Step 6: [2, 7, 12, 45, 50, 65, 76, 98]
Answer: 2, 7, 12, 45, 50, 65, 76, 98
Informações
- Descrição
- FlashCards sobre Sem título, criado por Xavier Beechey em 31-01-2020.
- Criado por
- Xavier Beechey
- Visualizações
- 0
- Avaliação