CS 2360 Assignment 4: Due Midnight Feb 13

The Simpson's Problem

For this program, you need to solve "the Simpson's problem" which I have been talking about in class. Below, there is a database of "facts" about the relationships in the Simpon's TV show. You should use these facts and a depth first search to construct your solution. You should try to make your solution as modular as possible, and use abstract data types where appropriate.

Requirements

Database

The following piece of code may be useful for your testing (although it is by no means complete): (setq simpsons-db (list (edge-construct 'lisa 'homer 'father) (edge-construct 'marge 'homer 'husband) (edge-construct 'homer 'marge 'wife) (edge-construct 'homer 'abraham 'father) (edge-construct 'bart 'homer 'father) (edge-construct 'homer 'bart 'son) (edge-construct 'homer 'lisa 'daughter) (edge-construct 'homer 'maggie 'daughter) (edge-construct 'marge 'bart 'son) (edge-construct 'marge 'lisa 'daughter) (edge-construct 'marge 'maggie 'daughter) (edge-construct 'lisa 'bart 'brother) (edge-construct 'bart 'lisa 'sister) (edge-construct 'maggie 'homer 'father) (edge-construct 'lisa 'marge 'mother) (edge-construct 'bart 'marge 'mother) (edge-construct 'maggie 'marge 'mother) (edge-construct 'snoball 'bart 'owner) (edge-construct 'bart 'snoball 'pet) (edge-construct 'santas-little-helper 'bart 'owner) (edge-construct 'flanders 'homer 'neighbor) (edge-construct 'flanders 'marge 'neighbor) (edge-construct 'homer 'flanders 'neighbor) (edge-construct 'marge 'flanders 'neighbor) (edge-construct 'homer 'mo 'bartender) (edge-construct 'homer 'barney 'drinking-buddy) (edge-construct 'barney 'homer 'drinking-buddy) (edge-construct 'smithers 'mr-burns 'boss) (edge-construct 'mr-burns 'smithers 'assistant) (edge-construct 'mr-burns 'homer 'employee) (edge-construct 'homer 'mr-burns 'boss) (edge-construct 'marge 'thelma 'sister) (edge-construct 'thelma 'marge 'sister) (edge-construct 'bart 'krusty 'hero) (edge-construct 'bart 'sideshow-bob 'enemy) (edge-construct 'sideshow-bob 'thelma 'wife) (edge-construct 'thelma 'sideshow-bob 'husband) (edge-construct 'milhouse 'bart 'friend) (edge-construct 'bart 'milhouse 'friend) ))

Assumptions

You may assume the following:

Grading


Back To The CS2360 Home Page
Ian Smith (iansmith@cc.gatech.edu)

Last Modified 7 Feb 95 by Ian Smith (iansmith@cc.gatech.edu)