返回卡包市场

Sorting Algorithms

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 14内容版本: v3公开卡包更新时间: 8/1/2026

卡片预览 (14 张)

#1
正面 (问题)

Which sorting algorithm makes comparisons and swaps between pairs of elements?

背面 (解答)

Bubble sort

#2
正面 (问题)

Which example shows bubble sort?

背面 (解答)

A B C 3 5 4 1 2 -> 3 4 5 1 2 -> 3 4 1 5 2 -> 3 1 4 5 2 -> 1 3 4 5 2 -> 1 2 3 4 5

#3
正面 (问题)

Which example showed bubble sort?

背面 (解答)

B

#4
正面 (问题)

Which example shows insertion sort?

背面 (解答)

A B C 3 5 4 1 2 -> 3 5 4 1 2 -> 4 5 1 2 -> 4 1 5 2 -> 1 2 4 5 -> 3 2 4 5 -> 1 2 3 4 5.

#5
正面 (问题)

Which example showed bubble sort?

背面 (解答)

C

#6
正面 (问题)

Which sorting algorithm is shown here?

背面 (解答)

Quick sort with the middle element chosen as the pivot.

#7
正面 (问题)

Perform the first pass of bubble sort on the values 4 2 3 5 1.

背面 (解答)

4 2 3 5 1 -> 2 4 3 5 1 -> 3 2 4 5 1 -> 3 4 2 5 1 -> 1 3 4 5.

#8
正面 (问题)

Which sorting algorithm can be improved by adding a flag to record whether or not a swap has occurred?

背面 (解答)

Bubble sort.

#9
正面 (问题)

Perform insertion sort on the values 4 2 3 5 1.

背面 (解答)

Initial: 4 2 3 5 1 -> 2 4 3 5 1 -> 3 2 4 5 1 -> 1 2 3 4 5.

#10
正面 (问题)

Name the two functions in merge sort.

背面 (解答)

MergeSort and Merge.

#11
正面 (问题)

In which sorting algorithm is the largest element in place after the first pass?

背面 (解答)

Bubble sort.

#12
正面 (问题)

Which sorting algorithm uses pivots?

背面 (解答)

Quick sort.

#13
正面 (问题)

Which of our sorting algorithms is the most efficient?

背面 (解答)

Merge sort.

#14
正面 (问题)

Perform merge sort on the values 4 2 3 5.

背面 (解答)

Initial: 4 2 3 5 -> 4 2 3 5 -> 2 4 3 5 -> 2 3 4 5.