Big O notation Flashcards

1
Q

What does the big O notaion measures ?

A

The increase in time complexity when increasing the n of an algorythm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the Mantissa problem

A

Its when memory cant store all the decimals of a number causing rounding errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is the performance of an algorythm measured ?

A

Not by running time. But by the number of basic operations needed to solve the problem.
Typically the number of data points ( n ). The time can be used to measure big 8 bu the increase in time from increase in n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 4 algorithymic Tecniques

A
  • Dynamic Programming
  • Divide and Conquer
  • Greedy Algo
  • Recursion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain what is dynamic programming

A

Uses a table ( catche ) to store intermidiate results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Divide and Conquer

A

Divide instabce of a problem into two or more instances of the same type. Solve smaller intances recursively. Solution = SUM/COMBINING smaller solutions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Greedy Algorythms

A

being greedy at the beggining:

  • first solve for the best IMMIDIATE one ( without caring for optimization )
  • Hope that choosing a local optimum at each step, it will result at a global optimum
How well did you know this?
1
Not at all
2
3
4
5
Perfectly