You are on page 1of 3

Artificial Intelligence

BSIT-6A
Department of Computer Science
Bahria University, Lahore Campus

Assignment No 1
Date: 27-03-2023, Total marks = 10
Name: M. Amir Roll No: 03-135202-008
CLOs
CLO1: Understand key components in the field of artificial intelligence
CLO2 Implement classical artificial intelligence techniques
CLO3: Appraise real world problems for machine learning based solutions

CLO4: Apply knowledge representation and inference techniques for practical problem solving.
Instructions:

I. Upload your assignment on LMS in PDF format only

II. Must submit hard copy on the due date in class

II. Copied assignments will be marked zero

Q#1 [CLO1: 5 MARKS]


Consider a chat bot (e.g chatgpt4), Explore Features and limitations, Technology involved also describe
its competitors. Install its application attach screenshots.

Features
1. Better Natural Language Processing resulting in the improved interpretation of customer
queries.
2. Improved conversational accuracy for more natural and engaging customer interactions.
3. Increased conversational flow and analysis leading to an improved ratio of appropriate
customer query responses.

Limitations

1. Confidentiality is one of the major limitations of ChatGPT4. The model trains itself on internet
data and user input, which means that there is no guarantee that inputs will not be reproduced
elsewhere in the world. Employees should avoid inputting personal or commercially sensitive
data to avoid any risks of litigation.
2. Another limitation of ChatGPT4 is its tendency to produce inaccurate or wrong information.
While it is a powerful tool, it can also produce erroneous material that can be mixed with
plausible or generally known facts. High-trust tasks in HR and the legal world should be kept
away from ChatGPT4's language capabilities unless it is used as a first draft before it is passed
onto legal teams for review.

Screenshot

Q#2 [CLO1: 5 MARKS]


Consider the following problem: A Water Jug Problem: You are given two jugs, a 4-gallon one and a 3-
gallon one, a pump which has unlimited water which you can use to fill the jug, and the ground on which
water may be poured. Neither jug has any measuring markings on it. How can you get exactly 2 gallons
of water in the 4-gallon jug?
The state space for this problem can be described as of ordered pairs of integers (x, y) , such that
x=0,1,2,3 or 4 and y=0,1,2 or 3 , represents the number of gallons of water in the 4- gallon jug , and y
represents the quantity of water in the 3- gallon jug . The start state is (0,0) .
Initial state: (0,0)
Goal state: (2,n)
Define the Operators and also draw the state space Tree

Operators
Step 1: - First we will fill the 4-liter jug completely with water.
Step 2: - Then optimal approach would be to empty water from a 4-liter jug into a 3-liter (leaving 1L
water in a 4L jug and 3L completely full). Hence, we got 1L of water.
Step 3: - Now, Empty the water from 3L.
Step 4: - Pour the water from the 4L jug into the 3L jug. Now the 4L container is completely empty and
1L water is present in the 3L liter jug.
Step 5: - Fill the 4L jug with water completely again.
Step 6: - On transferring water from a 4L jug to a 3L jug, we will get 2L water in a 4L jug which was our
required quantity.

State Space Tree

You might also like