Sorting Algorithms Overview

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

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover key terms and concepts related to basic sorting algorithms, including bubble sort, selection sort, and insertion sort, as well as their efficiencies and characteristics.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Bubble Sort

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

2
New cards

Selection Sort

A sorting algorithm that divides the input into a sorted and an unsorted region, repeatedly selecting the smallest element from the unsorted region and moving it to the sorted region.

3
New cards

Insertion Sort

A sorting algorithm that builds a sorted array one element at a time, by comparing and inserting elements into their correct position.

4
New cards

O(N²) Time Complexity

A classification of algorithms whose performance will degrade quadratically with the increase in input size, typical of algorithms like bubble sort, selection sort.

5
New cards

Comparisons

The number of times two items in the sorting algorithms are compared to determine their order.

6
New cards

Swaps

The number of times two items in the sorting algorithms are exchanged to place them in the correct order.

7
New cards

Partially Sorted

A state where a portion of the data is sorted, as seen in insertion sort, where only the items to the left of a marker are sorted.

8
New cards

Big O Notation

A mathematical notation used to describe the upper bound of the running time of an algorithm, which helps classify algorithms based on their performance.

9
New cards

N-1 Comparisons

The maximum number of comparisons made during the first pass of sorting algorithms when processing N items.

10
New cards

Quicksort

An advanced sorting algorithm that uses divide-and-conquer principles to efficiently sort data.

Explore top flashcards

Medical terma quiz 4
Updated 409d ago
flashcards Flashcards (44)
Skull
Updated 5h ago
flashcards Flashcards (47)
Integrals
Updated 665d ago
flashcards Flashcards (41)
Ch13-14 Civics
Updated 1034d ago
flashcards Flashcards (45)
List 35
Updated 1098d ago
flashcards Flashcards (35)
Medical terma quiz 4
Updated 409d ago
flashcards Flashcards (44)
Skull
Updated 5h ago
flashcards Flashcards (47)
Integrals
Updated 665d ago
flashcards Flashcards (41)
Ch13-14 Civics
Updated 1034d ago
flashcards Flashcards (45)
List 35
Updated 1098d ago
flashcards Flashcards (35)