Local Search - Brute Force Search

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

Chapter 3

LOCAL SEARCH – BRUTE FORCE SEARCH


 We just iterate through the given interval and do a brute-force
maximum/minimum find
 O(N) time complexity
 We examine all possible solutions: it can be very slow
 BUT always find the optimal solution
f(x)

x
f(x)

x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

dx
x
-5 20
f(x)

This is the maximum!

dx
x
-5 20

You might also like