WGU C949 - Big O Notation FREQUENTLY TESTED QUESTIONS WITH CORRECT ANSWERS | BRAND NEW!

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

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:36 PM on 6/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

30 Terms

1
New cards

O(1) - Constant Time

Definition: The algorithm takes the same amount of time regardless of the input size.

Characteristics: No loops or recursion, only a few basic operations.

Spotting in Pseudocode: Look for code that performs a fixed number of operations, regardless of input size.

2
New cards

O(1) - Constant Time

knowt flashcard image
3
New cards

O(log n) - Logarithmic Time

Definition: The algorithm reduces the problem size by a constant factor each step.

Characteristics: Typically involves divide-and-conquer or binary search.

Spotting in Pseudocode: Look for algorithms that repeatedly halve the problem size, such as binary search.

4
New cards

O(log n) - Logarithmic Time

knowt flashcard image
5
New cards

O(n) - Linear Time

Definition: The algorithm's running time increases linearly with the input size.

Characteristics: Single loops that iterate through all elements.

Spotting in Pseudocode: Look for single loops that iterate through the entire input.

Algorithms with this Complexity: Bucket, Radix

6
New cards

O(n) - Linear Time

knowt flashcard image
7
New cards

O(n log n) - Linearithmic Time

Definition: The algorithm involves a combination of linear and logarithmic time.

Characteristics: Often found in efficient sorting algorithms like merge sort and quicksort.

Spotting in Pseudocode: Look for divide-and-conquer algorithms that split the input into smaller parts, solve them recursively, and merge the results.

Algorithms with this Complexity: Quicksort, Heapsort, Mergesort

8
New cards

O(n log n) - Linearithmic Time

knowt flashcard image
9
New cards

O(n^2) - Quadratic Time

Definition: The algorithm's running time is proportional to the square of the input size.

Characteristics: Typically involves nested loops, each iterating through the input.

Spotting in Pseudocode: Look for nested loops where each loop iterates through the input.

Algorithms with this Complexity: Bubble, Selection, Insertion

10
New cards

O(n^2) - Quadratic Time

knowt flashcard image
11
New cards

O(2n) - Exponential Time

Definition: The algorithm's running time doubles with each additional element in the input.

Characteristics: Commonly found in recursive algorithms that solve problems by solving all subproblems.

Spotting in Pseudocode: Look for recursive algorithms where the problem size decreases by a small amount in each recursive call, and there are multiple recursive calls.

12
New cards

O(2n) - Exponential Time

knowt flashcard image
13
New cards

O(n!) - Factorial Time

Definition: The algorithm's running time is proportional to the factorial of the input size.

Characteristics: Often found in algorithms that generate all permutations of the input.

Spotting in Pseudocode: Look for algorithms that involve generating all possible permutations or combinations of the input.

14
New cards

O(n!) - Factorial Time

knowt flashcard image
15
New cards

Bubble Sort

The simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order.

Average/Typical: O(n^2)

Big-O/Worse: O(n^2)

16
New cards

Selection Sort

A simple and efficient sorting algorithm that works by repeatedly selecting the smallest (or largest) element from the unsorted portion of the list and moving it to the sorted portion of the list.

Average/Typical: O(n^2)

Big-O/Worse: O(n^2)

17
New cards

Insertion Sort

A simple sorting algorithm that works by iteratively inserting each element of an unsorted list into its correct position in a sorted portion of the list.

Average/Typical: O(n^2)

Big-O/Worse: O(n^2)

18
New cards

Quicksort

A sorting algorithm based on the Divide and Conquer algorithm that picks an element as a pivot and partitions the given array around the picked pivot by placing the pivot in its correct position in the sorted array.

Average/Typical: O(n log n)

Big-O/Worse: O(n^2)

19
New cards

Bucket Sort

A sorting technique that involves dividing elements into various groups, or buckets.

Average/Typical: O(n)

Big-O/Worse: O(n^2)

20
New cards

Heapsort

A comparison-based sorting technique based on Binary Heap data structure.

Average/Typical: O(n log n)

Big-O/Worse: O(n log n)

21
New cards

Mergesort

A sorting algorithm that follows the divide-and-conquer approach. It works by recursively dividing the input array into smaller subarrays and sorting those subarrays then merging them back together to obtain the sorted array.

Average/Typical: O(n log n)

Big-O/Worse: O(n log n)

22
New cards

Radix Sort

A linear sorting algorithm that sorts elements by processing them digit by digit. It is an efficient sorting algorithm for integers or strings with fixed-size keys.

Average/Typical: O(n)

Big-O/Worse: O(n)

23
New cards

Bubble Sort

knowt flashcard image
24
New cards

Selection Sort

knowt flashcard image
25
New cards

Insertion Sort

knowt flashcard image
26
New cards

Quicksort

knowt flashcard image
27
New cards

Bucket Sort

knowt flashcard image
28
New cards

Heapsort

knowt flashcard image
29
New cards

Mergesort

knowt flashcard image
30
New cards

Radix Sort

knowt flashcard image