Home
Explore
Exams
Login
Get started
Home
math
math
0.0
(0)
Rate it
Studied by 0 people
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/29
There's no tags or description
Looks like no tags are added yet.
30 Terms
View all (30)
Star these 30
1
New cards
What is algorithmic complexity?
Measuring how efficiently an algorithm runs.
2
New cards
Why is algorithmic complexity important?
To compare algorithm speeds and ensure systems scale efficiently.
3
New cards
What two factors affect an algorithm's running time?
The algorithm being used and the input.
4
New cards
What is a time-complexity function?
A function that describes how long an algorithm takes to run.
5
New cards
What is Big-O notation?
A category used to describe and compare algorithm efficiency.
6
New cards
What is the first step in analyzing algorithmic complexity?
Find the time-complexity function.
7
New cards
What is the second step in analyzing algorithmic complexity?
Find the Big-O category.
8
New cards
What is the third step in analyzing algorithmic complexity?
Use Big-O categories to rank algorithms by speed.
9
New cards
What does Approximation One say?
Count only the most frequently executed operations.
10
New cards
What does Approximation Two say?
Count only the most time-consuming frequent operation.
11
New cards
What does Approximation Three say?
Analyze the worst-case scenario.
12
New cards
What is a worst-case scenario?
The situation where an algorithm takes the longest time to run.
13
New cards
What does Approximation Four say?
Assume the input is large.
14
New cards
What does Approximation Five say?
Do not distinguish time complexities that differ by a constant multiple.
15
New cards
When are two algorithms considered equally fast?
When their time-complexity functions belong to the same Big-O category.
16
New cards
What is a time-complexity function?
A function that measures the maximum number of dominant operations performed by an algorithm.
17
New cards
What is the notation for a time-complexity function?
f: N → N
18
New cards
What does f(n) represent?
The maximum number of dominant operations when the input size is n.
19
New cards
What does N represent?
The set of natural numbers.
20
New cards
What are dominant operations?
The most frequently executed and most time-consuming operations.
21
New cards
Which approximations are used to identify dominant operations?
Approximation One and Approximation Two.
22
New cards
What does Approximation One say?
Count only the most frequently executed operations.
23
New cards
What does Approximation Two say?
Count only the most time-consuming frequent operation.
24
New cards
What does the phrase maximum number mean?
Use the worst-case scenario.
25
New cards
Which approximation is used when finding the maximum number of operations?
Approximation Three.
26
New cards
What does Approximation Three say?
Analyze the worst-case scenario.
27
New cards
What does input of size n mean?
The size of the input depends on the exact algorithm.
28
New cards
Why do we use a time-complexity function?
To indirectly measure how long an algorithm takes to run.
29
New cards
What does n represent in f(n)?
The size of the input.
30
New cards
What does a time-complexity function count?
The maximum number of dominant operations performed by an algorithm.