Prolog - EJERCICIOS PROPUESTOS
-
Upload
michael-se -
Category
Documents
-
view
52 -
download
1
Transcript of Prolog - EJERCICIOS PROPUESTOS
![Page 1: Prolog - EJERCICIOS PROPUESTOS](https://reader036.fdocuments.net/reader036/viewer/2022082319/55cf98a1550346d03398c721/html5/thumbnails/1.jpg)
EJERCICIO 1: BASE DE CONOCIMIENTO SOBRE QUE PRODUCTOS PUEDEN COMPRAR UNA PERSONA
La consulta que se realiza es: ¿Qué producto puede comprar alguna persona?
EJERCICO 2: PROGRAMA QUE REPRESENTA LA ASOCIACIÓN DE LOS MIEMBROS DE UNA FAMILIA
La figura muestra la asociación de los miembros en una familia a través de una red asociativa.
EJERCICIO 3: PROGRAMA QUE REPRESENTA LA DISPOSICIÓN DE UN SISTEMA DE BLOQUES
La figura muestra la disposición de un sistema de bloques sobre una mesa.
¿A dónde se puede mover algún bloque?
![Page 2: Prolog - EJERCICIOS PROPUESTOS](https://reader036.fdocuments.net/reader036/viewer/2022082319/55cf98a1550346d03398c721/html5/thumbnails/2.jpg)
EJECICIO 4: PROGRAMA PARA OBTENER LAS ASIGNACIONES DE REGALOS ACEPTABLES POR 6 PERSONAS.
Tenemos 4 regalos (coche, casa, viaje, barco) a repartir entre 6 personas (Pepe, Juan,Rafael, Ana, Concha, Eva). Entre los 6, hay parejas que son incompatibles y nunca aceptarían tener el mismo regalo. La lista de parejas incompatibles es la siguiente:
Pepe es incompatible con las otras 5 personas Juan es incompatible con Rafael, Ana y Concha Rafael es incompatible con Concha y EvaAna es incompatible con ConchaConcha es incompatible con EvaEscribir un programa PROLOG y el objetivo adecuado para obtener las asignaciones de regalos aceptables por las 6 personas.