Big O Notation and Time Complexity

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

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts and terms related to Big O notation and time complexities, providing definitions to aid in understanding and memorization.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

O(1)

Constant time complexity; the operation executes in a constant amount of time regardless of input size.

2
New cards

O(n)

Linear time complexity; execution time grows linearly with the input size.

3
New cards

O(n^2)

Quadratic time complexity; the execution time increases proportionally to the square of the number of inputs.

4
New cards

O(log n)

Logarithmic time complexity; execution time grows logarithmically as the input size increases.

5
New cards

Logarithm

The exponent by which a base must be raised to produce a given number.

6
New cards

Binary Search

An example of O(log n) time complexity; it finds an item in a sorted array by repeatedly dividing the search interval in half.

7
New cards

Input Size

The amount of data being processed, which can fundamentally affect the execution time of an algorithm.

8
New cards

Time Complexity

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

9
New cards

Space Complexity

A measure of the amount of working storage an algorithm needs.

10
New cards

Common Logarithms

Logarithms with base 10, often written simply as log.