15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

At fixed “temperature” T , state occupation probability reaches Boltzman distribution<br />

p(x) = αe E(x)<br />

kT<br />

T decreased slowly enough =⇒ always reach best state x ∗ because<br />

for small T .<br />

Is this necessarily an interesting guarantee?<br />

Local beam search<br />

c○: Michael Kohlhase 499<br />

Idea: Keep k states instead of 1; choose top k of all their successors<br />

e E(x∗ )<br />

kT<br />

e E(x)<br />

kT =e E(x∗ )−E(x)<br />

kT<br />

Not the same as k searches run in parallel!(Searches that find good states recruit other searches to join them)<br />

Problem: quite often, all k states end up on same local hill<br />

Idea: Choose k successors randomly, biased towards good ones.<br />

(Observe the close analogy to natural selection!)<br />

Genetic algorithms (very briefly)<br />

c○: Michael Kohlhase 500<br />

Idea: Use local beam search (keep a population of k) randomly modify population<br />

(mutation) generate successors from pairs of states (sexual reproduction) optimize a fitness<br />

function (survival of the fittest)<br />

<br />

Genetic algorithms (continued)<br />

c○: Michael Kohlhase 501<br />

Problem: Genetic Algorithms require states encoded as strings (GPs use programs)<br />

Crossover helps iff substrings are meaningful components<br />

Example 622 (Evolving 8 Queens)<br />

263<br />

≫ 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!