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

AI Midterm Paper

Uploaded by

Shayan Aamir
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)
153 views2 pages

AI Midterm Paper

Uploaded by

Shayan Aamir
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

Undergraduate Mid-Term Examinations: Fall 2023

Sir Syed University of Engineering & Technology


Faculty of Computing and Applied Sciences
Department of Software Engineering
Mid Term Examinations (Fall 2023)
Course Code with BS in Software
SE-314T: Artificial Intelligence Program
Title Engineering
Dr. Muhammad Naseem, Ms. Farheen Qazi,
Instructor Semester 5th
Ms. Zainab Zakir
Start date & Time December 11, 2023 End Time 1:00 PM
at 11:30 AM
Maximum Marks 30

Q.No.1 (CLO_1): (C2: Understand) (PLO_2: Knowledge for Solving Computing Problems) (08 Marks)
(a) Suppose a university wants to implement an automated system to assist students in
selecting their courses based on their academic history, preferences, and career goals. The
system needs to make personalized recommendations while also continuously learning and
adapting to changes. Among all five types of agent, what kind of agent this system is?
Q.No.1
Select one which is more appropriate according to the given scenario. Briefly explain
and justify your answer. (02 Marks)

(b) Suppose a restaurant is looking to implement an AI system to take customer orders, provide
menu recommendations based on dietary preferences, and personalize the dining
experience. The system must understand customer inquiries and preferences while
optimizing the restaurant's menu offerings and sales. Which type of AI approach - acting
humanly, acting rationally, thinking humanly, or thinking rationally. Briefly explain
which would be most appropriate for this scenario? (02 Marks)

(c) Describe PEAS and Properties of Environment for “Medical Diagnostic System”.
(04 Marks)

Q.No.3 (CLO_3): (C3: Applying) (PLO_3: Problem Analysis) (08 Marks)


To apply the Q-Learning algorithm, assume that the agent steps through the state space in
the order of steps given in the Figure 1. In this diagram the right grid represents those states
where there is a treasure in the bottom-right position (Goal (S4) state has +100 reward) and
the states on the top-left represent State (S2) has -100 reward. You can assume that this is the
Q.No.1
first time the robot has visited any of these states. All Q-values are initialized to zero. Assume
that the learning rate is 0.9.

S1 S2
-100

S3 S4
Start +100

Figure 1

SSUET Page 1 of 2
Undergraduate Mid-Term Examinations: Fall 2023

Sir Syed University of Engineering & Technology


Faculty of Computing and Applied Sciences
Department of Software Engineering
Mid Term Examinations (Fall 2023)
Course Code with BS in Software
SE-314T: Artificial Intelligence Program
Title Engineering
Dr. Muhammad Naseem, Ms. Farheen Qazi,
Instructor Semester 5th
Ms. Zainab Zakir
Start date & Time December 11, 2023 End Time 1:00 PM
at 11:30 AM
Maximum Marks 30

Q.No.3 (CLO_3): (C3: Applying) (PLO_3: Problem Analysis) (07 Marks)


Assume that the number of clusters (k=3). Apply k-means clustering to cluster the following
set of data: P1(0, 2), P2(5, 0), P3(7, 3), P4(0, 5), P5(3, 1). Use Euclidean distance measure for
the distance calculation.
Initial cluster centers are: P1, P2 and P3.
Q.No.1
Q.No.3 (CLO_3): (C3: Applying) (PLO_3: Problem Analysis) (07 Marks)
The given dataset contains examples of the different conditions that are associated with
accidents. The target variable accident is a binary categorical variable with yes/no values. There are 4
categorical features: weather condition, road condition, traffic condition, and engine problem. The
target class associated with each of the features are listed below:
Q.No.1 S. Weather Road Traffic Engine Accident
No. Condition Condition Condition Problem
1 Rain Bad High No Yes
2 Snow Average Normal Yes Yes
3 Clear Bad Light No No
4 Clear Good Light Yes Yes
5 Snow Good Normal No No
6 Rain Average Light No No
7 Rain Good Normal No No
8 Snow Bad High No Yes
9 Clear Good High Yes No
10 Clear Bad High Yes Yes
Use the above training set to train the model by applying Naïve Bayes algorithm, to identify
class variable for the column “Accident or not” (i.e. either Yes or No). Explain your answer.
To confirm the accuracy of your designed model, check the following test cases:
Weather Road Traffic Engine Accident
Condition Condition Condition Problem
Clear Average High No ?

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
“Our intelligence is what makes us human and Artificial Intelligence is an extension of that quality”
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

SSUET Page 2 of 2

You might also like