CS 240 Sorting Algorithms

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:47 PM on 10/31/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

Insertion sort worst case

O(n²)

2
New cards

Insertion sort best case

O(n)

3
New cards

Insertion sort average case

O(n²) because it takes n(n+1)/4 (eg sumation i/2) for the first loop

4
New cards

Is insertion sort stable?

Yes

5
New cards

Bubble sort best case

O(n²)

6
New cards

Bubble sort worst case

O(n²)

7
New cards

Bubble sort average case

O(n²)

8
New cards

Is Bubble sort stable?

Yes

9
New cards

Merge sort best case

O(nlogn)

10
New cards

Merge sort average sort

O(nlogn)

11
New cards

Merge sort worst case

O(nlogn)

12
New cards

Is merge sort stable?

Yes

13
New cards

Quick sort best case

O(nlogn)

14
New cards

Quick sort average case

O(nlogn)

15
New cards

Quick sort worst case

O(n²)

16
New cards

Radix sort worst case

O(n*d)

17
New cards

Radix sort average case

O(n*d)

18
New cards

Radix sort best case

O(n*d)

19
New cards

Selection Sort worst case

O(n²)

20
New cards

Selection Sort average case

O(n²)

21
New cards

Selection Sort best case

O(n²)

22
New cards

Selection Sort stable

No it is not stable

23
New cards

Explore top flashcards