Professional Documents
Culture Documents
Lectures Ho 03
Lectures Ho 03
http://web.mat.bham.ac.uk/S.Z.Nemeth
HO – p.1
Overview
HO – p.2
Classification of classic algorithms
HO – p.3
Algorithms on complete solutions
HO – p.4
Algorithms on complete solutions cont’d
Examples:
• exhaustive search
• local search
• hill-climbing
• gradient-based optimisation methods
HO – p.5
Algorithms on partial solutions
HO – p.7
Complete solution to a reduced problem
HO – p.8
Problems with partial solutions
HO – p.9
Choosing the representation
SAT:
Vectors of real numbers in the range [−1, 1]
xi ≥ 0 ⇒ T RU E
xi < 0 ⇒ F ALSE
NLP:
Binary strings of length kn, where each variable
xi ∈ [li , ui ] is encoded as a binary string of length k
Pk−1
(< bk−1 . . . b0 >)2 = ( j=0 bj × 2j )10 = x′
ui −li
xi = li + x′ × 2k −1
HO – p.10
Exhaustive search
HO – p.11
Exhaustive search cont’d
Evaluation function:
• 1 if the Boolean statement is satisfied
• 0 otherwise
HO – p.13
Partitioning the search space for SAT
Into a tree:
x1=0 x 1=1
x2=1 x 2=1
x2=0 x2=0
x3=1
x3=0
Depth-first search:
HO – p.15
Enumerating the TSP cont’d
But how can we deal with the situation when not all
pairs of cities are connected?
HO – p.16
Enumerating the NLP
Impractical
HO – p.18
Recommended reading
HO – p.19