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

week2

The document provides answers to the Week 2 assignments for the course 'An Introduction to Artificial Intelligence'. It includes various questions related to search algorithms, state representations, and problem-solving techniques, along with their respective answers. The content is structured to assist students in understanding key concepts in artificial intelligence and is part of a larger series of weekly assignments.

Uploaded by

Galaxy M20
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

week2

The document provides answers to the Week 2 assignments for the course 'An Introduction to Artificial Intelligence'. It includes various questions related to search algorithms, state representations, and problem-solving techniques, along with their respective answers. The content is structured to assist students in understanding key concepts in artificial intelligence and is part of a larger series of weekly assignments.

Uploaded by

Galaxy M20
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Home / Nptel Assignment Answers 2025 / An Introduction to Artificial Intelligence / An Introduction to Artificial Intelligence | Week 2 How can we help

lp you? 

Related
An Introduction to
NPTEL ASSIGNMENT ANSWERS 2025
Artificial Intelligence |
An Introduction to Artificial Intelligence
Week 2
 13

 An Introduction to Artificial Intelligence | Week 12

 An Introduction to Artificial Intelligence | Week 11


Session: JAN-APR 2024
 An Introduction to Artificial Intelligence | Week 10 Course name: Leadership and Team Effectiveness
 An Introduction to Artificial Intelligence | Week 9 Course Link: Click Here
 An Introduction to Artificial Intelligence | Week 8
For answers or latest updates join our telegram channel:
 An Introduction to Artificial Intelligence | Week 7 Click here to join

 An Introduction to Artificial Intelligence | Week 6 These are An Introduction to Artificial Intelligence


Answers Week 2
 An Introduction to Artificial Intelligence | Week 5

 An Introduction to Artificial Intelligence | Week 4


Q1. Consider the Vacuum World Illustration as
 An Introduction to Artificial Intelligence | Week 3
covered in the videos. Assume that now there are 3
An Introduction to Programming Through C++
rooms and 2 Roombas (autonomous robotic
 7
vacuum cleaners). Each room can be either
 Artificial Intelligence Search Methods For 2 dirty/clean and each Roomba is present in one of
Problem Solving the 3 rooms.
What are the number of states in
 Blockchain and its Applications 13 propositional/factored knowledge representation?
 C Programming And Assembly Language 1 Answer: 72

 Cloud Computing 22

 Computer Architecture Nptel 9 Q2. Which of the following is/are part of a node?
State
 Computer Graphics 7 Path cost from initial state
Cyber Security and Privacy Path cost to the goal
 22
Parent node
 Data Base Management System 16
Answer: a, b, d
 Data Science for Engineers 11 State
Path cost from initial state
 Data Structure And Algorithms Using Java 7 Parent node
 Deep Learning 21

 Deep Learning for Computer Vision 8 Q3. Full duplicate detection can reduce the number of
nodes to be visited from exponential to linear (in problem
 Developing Soft Skills and Personality 9
size).
Digital Circuits 8
True

False
Discrete Mathematics 14 Answer: True

×
 Electric Vehicles 5
For answers or latest updates join our telegram channel:
 Ethical Hacking 22
Click here to join
 Introduction To Industry 4.0 And Industrial 22
Internet Of Things These are An Introduction to Artificial Intelligence
Answers Week 2
 Introduction To Internet Of Things 21

 Introduction To Machine Learning 36


Q4. Start from state A. Goal state is G. The number over
 Introduction to Operating Systems 17 each edge indicates the cost to transition from one state
to another. What is the order of nodes visited by BFS
 Introduction To Programming In C 9 (including the start and goal state too)? Break any ties
using lexicographic ordering and do not perform
 Leadership and Team Effectiveness 12
duplicate detection.
 Machine Learning and Deep Learning - 4
Fundamentals and Applications

 Multi-Core Computer Architecture 13

 Principles of Managements 13

 Probability And Statistics 13

 Problem Solving Through Programming In C 19

 Programming Data Structure And Algorithms 12


Using Python

 Programming In Java 21

 Programming in Modern C++ 20 Answer: ABCDEFFG

 Python for Data Science 9

 Quantum Mechanics 1 12 Q5. Start from state A. Goal state is G. The number over
each edge indicates the cost to transition from one state
 Social Networks 13 to another. What is the cost of the path given by BFS?
Break any ties using lexicographic ordering and do not
 Soft Skills 9
perform duplicate detection.
 Soft Skills Development 19
Answer: 24
 Software Engineering 7

 Software Testing 13 Q6. Consider the given graph.


 The Joy of Computing Using Python 23

 Theory of Computation 8

Popular

Time Management and ways of Thinking


Time Management Fundamentals Final Exam

What is the order of nodes visited by IDDFS (Iterative-


deepening depth-first search)? Start from A, Goal State is
Entrepreneurship
E, break any ties using lexicographic ordering, and no
Entrenerprenaurship Foundations Linkedin duplicate detection.
Learning
Answer: AABCABFCDE
Academic Paper Writing and IPR, Design Thinking and Creativity for Innovation,
Team Skills
Thinking Creatively Quiz For answers or latest updates join our telegram channel:
Click here to join
Team Skills
These are An Introduction to Artificial Intelligence
Teamwork Foundations Answers Week 2

Team Skills
Effective Listening Q7. Which of the following problems is typically not
modelled as a search problem?
Design Thinking and Creativity for Innovation
Puzzle Solving eg. solving the 8-Puzzle
Design Thinking Data Intelligence Path finding eg. finding the shortest path to a hospital in
your city starting from your home
Stock Market Prediction i.e. predicting the stock prices
Cloud Computing using historical data / trends
Cloud Computing | Week 1 Path Planning eg. finding the minimum cost path that visits
all nodes in a graph and returns to the source node
Design Thinking and Creativity for Innovation
Agile Foundations See also An Introduction to Artificial Intelligence |
Week 7
Academic Paper Writing and IPR
Business Writing Principles Answer: Stock Market Prediction i.e. predicting the stock
prices using historical data / trends
Time Management and ways of Thinking
Time Management Fundamentals
Q8. Which of the following is/are true for a search tree
with a finite branching factor and all costs greater than
one?
Depth-First Search (DFS) is not complete
Iterative Deepening Search is systematic
Uniform Cost Search is optimal
Breadth-First Search is typically preferred over Depth-First
Search in situations where memory is limited

Answer: a, c
Depth-First Search (DFS) is not complete
Uniform Cost Search is optimal

For answers or latest updates join our telegram channel:


Click here to join

These are An Introduction to Artificial Intelligence


Answers Week 2

Q9. Suppose there is only one goal state and each step
cost is k (k>0, k is constant). Which of the following
search algorithm(s) will return the optimal path?
Breadth-First Search
Depth First Search
Uniform Cost Search
Iterative Deepening Search

Answer: Breadth-First Search


Uniform Cost Search
Iterative Deepening Search

Q10. Which of the following is/are false regarding


search? The maximum branching factor of the search
tree is finite and is represented by b, d is the depth of the
least cost solution and m is the maximum depth of the
search-space
If m >> d, DFS (depth-first search) has a better worst-case
time complexity than BFS (breadth-first search)
Unlike Iterative Deepening Search, BFS visits each world
state exactly once and has a better worst-case time
complexity than iterative deepening search
Bidirectional search, if applicable, has a better worst-case
space complexity than BFS
BFS is optimal even if all step costs are not identical

Answer: a, b, d

For answers or latest updates join our telegram channel:


Click here to join

These are An Introduction to Artificial Intelligence


Answers Week 2

More Weeks of An Introduction to Artificial Intelligence:


Click here

More Nptel Courses: https://progiez.com/nptel-


assignment-answers

Course Name: An Introduction to Artificial Intelligence

Course Link: Click Here

These are An Introduction to Artificial Intelligence


Answers Week 2

Q1. Consider the “Vacuum World” discussed in the


lecture. The state space of the problem is shown
below.
We have two possible actions: moving the vacuum
cleaner from one room to another (cost = 2 units) and
clean the current room using the vacuum cleaner (cost =
1 unit). What is the minimum cost required to clean all
the dirt, assuming we start in state 1?
a. 8
b. 6
c. 4
d. 5

See also An Introduction to Artificial Intelligence |


Week 10

Answer: c. 4

These are An Introduction to Artificial Intelligence


Answers Week 2

Q2. Consider the following graph with start state A and


goal state J. Assume that edges between nodes have
cost equal to the absolute difference of the position of
the corresponding letters in the alphabet. For example,
cost of the edge between state F and J is 4 since F is the
6th and J is 10th letter of the alphabet. Also, assume that
all edges are bidirectional and ties are broken
lexicographically.
What will be the total number of nodes visited by
Uniform Cost Search (include the goal state in your
calculation)?

Answer: 10
These are An Introduction to Artificial Intelligence
Answers Week 2

Q3. Consider the following graph. A is the initial state and


we always pick the lexicographically smallest state in
case of a tie. If the goal state is K, find the order of
exploration of states in Breadth First Search with no
duplicate checking. (Write the answer as a capitalized
string with no spaces.
For example, if the order of exploration is A followed by B
followed by C followed by D then write ABCD. Include the
goal state in the answer)

Answer: ABCDEFFGGHIIJIJJK

These are An Introduction to Artificial Intelligence


Answers Week 2

Q4. Which of the following types of state representations


assume a state to be indivisible without any internal
structure?
a. Atomic
b. Propositional
c. Relational
d. First-order

Answer: a. Atomic

Q5. Which of the following data structures are most


suited to be used in an implementation of Breadth First
Search (BFS) and Depth First Search (DFS)?
a. BFS: Queue, DFS: Queue
b. BFS: Queue, DFS: Stack
c. BFS: Stack, DFS: Queue
d. BFS: Stack, DFS: Stack

Answer: b. BFS: Queue, DFS: Stack

These are An Introduction to Artificial Intelligence


Answers Week 2
Q6. Which of the following search methods cannot be
guaranteed to find a goal reaching plan to the 8-puzzle
problem?
a. Bidirectional Search
b. Depth First Search
c. Breadth First Search
d. Beam Search

Answer: d. Beam Search

Q7. What is the best characterization of time and space


complexity of Depth First Search with full duplicate
detection (ensuring that the same state is never
expanded again, b denotes maximum branching factor,
m is maximum depth of search tree, d is the minimum
depth of goal state and |S| is the total number of states,
all of which are reachable from the start state)?
a. Time: O(bd) Space: O(bd)
b. Time: O(|S|) Space: O(|S|)
c. Time: O(bd) Space: O(bd)
d. Time: O(bm) Space: O(bm)

See also An Introduction to Artificial Intelligence |


Week 3

Answer: b. Time: O(|S|) Space: O(|S|)

These are An Introduction to Artificial Intelligence


Answers Week 2

Q8. Consider a variant of Iterative Deepening Depth First


Search (IDS) in whichwe increase the depth in steps of 2,
i.e. the depth limits increase as 1,3,5,7…. Which of the
following is true about this new variant?
a. It is complete
b. It is optimal
c. It will always expand more nodes than standard IDS
d. It can find the goal state faster than IDS in some cases

Answer: a, d

These are An Introduction to Artificial Intelligence


Answers Week 2

Q9. Which of the following algorithms are optimal,


complete and systematic for a search problem with a
single goal state and same cost for all edges?
a. Breadth First Search
b. Bidirectional Breadth First Search
c. Iterative Deepening Depth First Search
d. Depth First Search

Answer: a, b

These are An Introduction to Artificial Intelligence


Answers Week 2

Q10. Consider the following graph in which we are


searching from start state A to goal state G. The number
over each edge is the transition cost. Find the path to the
goal found by Depth First Search with full duplicate
detection. In case of ties, the unvisited child with the
lowest cost edge connecting it to the current node is
selected. Further ties are broken with the
lexicographically smaller state chosen.
(Write answer as a capitalized string with no spaces.
For example, if the order of exploration is A followed by B
followed by C followed by D then write ABCD. Include the
goal state in the answer)

Answer: ACDFG

These are An Introduction to Artificial Intelligence


Answers Week 2

These are An Introduction to Artificial Intelligence


Answers Week 2

More Solutions of An Introduction to Artificial Intelligence:


Click Here

More NPTEL Solutions:


https://progiez.com/answers/nptel/

Similar:
An Introduction to Artificial
Intelligence | Week 11

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 4 Intelligence | Week 1

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 5 Intelligence | Week 9

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 6 Intelligence | Week 10

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 7 Intelligence | Week 12

© 2024 Progiez - Making Your Programming Easy

You might also like