0% found this document useful (0 votes)
40 views

Ajit Kumar AI Lab

This document contains an assignment on artificial intelligence and soft computing. It includes 3 questions - the first asks to write a Python program to check for prime numbers using logic programming. The second asks to write a Python program to parse a family tree and infer relationships between family members. The third asks to write a Python puzzle solver program. For each question, the assignment asks for the code and output.

Uploaded by

Ajit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Ajit Kumar AI Lab

This document contains an assignment on artificial intelligence and soft computing. It includes 3 questions - the first asks to write a Python program to check for prime numbers using logic programming. The second asks to write a Python program to parse a family tree and infer relationships between family members. The third asks to write a Python puzzle solver program. For each question, the assignment asks for the code and output.

Uploaded by

Ajit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

ASSIGNMENT – 1

ARTIFICIAL INTELLIGENCE & SOFT COMPUTING Laboratory

Subject Code :- PGCA1929

Submitted To:- Submitted By:-


Ms. Harmeet Mam Ajit Kumar
MCA III
Roll No. – 2111914

1
ASSIGNMENT – 1
Q1. Use logic programming in python to check for prime
numbers.
Code:-

Output:-

2
Q2. Use logic programming in python parse a family tree and
infer the relationships between the family members.
Code:-

3
Output:-

4
Q3. Python script for building a puzzle solver.
Code:-

5
Output:-

THE END

You might also like