Please enable JavaScript.
Coggle requires JavaScript to display documents.
M1 (Fundamentals of the analysis of algorithm efficiency, Brute-force,…
M1
-
Brute-force
-
-
Straightforward approach to solving a problem, usually directly based on the problem statement and definitions of the concepts involved
-
-
Binary search
-
-
Compares the search key with the array's middle element and continues to search recursively dividing the array in 2
Although it's based on a recursive idea, can be implemented as a nonrecursive algorithm
-
Sequential search
-
-
Improvement:
If the list is known to be sorted, the search can stop as soon as an element greater than or equal to the search key is found