Module 5: Sorting Algorithms

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

Sorting Algorithm

An algorithm that puts elements of a list in a certain order, typically numerical or lexicographical.

2
New cards

Nondecreasing Order

An order of elements where each element is no smaller than the previous one according to total order.

3
New cards

Permutation

A reordering of elements that retains all original elements.

4
New cards

Time Complexity

The running time describing how many operations an algorithm must carry out to complete.

5
New cards

Space Complexity

The memory space required to run a particular algorithm.

6
New cards

Bubble Sort

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

7
New cards

Selection Sort

An in-place comparison-based algorithm that divides the list into sorted and unsorted parts and repeatedly selects the smallest element.

8
New cards

Insertion Sort

An in-place comparison-based algorithm that maintains a sorted sub-list and inserts unsorted elements into their correct position.

9
New cards

Shell Sort

An efficient sorting algorithm based on insertion sort with improved performance using gaps.

10
New cards

Merge Sort

A Divide and Conquer algorithm that divides the input array into two halves, sorts them, and then merges the sorted halves.

11
New cards

Heap Sort

A comparison-based sorting technique based on Binary Heap data structure that sorts elements by repeatedly finding the maximum.

12
New cards

Stable Sort

A sorting algorithm that maintains the relative order of equal elements in the sorted output.

13
New cards

Counting Sort

An integer sort algorithm that counts the number of occurrences of each unique element in the input.

14
New cards

Average Case Complexity

The expected running time of an algorithm averaged over all possible inputs.

15
New cards

Worst Case Complexity

The maximum running time of an algorithm under the worst possible scenario of inputs.

16
New cards

Interval (Gap)

The distance between elements compared in Shell sort, determining how far apart elements are.

17
New cards

Max Heap

A binary heap where the value of a parent node is greater than or equal to that of its children.

18
New cards

Min Heap

A binary heap where the value of a parent node is less than or equal to that of its children.

19
New cards

Complete Binary Tree

A binary tree where every level, except possibly the last, is completely filled.

20
New cards

Heuristic

A technique designed to solve a problem faster than classic methods, often by trading optimality, completeness, or precision for speed.

21
New cards

Canonicalizing Data

The process of converting data into a standard or canonical form.