22.02.2013 Views

Temas de “Programación lógica e I.A.”

Temas de “Programación lógica e I.A.”

Temas de “Programación lógica e I.A.”

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PD Tema 4: Resolución <strong>de</strong> problemas <strong>de</strong> espacios <strong>de</strong> estados<br />

Procedimientos <strong>de</strong> búsqueda en espacios <strong>de</strong> estados<br />

Búsqueda en profundidad sin ciclos<br />

Procedimiento <strong>de</strong> búsqueda en profundidad sin ciclos<br />

������������������������� ��<br />

������������������<br />

����������������������������<br />

����������������������������� ��<br />

����������������<br />

�������������������������������� ��<br />

��������������<br />

������������������������������<br />

PD Tema 4: Resolución <strong>de</strong> problemas <strong>de</strong> espacios <strong>de</strong> estados<br />

Procedimientos <strong>de</strong> búsqueda en espacios <strong>de</strong> estados<br />

Búsqueda en profundidad sin ciclos<br />

El problema <strong>de</strong> las 4 reinas<br />

Programación <strong>lógica</strong> e I.A. 83<br />

◮ Enunciado: Colocar 4 reinas en un tablero rectangular <strong>de</strong><br />

dimensiones 4 por 4 <strong>de</strong> forma que no se encuentren más <strong>de</strong> una<br />

en la misma línea: horizontal, vertical o diagonal.<br />

◮ Estados: listas <strong>de</strong> números que representa las or<strong>de</strong>nadas <strong>de</strong> las<br />

reinas colocadas. Por ejemplo, [3,1] representa que se ha<br />

colocado las reinas (1,1) y (2,3).<br />

11 / 48<br />

12 / 48

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

Saved successfully!

Ooh no, something went wrong!