Search and algorithm analysis Flashcards

1
Q

Algorithms performance analysis-which criteria should be taken into account?

A

running time, memory footprint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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