Fundamentals of algorithms

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

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

18 Terms

1
New cards

what is Pseudocode

notation used to describe what an algorithm does

2
New cards

what does an input and output algorithm look like

knowt flashcard image
3
New cards

what does an assignment algorithm look like

knowt flashcard image
4
New cards

what does an If statement algorithm look like

knowt flashcard image
5
New cards

what does an for loop  algorithm look like

knowt flashcard image
6
New cards

what does an while loop  algorithm look like

knowt flashcard image
7
New cards

O(1) Constant time

operation takes the same amount of time regardless of input size

8
New cards

O(log(n)) Logarithmic time 

Time grows logarithmically with input size

9
New cards

O(n) Linear time

time grows proportionally to input size

10
New cards

O(n log(n)) Quasilinear time

Time grows slightly faster than linear 

11
New cards

O(n²) Quadratic time

Time grows quadratical with input size

12
New cards

O(n³) Cubic time

Time grows cubically with input size

13
New cards

O(2n) Exponential time

Time grows exponentially with input size

14
New cards

P(polynomial) 

time complexity is expressed as O(n^k)

15
New cards

for P(polynomial) what is the input size and constant

n is the input size and k is a constant

16
New cards

NP(Non-deterministic Polynomial)

if solution exists correctness can be verified in polynomial time

17
New cards

when is a problem considered NP-Hard

if all NP problems can be reduced to it in polynomial time

18
New cards

NP complete