Professional Documents
Culture Documents
Adil Ai Pract
Adil Ai Pract
Practical 1A
Aim: To implement depth first search algorithm.
Code:
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 1B
Aim: To implement breadth first search algorithm.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 2A
Aim: To simulate 4-Queen / N-Queen problem in python.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Practical 2B
Aim: To solve the Tower of Hanoi problem.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 3A
Aim: Write a program to implement alpha beta search.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 3B
Aim: Write a program for Hill climbing problem.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 5A
Aim: To solve the water jug problem in python.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 5B
Aim: To design the simulation of tic – tac – toe game using min-max
algorithm.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 6A
Aim: Write a program to solve Missionaries and Cannibals problem.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 6B
Aim: To design an application to simulate number puzzle problem.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 7A
Aim: To demonstrate a program for Shuffle Deck of cards.
Code:
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 7B
Aim: To solve traveling salesman problem using artificial intelligence
technique.
Code:
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 8A
Aim: To solve the block of World problem.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Practical 8B
Aim: To solve constraint satisfaction problem.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 9A
Aim: To derive the expressions based on Associative law.
Code:
Output:
Practical 9B
Aim: To derive the expressions based on Distributive law.
Code:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Output:
Name: Mohd Adil Haroon Qureshi Subject code: USIT504
Seat no: 310 Subject name: Artificial Intelligence
Practical 10
Aim: To write a program which contains three predicates: male,
female, parent. Make rules for following family relations: father,
mother, grandfather, grandmother, brother, sister, uncle, aunt,
nephew and niece, cousin.
Question:
i. Draw Family Tree.
ii. Define: Clauses, Facts, Predicates and Rules with conjunction and
disjunction
Code: