0% found this document useful (0 votes)
4 views1 page

Ai Lab

LAB

Uploaded by

netajeebehera787
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Ai Lab

LAB

Uploaded by

netajeebehera787
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

AI LAB

1.Introduction logic Program relation is a computation.


2.Process of Free download of SWI-prolog and installation testing a
simple program in SWI-prolog.JNU prolog download installation.
3.Introduction to PROLOG FACTS, RULES AND CLAUCES.
4.Write a simple Prolog program consisting of facts and rules
Overlap of set using member predicate.
5.Write a prolog program define the relation for the following an
element in set sibling,sister,Grandson,descendent and other family
member.
6.Write a prolog program to solve the monkey banana Problem.
7.Write a prolog program for list to determine the Following :
1. Member checking of a list.
2. Length calculation of a list.
3. Third element of a list.
4. Last element of a list.
5. All element except last of a list
6. Concatenation of a list.
7. Sublist of a list.
8. Append of a list.
9. Two & Three copies of sublist in a list.
8.Write a prolog program for list to determine the Following :
1. Inserting an element at the beginning of a list.
2. Inserting an element at the end of a list.
3. Deleting the first element of a list.
4. Deleting the last element of a list.
5. Equal of two lists.
6. Reverse of a list.
7. Palindrome check of a list.
8. Prefix & suffix of a list.
9.Write a prolog program to calculate the factorial of a given number.
10.Write a prolog program to calculate the GCD of given two
Positive numbers.
11.Write a prolog program to check given list is sorted or not.
12.Write a prolog program to sorted a given list by using quick sort.
13.Write a prolog program to sorted a given list by using merge sort.
14.Write a prolog program to calculate the power of given numbers.
15.Write a prolog program to solve 4 - Queen problem.
16.Write a prolog program to solve 8 - Queen problem.
17.Write a prolog program to solve Tower of Hanoi puzzle.
18.Write a prolog program to solve 3 Litre & 4 Litre Water Jug problem.
19.Write a prolog program to solve 8 puzzle problem.
20.Write a prolog program to solve Missionaries and Cannibals
Problem.

You might also like