0% found this document useful (0 votes)
170 views5 pages

AI Quiz Questions and Answers

The document is a quiz for a 6th semester Advanced Artificial Intelligence course. It contains 20 multiple choice questions testing knowledge of concepts like search algorithms, heuristic functions, constraint satisfaction problems, game trees, and local search techniques. Some key topics covered include depth-first vs breadth-first search, alpha-beta pruning, A* search, hill climbing getting stuck in local maxima, and face recognition being an example of applied AI.

Uploaded by

funnyclups413
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views5 pages

AI Quiz Questions and Answers

The document is a quiz for a 6th semester Advanced Artificial Intelligence course. It contains 20 multiple choice questions testing knowledge of concepts like search algorithms, heuristic functions, constraint satisfaction problems, game trees, and local search techniques. Some key topics covered include depth-first vs breadth-first search, alpha-beta pruning, A* search, hill climbing getting stuck in local maxima, and face recognition being an example of applied AI.

Uploaded by

funnyclups413
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Question Paper
  • Continuation of Questions
  • Further Questions and Analysis
  • Final Section of Questions

Indian Institute of Information Technology Ranchi

Department of Computer Science & Engineering


B. Tech Quiz 1– Spring Semester
Semester: 6th Sem. Course Instructor: Dr. Nidhi Kushwaha
Course Code: CS-3002 Course Name: Advanced Artificial Intelligence
Max Marks: 20

Name: RollNo:

1. Answer whether True or False with one-line justification:


a. Depth-first search will always expand more nodes than breath-first
search Machine Learning is a computer programmed to learn like a
human, but faster. False
b. The heuristic h(n) =C(n), where c(n) is the true cheapest cost to get from
the node n to a goal state, is admissible for every problem. False
c. The amount of memory required to run minimax with alpha-beta
pruning is O(b d ) for branching factor b and depth limit d. True
d. The most-constraint variable heuristic provides a way to select the next
variable to assign in a backtracking search for solving a CSP. True
2. Consider the following sequence of nodes for the undirected graph given below.
1) a b e f d g c 2) a b e f c g d
3) a d g e b c f 4) a d b c g e f

3. Uniform-cost search expands the node


n with the __________
A) Lowest path cost
B) Heuristic cost
C) Highest path cost
D) Average path cost

4. Apply Alpha-
Beta on the following game tree given in below.

r and j
5. In many cases the path to the goal is not related, this class of problems can be
solved using which of the following Techniques?
(A) Informed Search Techniques
(B) Uninformed Search Techniques
(C) Local Search Techniques
(D) Informed and Uninformed Search Techniques
(E) None of these

6. Hill climbing sometimes called ____________ because it grabs a good neighbor


state without thinking ahead about where to go next.
(A) Needy local search
(B) Heuristic local search
(C) Greedy local search
(D) Optimal local search

7. Consider the following game tree in which


root is a maximizing node and children are
visited left to right. What nodes will be
pruned by the alpha-beta pruning?
(A) I
(B) HI
(C) CHI
(D) GHI

8. Which value is assigned to alpha and beta


in the alpha-beta pruning?
A) Alpha = max
B) Beta = min
C) Beta = max
D) Both Alpha = max & Beta = min

9. In constraint satisfaction problem, constraints can be stated as

A. Arithmetic equations and inequalities that bind the values of variables


B. Arithmetic equations and inequalities that does not bind any restriction over
variables
C. Arithmetic equations that impose restrictions over variables
D. Arithmetic equations that discard constraints over the given variables

10. Given below are two statements:


Statement I: A genetic algorithm is a stochastic hill-climbing search in which a large
population of states is maintained
Statement II: In nondeterministic environments, agents can apply AND-OR search to
generate contingent plans that reach the goal regardless of which outcomes occur
during execution.

In the light of the above statements, choose the correct answer from the options
given below

A. Both Statement I and Statement II are true


B. Both Statement I and Statement II are false
C. Statement I is correct but Statement II is false
D. Statement I is incorrect but Statement II is true

11. Which of the following statements about the map coloring problem in artificial
intelligence is true?

(A) The map coloring problem aims to find the optimal way to color a given map with
the fewest number of colors, such that no adjacent regions share the same color.
(B) The map coloring problem can always be solved with a polynomial-time algorithm
regardless of the map's complexity.
(C) The map coloring problem is an example of a constraint satisfaction problem
where the constraints are specified by the adjacency of regions and the available
colors.
(D) The map coloring problem is only applicable to geographical maps and cannot be
generalized to other types of problems.

12. In a depth-first traversal of a graph G with n vertices,k edges are marked as


tree edges. The number of connected components in G is
A) k
B) k + 1
C) n-k-1
D) n-k

13. The search algorithm which is similar to the minimax search, but removes the
branches that don't affect the final output is known as__.
1. Depth-first search
2. Breadth-first search
3. Alpha-beta pruning
4. None of the above

14. The maximum depth to which the alpha-beta pruning can be applied.
(A) Eight states
(B) Six states
(C) Ten states
(D) Any depth
15. Hill-Climbing approach stuck for which of the following reasons?
i. Local maxima
ii. Ridges
iii. Plateaux
iv. All of the mentions

16. Which search is complete and optimal when h(n) is consistent?


a) Best-first search
b) Depth-first search
c) Both Best-first & Depth-first search
d) A* search

17. Consider the following undirected graph on 5 nodes. Assume you are

performing breadth first search on this graph using a queue data structure. How

many unique breadth first orderings are possible on this graph?

(A) 9
(B) 24
(C) 48
(D) 120

18. Face Recognition system is based on which type of approach?


a) Weak AI approach
b) Applied AI approach
c) Cognitive AI approach
d) Strong AI approach
19. Which search method will expand the node that is closest to the goal?
a) Best-first search
b) Greedy best-first search
c) A* search
d) None of the mentioned
20. Local search algorithms are not systematic, the main pros includes which
of the followings?
(A). Less memory
(B). More time
(C). search a solution in a big infinite space
(D). Less memory and search a solution in a big infinite space
(E). None of these

Common questions

Powered by AI

The 'most-constrained variable' heuristic aids in solving constraint satisfaction problems by selecting the variable with the fewest legal values left to assign. This approach minimizes the branching factor at each step of the search, often leading to faster convergence to a solution as it actively reduces the potential problem space. It is particularly useful for backtracking search, as it helps regulate the difficulty of variable assignment, allowing the algorithm to focus its efforts on the hardest parts of the problem first, potentially identifying contradictions earlier .

A heuristic is considered admissible if it never overestimates the cost to reach the goal from a node n . This property ensures that search algorithms like A* remain optimal, as it guarantees that the solution found by the search is the least-cost path to the goal. Admissibility allows the algorithm to safely prune non-promising paths, leading to more efficient search processes.

Time complexity and branching factor are critical in designing AI search algorithms because they directly impact scalability and efficiency. The branching factor, which denotes the average number of child nodes in the state space, determines how many potential paths the algorithm must consider. A large branching factor can lead to exponential growth in the search space, significantly increasing time complexity. This challenge makes algorithms like Uniform-Cost Search or A* search more viable, as they incorporate heuristics to manage complexity while ensuring optimality and completeness within practicable time and memory constraints .

The critical difference between stochastic hill-climbing search and traditional hill-climbing search lies in their decision-making processes. Traditional hill-climbing selects the nearest optimal next step purely based on the current state's evaluation, potentially getting stuck in local optima. In contrast, stochastic hill-climbing randomly selects among uphill moves, which allows it to sometimes escape from local maxima by occasionally accepting less promising paths that may lead to a better solution in future iterations. This randomness increases the chance of finding a global optimum over repeated iterations .

Genetic algorithms adaptively solve problems by simulating natural evolutionary processes, maintaining a population of solutions and evolving them using operations like selection, crossover, and mutation. They are beneficial for problems with large, complex, and poorly understood search spaces as they can traverse these spaces parallelly, often finding satisfactory solutions. However, they can be inefficient for smaller or simpler problems due to their stochastic nature and lack of guarantee for finding global optima. In contrast, heuristic-based searches, such as A* or greedy searches, use problem-specific knowledge to find optimal solutions more efficiently but may be less flexible in discovering diverse solutions in complex spaces .

Depth-first search (DFS) can be less efficient than breadth-first search (BFS) in scenarios where the search tree is very deep or infinite and the solution is located near the root. This is because DFS may traverse far down a non-promising path, potentially expanding many unnecessary nodes, while BFS can find a solution closer to the root by exploring all nodes at the current depth before proceeding deeper .

Alpha-beta pruning improves the efficiency of minimax algorithms by eliminating branches in the search tree that cannot possibly influence the final decision, thus reducing the number of nodes evaluated. This is achieved by maintaining two parameters, alpha and beta, which represent the minimum score the maximizing player can guarantee and the maximum score the minimizing player might assume respectively. By pruning branches where outcomes fall outside these bounds, the algorithm avoids unnecessary computations, making it much faster while producing the same optimal moves as the standard minimax would .

Local search algorithms are particularly beneficial in scenarios where the search space is extremely large or potentially infinite, and memory usage is a constraint. These algorithms efficiently navigate complex spaces by iteratively improving a single solution rather than trying to systematically explore all possibilities. They are well-suited for optimization problems requiring only satisfactory solutions rather than perfect ones, as in cases like scheduling, map coloring, or other constraint satisfaction problems where exhaustive methods become computationally expensive .

Breadth-First Search (BFS) using a queue data structure begins at the root node and explores neighbor nodes level by level. The queue facilitates this process by enqueueing all neighboring nodes before dequeueing them to visit. If multiple neighbors exist, they can be explored in different orders if they can be added to the queue in various sequences, leading to multiple possible breadth-first orderings. The specific ordering is influenced by factors like the initial node choice and presence of neighbors, thus allowing flexibility in certain graph structures .

Uniform-Cost Search is considered a complete algorithm because it explores paths in order of their cost, ensuring that it will eventually find a solution if one exists, provided the edge costs are finite and all equal-cost paths are returned. The algorithm remains optimal under the condition that it always expands the node with the lowest path cost first. Therefore, if a solution exists with a finite cost, Uniform-Cost Search will find the least-cost solution path .

(https://www.geeksforgeeks.org/data-structure-gq/top-mcqs-on-tree-traversal-with-interview-question-and-answers/)        Ind
5. In many cases the path to the goal is not related, this class of problems can be 
solved using which of the following Tech
Statement II: In nondeterministic environments, agents can apply AND-OR search to
generate contingent plans that reach the go
(D)Any depth
15.Hill-Climbing approach stuck for which of the following reasons?
i. Local maxima
ii. Ridges
iii. Plateaux
iv.

You might also like