CS-3011 (Ai) - CS Mid Sept 2023
CS-3011 (Ai) - CS Mid Sept 2023
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.
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.
(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.
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)
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
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)
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.
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?
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
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.
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?
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.
[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)