0% found this document useful (0 votes)
80 views13 pages

CS-3011 (Ai) - CS Mid Sept 2023

This document provides information about the evaluation scheme for the mid-semester examination for the Artificial Intelligence (AI) course. It includes questions about Alan Turing and the Turing test, uninformed and informed search techniques in AI, and analyzing the performance of depth-first search, depth-limited search, and depth-first iterative deepening search. Justifications are required for answers about doubling computer speed and the benefits of iterative deepening search over breadth-first search. Heuristics and their relationship to the optimality of A* search are also discussed.

Uploaded by

rajeevkgrd20
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)
80 views13 pages

CS-3011 (Ai) - CS Mid Sept 2023

This document provides information about the evaluation scheme for the mid-semester examination for the Artificial Intelligence (AI) course. It includes questions about Alan Turing and the Turing test, uninformed and informed search techniques in AI, and analyzing the performance of depth-first search, depth-limited search, and depth-first iterative deepening search. Justifications are required for answers about doubling computer speed and the benefits of iterative deepening search over breadth-first search. Heuristics and their relationship to the optimality of A* search are also discussed.

Uploaded by

rajeevkgrd20
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/ 13

Artificial Intelligence (AI)

CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Q1.
(a) Who is Alan Turing? Has ChatGPT-3 passed the Turing test?
Alan Turing was a British mathematician, logician, and computer scientist. proposed the Turing Test in
his 1950 paper titled "Computing Machinery and Intelligence." This test is a benchmark for
determining a machine's ability to exhibit human-like intelligence. [Mark 1]

As of my last knowledge update in September 2021, ChatGPT-3, which is based on the GPT-3.5
architecture, had not definitively passed the Turing Test. Passing the Turing Test is a complex and
controversial benchmark for assessing a machine's ability to exhibit human-like intelligence and
understanding in natural language conversations.

However, the Turing Test's criteria and standards can vary, and opinions on what constitutes
"passing" can differ among researchers and experts. It's also important to note that the Turing Test is
just one way to assess the capabilities of AI systems, and many in the field are working on
developing more comprehensive and nuanced evaluation methods. (Source: ChatGPT-3.5)
[Mark 1 for No, also 1 for Yes but justification is required; step marking as per faculty discretion]

(b) Describe the types of searching techniques—uninformed search and informed search. Why is
“searching” important in artificial intelligence? Justify your answer.
Searching is a fundamental concept in artificial intelligence (AI) and is essential for problem-solving
and decision-making. There are two main categories of searching techniques in AI: uninformed search
and informed search. These techniques are used to navigate through problem spaces and find
solutions to various AI problems.

Uninformed Search (Blind Search):


Breadth-First Search (BFS): This technique explores all the neighbor nodes at the current depth level
before moving on to the next level. It guarantees finding the shallowest solution, but it may not be
efficient in terms of memory usage.
Depth-First Search (DFS): DFS explores as far as possible along a branch before backtracking. It can be
memory-efficient but may not guarantee finding the optimal solution in terms of depth.
Uniform-Cost Search (UCS): UCS considers the cost of reaching each node and explores the lowest-
cost path first. It is used in problems with different path costs.
Depth-Limited Search (DLS): DLS is a variation of DFS that limits the depth of the search to avoid
infinite loops in large state spaces.

Informed Search (Heuristic Search):


A* Search: A* combines the cost to reach a node (g) with a heuristic estimate of the cost to the goal
(h). It explores nodes with the lowest f = g + h value first. A* is complete and optimal if the heuristic is
admissible (never overestimates the true cost).
Greedy Best-First Search: This search algorithm selects the node that is estimated to be closest to the
goal according to the heuristic. It does not guarantee optimality.
Iterative Deepening A (IDA):** IDA* combines depth-first search's memory efficiency with A*'s
optimality by iteratively increasing the depth limit.

Why Is "Searching" Important in Artificial Intelligence?


Searching is a fundamental concept in AI, and it is crucial for several reasons:
Problem Solving: AI systems often face complex problems that require searching through large state
spaces to find solutions. Searching techniques provide a systematic way to explore and discover these
solutions.

Decision Making: Many AI applications involve making decisions based on available information and
constraints. Searching helps in evaluating various options and selecting the best course of action.
Optimization: Searching is essential for optimization problems where the goal is to find the best
possible solution among a set of alternatives. Informed search techniques like A* can efficiently find
optimal solutions.
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Route Planning: In applications like GPS navigation, robotics, and logistics, searching algorithms are
used to find the most efficient routes or paths from one location to another.
Game Playing: AI agents in games like chess, Go, and video games use search algorithms to explore
possible moves and make strategic decisions.
(c) Natural Language Processing: In language understanding and generation tasks, searching is
employed to find relevant information in large corpora of text or to generate coherent and
contextually relevant responses.
(d)
(e) In summary, searching techniques are essential in AI because they enable machines to navigate
complex problem spaces, make informed decisions, optimize solutions, and solve a wide range of
real-world problems efficiently and effectively. The choice of search algorithm depends on the specific
problem and its requirements, whether it's finding a path, making decisions, or optimizing solutions.
[Mark 1 + 1, step marking as per faculty discretion]

(c) Doubling your computer’s speed allows you to double the depth of a tree search given the same
amount of time—is this true or false? Give a brief explanation of your answer.

[Mark 1 + 1, step marking as per faculty discretion]

(d) Explain analytically, why IDS is a better uninformed search strategy as compared to BFS for the
same b (branching factor) and d (depth of shallowest goal node). Assume the values for b and d.
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)

To compare Iterative Deepening Search (IDS) and Breadth-First Search (BFS) as uninformed search
strategies for the same branching factor (b) and depth of the shallowest goal node (d), let's analyze
the performance of both algorithms.

Breadth-First Search (BFS):


In BFS, all nodes at a given depth level are explored before moving on to the next level.
The maximum number of nodes stored in memory at any given time can be substantial. It can be on
the order of bd, where b is the branching factor, and d is the depth of the shallowest goal node.
BFS is guaranteed to find the shallowest goal, making it complete and optimal when all step costs are
equal.

Iterative Deepening Search (IDS):


IDS is a depth-limited search that performs depth-first search (DFS) iteratively with increasing depth
limits.
In the worst case, IDS explores nodes to a depth limit of d, then to a depth limit of d+1, and so on until
the shallowest goal node is found. The maximum number of nodes stored in memory at any given
time is the number of nodes at the current depth limit. Therefore, the memory requirement is limited
to bd (at the deepest level of the search). IDS is complete and optimal as long as the branching factor
is finite and the cost function is non-decreasing with depth. This means that if a solution exists, IDS
will find it and will find the shallowest goal node.

Analytical Comparison:
Now, let's compare BFS and IDS in terms of memory usage and completeness:

Memory Usage:
BFS stores all nodes at a given level in memory, which can be substantial, especially if the branching
factor (b) and depth (d) are large. Memory usage can be on the order of b^d.
IDS, on the other hand, only stores nodes up to the current depth limit. At the deepest level (d), it
stores a maximum of b^d nodes.

Completeness:
Both BFS and IDS are complete algorithms. They will find a solution if one exists, and they will find the
shallowest goal node.

In terms of memory usage, IDS is more memory-efficient than BFS for the same branching factor (b)
and depth of the shallowest goal node (d). This is because IDS only keeps nodes up to the current
depth limit in memory, while BFS stores all nodes at the current level. However, it's important to note
that IDS achieves this memory efficiency by performing multiple depth-limited searches iteratively.
This means that IDS may revisit nodes at each depth level multiple times. In contrast, BFS explores
each level only once.

So, while IDS is more memory-efficient, it may have a slightly higher time complexity due to repeated
exploration of nodes at different depth limits. The choice between BFS and IDS depends on the
specific problem, memory constraints, and the trade-off between memory and time complexity.
[Mark 1 + 1, step marking as per faculty discretion]

(e) Justify why consistent heuristic is known as triangle heuristic? How is optimality of A* search
linked to Admissible heuristic and Consistent heuristic?

Next Page
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)

[Mark 1 + 1, step marking as per faculty discretion]


Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)

Q2. (a) Briefly explain the performance measure criteria for search algorithms. Discuss those criteria
for the following searching algorithms
I.Depth-first Search
II.Depth-limited Search
III.Depth-first Iterative Deepening Search

We can evaluate an algorithm’s performance in four ways:


1. Completeness: It determines if the algorithm is guaranteed to find a solution when there is one.
2.Optimality: It states if the search algorithm would find the optimal solution.
3.Time complexity: It specifies the time it takes to find a solution.
4.Space complexity: This specifies the amount of memory needed to perform the search.

The typical measure of the time and space complexity is the size of the state space graph, |V | + |E|,
where V is the set of vertices (nodes) of the graph and E is the set of edges (links).
I)Depth-first Search :
Completeness: No
Optimality: No
Time complexity: O(bm) , where m is the maximum depth of any node and b is the branching factor.
Space complexity: O(bm)

II)Depth-limited Search :
Completeness: No
Optimality: No
Time complexity: O(bl) , where l is the depth limit and b is the branching factor.
Space complexity: O(bl)

III)Depth-first Iterative Deepening Search :


Completeness: Yes if b is finite
Optimality: Yes if step costs are all identical
Time complexity: O(bd) , where d is the depth and b is the branching factor.
Space complexity: O(bd)
[Marks 2 + 3, step marking as per faculty discretion]

Q2. (b) Consider the following undirected weighted graph. Apply greedy Best-First Search algorithm to
find the shortest path and cost between the initial state ‘A’ and goal state ‘D’. Also, briefly explain
why the Best-First search is considered "greedy".
[Marks 5 if it solved either using UCS or Best-first Search with assumed heuristic values or justified
logically it cannot be solved without heuristic values, step marking as per faculty discretion (However,
no marks if it is not attempted or skipped)]
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Q3. (a) Illustrate the significance of PEAS in Artificial Intelligence. Specify the following agents based
on PEAS to determine their task environments in a tabular manner:
I. Chandrayaan-3 Vikram lander
II. Robotic news anchor

PEAS (Performance, Environment, Actuators, Sensors) gives a description of the task environment in
which the agent is supposed to function. These specifications define the complexity of the problem
and the kind of agent programming that is required for the agent.

I.Chandrayaan-3 Vikram lander


Performance measure – Accuracy of landing, location, transmission of signals, distance covered,
responsiveness, connection with rover.
Environment – Moon surface, rocks, craters, temperature, dust, lighting.
Actuators – Legs, thrusters, deployers, scientific instruments.
Sensors – Cameras, altimeters, hazard detector, temperature sensor, spectrometer.

II.Robotic news anchor


Performance measure – Accuracy, clarity, comprehensiveness, intonation, timeliness.
Environment – Newsroom, studio, live feed, prompts.
Actuators – Speaker, gesture generator, voice modulator.
Sensors – Camera, sonar / microphone.
[Marks 1 + 2 + 2, step marking as per faculty discretion]

Q3. (b) Define and design the state-space graph for Missionaries and Cannibals problem in Artificial
Intelligence. How can various search algorithms, such as Breadth-first search, and Depth-first search,
be applied to explore the state-space graph of the Missionaries and Cannibals problem, and what are
the trade-offs in terms of efficiency and optimality among these algorithms?

[Marks 5, step marking as per faculty discretion]


Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)

Or
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Breadth-First-Search
open: 33L closed: nil
open: 31R, 22R, 32R closed: 33L
open: 22R, 32R, 32L closed: 31R, 33L
open: 32R, 32L, 32L closed: 22R, 31R, 33L
open: 32L, 32L closed: 32R, 22R, 31R, 33L
open: 32L, 30R closed: 32L, 32R, 22R, 31R, 33L
open: 30R closed: 32L, 32R, 22R, 31R, 33L
open: 31L closed: 30R, 32L, 32R, 22R, 31R, 33L
open: 11R closed: 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 22L closed: 11R, 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 02R closed: 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 03L closed: 02R, 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 03L closed: 11R, 02R, 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 01R closed: 03L, 11R, 02R, 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 11L, 02L closed: 01R, 03L, 11R, 02R, 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R, 31R, 33L
open: 02L, 00R, 01R closed: 11L, 01R, 03L, 11R, 02R, 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R, 31R,
33L
open: 00R, 01R, 00R, closed: 02L, 11L, 01R, 03L, 11R, 02R, 22L, 30R, 11R, 31L, 30R, 32L, 32R, 22R,
31R, 33L
Solution: CC, C, CC, C, MM, MC, MM, C, CC, M, MC

Depth-First-Search
open: 33L closed: nil
open: 31R, 22R, 32R closed: 33L
open: 32L, 22R, 32R closed: 31R, 33L
open: 30R, 22R, 32R closed: 32L, 31R, 33L
open: 31L, 22R, 32R closed: 30R, 32L, 31R, 33L
open: 11R, 30R, 22R, 32R closed: 31L, 30R, 32L, 31R, 33L
open: 22L, 30R, 22R, 32R closed: 11R, 31L, 30R, 32L, 31R, 33L
open: 02R, 30R, 22R, 32R closed: 22L, 11R, 31L, 30R, 32L, 31R, 33L
open: 03L, 30R, 22R, 32R closed: 02R, 22L, 11R, 31L, 30R, 32L, 31R, 33L
open: 01R, 30R, 22R, 32R closed: 03L, 02R, 22L, 11R, 31L, 30R, 32L, 31R, 33L
open: 11L, 02L, 30R, 22R, 32R closed: 01R, 03L, 02R, 22L, 11R, 31L, 30R, 32L, 31R, 33L
open: 00R, 01R, 02L, 30R, 22R, 32R closed: 11L, 01R, 03L, 02R, 22L, 11R, 31L, 30R, 32L, 31R, 33L

Solution: CC, C, CC, C, MM, MC, MM, C, CC, M, M

Q4. (a) Define the “state-space” in Artificial Intelligence. How does one stop the repeated states in a
state-space search?
In artificial intelligence, the "state space" refers to the set of all possible states that a problem-solving
agent or algorithm can encounter while trying to reach a goal or find a solution to a problem. State
spaces are commonly used in various AI problem-solving approaches, including search algorithms,
planning, and optimization.

Here's a more detailed explanation:


State: A state represents a specific configuration or situation of a problem at a particular point in time.
In state-space search, each node in the search tree or graph corresponds to a state.
Initial State: This is the starting point of the problem, representing the initial configuration or situation.
Goal State: The goal state represents the desired outcome or solution to the problem. The objective
of the AI agent or algorithm is to find a sequence of actions or transitions from the initial state to a
goal state.
Operators/Actions: Operators or actions are the allowable moves, transitions, or transformations that
can be applied to move from one state to another. These actions define the edges in the state-space
graph.
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)
Path: A path is a sequence of states and actions that lead from the initial state to a goal state.
State-Space Search: State-space search algorithms explore this graph or tree of states and actions to
find a path from the initial state to the goal state. Common search strategies include breadth-first
search (BFS), depth-first search (DFS), A* search, and others.

To prevent repeated states in a state-space search, which can lead to inefficiency and infinite loops,
you can use several techniques:
Closed List or Visited Nodes: Maintain a data structure, often called a "closed list" or "visited nodes,"
to keep track of states that have already been explored. Before expanding a new state, check if it is in
the closed list. If it is, you can skip exploring it again.
State Hashing: Assign a unique identifier (hash value) to each state. Store these identifiers in a data
structure like a hash table or a set. Before expanding a new state, check if its hash value is already in
the set. If it is, you've already explored that state.
Cycle Detection: Implement cycle or loop detection mechanisms in your search algorithm. For
example, in depth-first search (DFS), you can check for cycles by keeping track of the path you've
traversed and ensuring you don't revisit a state that's already on the current path.
Graph Search vs. Tree Search: In some cases, you might choose to use a graph search instead of a tree
search. In a graph search, you ensure that each state is expanded only once, even if it's reachable
through multiple paths. Tree search, on the other hand, explores the same state multiple times if it's
encountered through different branches of the search tree.

By implementing one or more of these techniques, you can prevent the repeated exploration of
states in a state-space search, which helps improve the efficiency and correctness of your AI problem-
solving algorithm.
[Marks 2 + 2, step marking as per faculty discretion]

Q4. (b) A Mars rover has to leave the lander, collect rock samples from three places (in any order) and
return to the lander. Assume that it has a navigation module that can take it directly from any place of
interest to any other place of interest. So it has primitive actions go-to-lander, go-to-rock-1, go-to-
rock2, and go-to-rock3.

We know the time it takes to traverse between each pair of special locations. Our goal is to find a
sequence of actions that will perform this task in the shortest amount of time.
I.Formulate this problem as a search problem by specifying the state space, initial state, actions,
transition model, path-cost function, and goal test.
II.Explain which search technique would be most appropriate to solve this problem, and why?

[Marks 4 + 2, step marking as per faculty discretion]


Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)

Q5. Consider the graph given below. Assume that S is the initial state and G is the goal state. The
transition costs (or step costs) are next to the edges, and the heuristic values are indicated within
round brackets very close to the states.

Compare and apply


i) UCS, and
ii) A* algorithm to find the path and path-cost in each case. (Draw in each case the tree diagram.)

[Marks 5 for UCS + 5 for A*, step marking as per faculty discretion]
Artificial Intelligence (AI)
CS-3011
Evaluation Scheme for the Mid-Semester Examination (Autumn 2023)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy