Big O notation Flashcards
What does the big O notaion measures ?
The increase in time complexity when increasing the n of an algorythm
What is the Mantissa problem
Its when memory cant store all the decimals of a number causing rounding errors
How is the performance of an algorythm measured ?
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
What are the 4 algorithymic Tecniques
- Dynamic Programming
- Divide and Conquer
- Greedy Algo
- Recursion
Explain what is dynamic programming
Uses a table ( catche ) to store intermidiate results
Divide and Conquer
Divide instabce of a problem into two or more instances of the same type. Solve smaller intances recursively. Solution = SUM/COMBINING smaller solutions
Greedy Algorythms
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