Sorting - Flashcards

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

flashcard set

Earn XP

Description and Tags

These flashcards cover key terms and definitions related to sorting algorithms, their characteristics, and their complexities.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Time Complexity

A measure of the amount of time an algorithm takes to complete as a function of the size of the input.

2
New cards

Internal Sort

A sorting method where all data to be sorted is stored in the computer’s main memory.

3
New cards

External Sort

A sorting method where some data to be sorted may be stored in external, slower storage.

4
New cards

In Place Sort

A sorting method that requires a constant amount of extra space regardless of the input size.

5
New cards

Insertion Sort

A sorting algorithm that builds a sorted sequence incrementally by removing one element at a time and inserting it into the correct position.

6
New cards

Loop Invariant

A condition that holds true at the beginning and end of each iteration of a loop, serving as a key feature in the proof of correctness for an algorithm.

7
New cards

Best Case Analysis

The least amount of time required by an algorithm to complete when the input is in the most favorable state.

8
New cards

Worst Case Analysis

The maximum amount of time required by an algorithm to complete when the input is in the least favorable state.

9
New cards

Bubble Sort

A simple sorting algorithm that repeatedly passes through the list, compares adjacent elements and swaps them if they are in the wrong order.

10
New cards

Selection Sort

A sorting algorithm that sorts an array by repeatedly finding the minimum element and moving it to the front.

11
New cards

Merge Sort

A divide-and-conquer algorithm that splits the array into smaller subarrays, sorts them, and then merges them back together.

12
New cards

Quicksort

A divide-and-conquer algorithm that sorts an array by partitioning it into two subarrays based on a pivot, where elements less than the pivot are on one side and those greater are on the other.

13
New cards

Partitioning

The process of dividing the array into two parts during the quicksort algorithm, based on a chosen pivot.

14
New cards

Comparisons and Exchanges

Operations in sorting algorithms that relate to comparing elements to determine their order and swapping or exchanging elements to place them in order.