Search and algorithm analysis Flashcards
1
Q
Algorithms performance analysis-which criteria should be taken into account?
A
running time, memory footprint
2
Q
binary search
A
First checks middle element
If not found search only one half
Middle element > key, search first half
Middle element < key, seach second half