Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

im building an expert system with SWI-Prolog and it deal with disease/diagnostic %flu sympton(flu,cough). sympton(flu,sneeze). sympton(flu,stomach_ach). %hangover sympton(hangover,cough). sympton(hangover,feeling_dizzy). sympton(hangover,stomach_ach). how would you make so

im building an expert system with SWI-Prolog and it deal with disease/diagnostic

%flu

sympton(flu,cough).

sympton(flu,sneeze).

sympton(flu,stomach_ach).

%hangover

sympton(hangover,cough).

sympton(hangover,feeling_dizzy).

sympton(hangover,stomach_ach).

how would you make so that when ask for symptons like this

sympton:cough?yes.

sympton:sneeze?no.

sympton:cough? yes.

but you already answer yes how would you make it so that question doesnt repeat itself to me it seem like it backtracking but i dont want it to do that

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions