0% found this document useful (0 votes)
8 views2 pages

Ai Index

Uploaded by

Md Aman
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)
8 views2 pages

Ai Index

Uploaded by

Md Aman
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/ 2

Artificial Intelligence (01CE1702)

Lab Manual 24-25


Name : Md Aman
ER no. : 92100103291
Class : 7TC4-A

92100103291 |
Lab Program Signature Marks
1. Write a prolog Program to understand the concept of facts and queries.
2. Write a prolog program to implement the following:
a. Factorial of a given number
b. Fibonacci of a given number
3 Write a Prolog program to perform the following operations of the
list, i) To display the element of the given list, ii) To check given
element is in the list or not, iii) To print the last element of the list,
Iv) To print the sum of the elements of the given list.
4. Implement a Family Tree and define the following predicates:
1)parent(X,Y)
2) Father(X,Y)
3) Mother(X,Y)
4) Sister(X,Y)
5) Brother(X,Y)
6)Grandfather(X,Y)
7)Grandmother(X,Y)
5. Assume given a set of facts of the form father(name1,name2) (name1 is the
father of name2)
Define a predicate cousin(X,Y) which holds iff X and Y are cousins.
Define a predicate grandson(X,Y) which holds iff X is a grandson of Y.
Define a predicate descendent(X,Y) which holds iff X is a descendent of Y.
Define a predicate grandparent(X,Y) which holds iff X is a grandparent of Y.

Consider the following genealogical tree:


father(a,b).
father(a,c).
father(b,d).
father(b,e).
father(c,f).
Say which answers, and in which order, are generated by your definitions for
the following queries in Prolog:
?- cousin(X,Y).
?- grandson(X,Y).
?- descendent(X,Y).
?-grandparent(X,Y).
6. Write a program to solve Tower of Hanoi problem

7. Write a program to implement BFS for Water Jug problem/ 8 Puzzle problem
or any AI search problem
8. Write a program to implement DFS for Water Jug problem/ 8 Puzzle problem
or any AI search problem
9. Write a program to implement Single Player Game (Using Heuristic Function)
10 Write a program to Implement A* Algorithm.
11. Implement the Mini Max algorithm for game playing
12. Write a program to solve N-Queens problem
13 Develop an NLP application
14 Implement Library for visual representations of text data

92100103291 |

You might also like