[Tutor] Medical Decision-Making Question

R. Alan Monroe amonroe at columbus.rr.com
Tue Jun 14 04:52:20 CEST 2011


> a)  How's the best way to make it so I can have a user type in a list of
> symptoms and then have the computer tell the user the possible diseases that
> share those symptoms?

Good question. The first decent idea that came to mind was searching
through a cartesian join of all diseases & symptoms:
{ (disease1, symptom1),
  (disease1, symptom2),
  (disease2, symptom1),
  (disease2, symptom2) }

Searching for (flu, runny_nose) would not find anything (given the
sample data in your original message) so you could rule out flu.

Alan



More information about the Tutor mailing list