Einführung in heuristische Suchverfahren - Universität Paderborn
Einführung in heuristische Suchverfahren - Universität Paderborn
Einführung in heuristische Suchverfahren - Universität Paderborn
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
<strong>E<strong>in</strong>führung</strong> Graphensuche Un<strong>in</strong>formierte Suche Informierte Suche<br />
Best-First-Search (BF)<br />
1 <strong>in</strong>sert(s,OPEN);<br />
2 loop<br />
3 if (OPEN=∅) then Return(’Failure’);<br />
4 n=m<strong>in</strong>(OPEN,f );<br />
5 remove(n,OPEN);<br />
6 push(n,CLOSED);<br />
7 forall the n ′ <strong>in</strong> successors(n) do<br />
8 set backpo<strong>in</strong>ter(n ′ ,n);<br />
9 if (⋆(n ′ )) then Return(n ′ );<br />
10 n ′ old = node eq state(n′ ,OPEN,CLOSED);<br />
=NULL) then<br />
11 if (n ′ old<br />
12 <strong>in</strong>sert(n ′ ,OPEN)<br />
13 else<br />
)) then<br />
14 if (f (n ′ ) < f (n ′ old<br />
15 <strong>in</strong>sert(n ′ ,OPEN);<br />
,OPEN)) then<br />
16 if (member(n ′ old<br />
17 remove(n ′ old ,OPEN)<br />
18 else remove(n ′ old ,CLOSED)<br />
<strong>E<strong>in</strong>führung</strong> <strong>in</strong> <strong>heuristische</strong> <strong>Suchverfahren</strong> Markus Eberl<strong>in</strong>g 32/44