WEEK 3 Time Complexity and Asymptotic Notation

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

1/15

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to time complexity and algorithms from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

Time Complexity

A computational metric that describes the amount of time an algorithm takes to complete as a function of the length of the input.

2
New cards

Asymptotic Notation

Mathematical notation used to describe the limiting behavior of a function, particularly in the context of algorithms.

3
New cards

Selection Sort

A sorting algorithm that repeatedly finds the smallest element from the unsorted portion and moves it to the front.

4
New cards

Binary Search

An efficient algorithm for finding an item from a sorted list that repeatedly divides the search interval in half.

5
New cards

Big-Oh Notation

A mathematical notation used to describe the upper bound of an algorithm's running time in terms of input size.

6
New cards

Primitive Operations

Basic operations such as comparisons or swaps that are counted when analyzing the time complexity of an algorithm.

7
New cards

O(n^2)

Big-Oh notation indicating that the time complexity grows quadratically as the input size increases.

8
New cards

O(log n)

Big-Oh notation indicating that the time complexity grows logarithmically as the input size increases.

9
New cards

Polynominal Time

An algorithm is said to run in polynomial time if the number of steps required is O(n^k) for some non-negative integer k.

10
New cards

NP-Complete Problems

A class of problems for which no known polynomial-time algorithms exist, but any proposed solutions can be verified quickly.

11
New cards

P vs NP Problem

An unsolved question in computer science asking whether every problem whose solution can be quickly verified can also be quickly solved.

12
New cards

Exhaustive Search

A brute-force approach that checks all possible solutions until the correct one is found, typically inefficient for large inputs.

13
New cards

Non-Computable Problems

Problems that cannot be solved by any algorithm on a computer.

14
New cards

Computable Problems

Problems that can be solved using a computer algorithm.

15
New cards

Recursive Algorithm

An algorithm that solves a problem by solving smaller instances of the same problem.

16
New cards

Algorithmic Complexity

A measure of the amount of resources (like time and space) that an algorithm requires to process data.