Búsqueda heurística. Ejercicio 3.
Búsqueda heurística. Ejercicio 3.
Búsqueda heurística. Ejercicio 3.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Búsqueda</strong> <strong>heurística</strong>.<br />
<strong>Ejercicio</strong> <strong>3.</strong><br />
1) Supongamos que tenemos D <strong>heurística</strong>s distintas, { } D<br />
hi i=<br />
1 todas ellas admisibles.<br />
Demostrar (se evalúa sobre todo el razonamiento) si son admisibles las siguientes<br />
<strong>heurística</strong>s definidas para cada nodo n como:<br />
min ( n);<br />
i = 1,...,<br />
D<br />
i. { }<br />
D<br />
h i<br />
ii. ∑ hi<br />
( n)<br />
i=<br />
1<br />
iii.<br />
D 1<br />
∑ hi<br />
( n)<br />
D i=<br />
1<br />
max ( n);<br />
i = 1,...,<br />
D<br />
iv. { }<br />
D<br />
h i<br />
v. ∏ hi<br />
( n)<br />
i=<br />
1<br />
vi.<br />
D<br />
1/<br />
D<br />
⎛ ⎞<br />
⎜∏=<br />
hi<br />
( n)<br />
⎟ (media geométrica)<br />
⎝ i 1 ⎠<br />
2) Consideremos el problema de búsqueda en un espacio con estados A, B, C, D, E.<br />
Las acciones posibles en este espacio son:<br />
origen destino Coste<br />
A B 3<br />
A C 2<br />
B C 5<br />
B D 3<br />
C D 5<br />
C B 1<br />
C E 11<br />
D E 5<br />
E B 8<br />
Consideremos las <strong>heurística</strong>s<br />
nodo h1 (nodo)<br />
A 8<br />
B 6<br />
C 6<br />
D 4<br />
E 0<br />
Se pide:<br />
a) ¿El algoritmo A* es óptimo con h1?<br />
b) ¿El algoritmo A* es óptimo con h2?<br />
c) ¿Son admisibles las siguientes <strong>heurística</strong>s para cada nodo n?<br />
i. h1(n)<br />
ii. h2(n)<br />
iii. min(h1(n) , h2(n))<br />
iv. h1 (n)+ h2(n)<br />
v. (h1 (n)+ h2(n))/2<br />
vi. max(h1(n) , h2(n))<br />
vii. h1 (n) ⋅ h2(n)<br />
viii. (h1 (n) ⋅ h2(n)) 1/2<br />
nodo h2 (nodo)<br />
A 7<br />
B 8<br />
C 5<br />
D 5<br />
E 0
d) ¿De entre las <strong>heurística</strong>s admisibles, hay alguna dominante?