Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!pipex!bt!btnet!uknet!cf-cm!cf.ac.uk!SPE4HH
From: SPE4HH@cf.ac.uk
Subject: problem?????
Message-ID: <SPE4HH.7.00161C12@cf.ac.uk>
Lines: 10
Sender: SPE4HH@cf.ac.uk
Nntp-Posting-Host: d149.elsy.cf.ac.uk
Organization: University of Wales College of Cardiff, Cardiff, WALES, UK.
X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
Date: Sat, 21 Jan 1995 22:06:25

hi, does anyone know how to solve this prolog problem???
Q) There is a set of 5 terminals.You are to provide a data file, 5x5 of 0s and 
1s representing information about electrical connections such that 1 in row i 
and column j shows that terminal i is directly connected to terminal j; each 
terminal is treated as being directly connected to itself. Write a set of 
predicates which, given the number of any terminal lists the terminal to which 
it is connected, either directly or indirectly.The program must work for any 
data file in the correct format.

thx in anticipation
