Solve simple Task

진행중 등록 시간: 2년 전 착불
진행중 착불

The following facts and rules are known about four locations a, b, c, and d:

Facts: In a it is snowing. In b, it is raining.

Rules:

- If it is raining or snowing in a place, then there is precipitation in that place.

- If it is snowing in a and there is precipitation in c, then it is snowing in b.

- If there is precipitation in a and in b, then it snows in c.

- If there is rain in a and snow in b, then there is precipitation in c.

- If it snows in a and in b, then it rains in d.

- If it rains in a and in b and there is also precipitation in c, then it snows in

in d.

- If there is precipitation in a and rain in both c and d, then it

it rains in a.

a) Analyze the above representation first without prologue and argue

the given facts and rules, in which of the places a, b, c and d there is precipitation.

precipitation exists.

b) Now model the above scenario as a Prolog knowledge base with pr¨adicates rain, snow and precip.

c) Use Prolog to determine all locations with the query ?-precip(Place),

where there is precipitation. What answers do you get if you instruct Prolog with ;

to determine all valid results for this query? Compare ¨

the return values with your own reasoning from subtask (a). ¨

d) Execute the Prolog solution strategy again by hand for the query ¨

question ?-precip(Place). to find out why Prolog does not find all your results.

results. Describe the reason briefly in a few words.

프롤로그 소프트웨어 개발

프로젝트 ID: #32085094

프로젝트 소개

1건(제안서) 재택 근무형 프로젝트 서비스 이용 중: 2년 전

이 프로젝트의 입찰 현황은 다음과 같습니다. 입찰자: 1명, 평균 입찰가: €30

mohamedelashry77

Hello, I am interested in logic programming. I have been programming in Prolog for over 3 yrs. I have implemented many projects and done a lot of tasks. I have implemented an AI logic agent using Prolog. Also, I used 기타

€30 EUR (2일 이내)
(2 리뷰)
1.8