




Étudies grâce aux nombreuses ressources disponibles sur Docsity
Gagnz des points en aidant d'autres étudiants ou achete-les avec un plan Premium
Cette page n'est pas visible dans l'aperçu
Ne manques pas les parties importantes!





Search • Games • CSP • Genetic Algorithms • Genetic Programming Mixed levels: Easy → Medium → Hard | MCQ + True/False + Short Answer + Exam Problems Answers are provided in the Answer Key at the end. Scope note: This sheet is based on the two PDFs available in this chat: Games & CSP Search and Genetic Algorithms & Genetic Programming. The available PDFs do not contain the LLM/Expert Systems/Classical Agent vs Agentic AI material, so those topics are not invented here.
1. Which search algorithm uses a FIFO queue? A) DFS B) BFS C) UCS D) Hill Climbing 2. Which search algorithm uses a LIFO stack? A) BFS B) DFS C) UCS D) Greedy 3. In SAGP, what does the G represent? A) Graph B) Goal Test C) Genetic operator D) Greedy function 4. Which component describes the cumulative cost of actions? A) Initial State B) Actions C) Goal Test D) Path Cost 5. BFS expands nodes in which order? A) Deepest first B) Lowest h first C) Shallowest first D) Lowest cost first 6. BFS is optimal when: A) Costs vary B) All step costs are equal C) h is admissible D) Tree is finite only 7. DFS may fail to be complete because it can: A) Use too much memory B) Get stuck in infinite paths/cycles C) Ignore depth D) Use a priority queue 8. UCS expands the node with the smallest: A) h(n) B) f(n) C) g(n) D) depth only 9. UCS is essentially equivalent to which classical algorithm? A) Dijkstra B) Prim C) A* D) Floyd-Warshall 10. If every step cost is 1, UCS behaves like: A) DFS B) BFS C) Greedy D) Hill Climbing 11. IDS repeatedly runs DFS with: A) Increasing mutation rate B) Increasing depth limit C) Increasing heuristic D) Increasing path cost 12. Which search has O(bd) space in the guide? A) BFS B) DFS C) IDS D) Greedy 13. Greedy Best-First Search uses: A) g(n) B) h(n) C) g(n)+h(n) D) depth 14. A uses:* A) h(n) only B) g(n) only C) g(n)+h(n) D) g(n)-h(n) 15. An admissible heuristic must: A) Always overestimate B) Never overestimate C) Equal true cost D) Be zero everywhere 16. Consistency implies: A) Greediness B) Admissibility C) DFS D) Completeness for DFS 17. A with h(n)=0 reduces to:* A) BFS B) DFS C) UCS D) Hill Climbing 18. A with g(n)=0 reduces to:* A) Greedy Best-First B) UCS C) IDS D) Minimax
19. Hill Climbing can get stuck at a: A) Global minimum only B) Local maximum C) Queue overflow D) Goal test 20. A common way to escape a local maximum in Hill Climbing is: A) Random restarts B) Elitism C) Crossover D) Alpha cutoff 21. In a zero-sum game, if MAX gets +5, MIN gets: A) +5 B) 0 C) -5 D) + 22. At a MAX node, Minimax chooses the: A) Minimum child B) Maximum child C) Average child D) First child 23. At a MIN node, Minimax chooses the: A) Maximum child B) Minimum child C) Median child D) Random child 24. Alpha represents: A) MIN's guaranteed value B) MAX's best guaranteed value C) heuristic value D) path cost 25. Beta represents: A) MAX's best guaranteed value B) MIN's best guaranteed value C) depth D) fitness 26. Alpha is updated at: A) MIN only B) MAX only C) Every leaf only D) CSP nodes 27. Beta is updated at: A) MAX only B) MIN only C) Leaves only D) GA selection 28. Alpha-Beta pruning changes: A) The optimal result B) The utility values C) Only the amount of search D) The game rules 29. The beta cutoff condition at MAX is: A) alpha <= beta B) alpha >= beta C) beta >= alpha+1 only D) alpha= 30. The alpha cutoff condition at MIN is: A) beta <= alpha B) beta >= alpha C) alpha < 0 D) beta= 31. Best-case Alpha-Beta time is approximately: A) O(b^m) B) O(b^(m/2)) C) O(bm) D) O(log b) 32. A CSP consists of: A) States, actions, goals B) Variables, domains, constraints C) Genes, fitness, mutation D) MAX, MIN, leaves 33. In a CSP, a domain contains: A) Variables B) Possible values for a variable C) Constraints only D) Search algorithms 34. A constraint involving one variable is: A) Unary B) Binary C) Higher-order D) Zero-order 35. A constraint involving two variables is: A) Unary B) Binary C) Ternary only D) Global only 36. In backtracking, when a partial assignment violates a constraint, we should: A) Continue deeper B) Stop that branch and backtrack C) Increase domain D) Ignore it 37. A constraint graph's nodes represent: A) Values B) Variables C) Goals D) Paths 38. A constraint graph's edges represent: A) Binary constraints/interactions B) Fitness values C) Search depth D) Operators 39. Which encoding is natural for TSP? A) Binary B) Real-valued C) Permutation D) Tree only 40. In GA, the chromosome is: A) The fitness score B) Complete encoded candidate solution C) Population size D) Termination condition 41. Genotype means: A) Decoded real-world meaning B) Encoded representation C) Fitness value D) Mutation rate
**66. An admissible heuristic can overestimate by a small amount.
**81. What are the four components of a search problem (SAGP)?
*101. A has g=7 and h=4 at node X. What is f(X)?
**105. For rank selection with N=5, what is the probability of the fittest individual using P=(N-i+1)/(N(N+1)/2)?
99. GA generally evolves parameters/numbers; GP evolves executable programs/expressions represented as trees. 100. It can create duplicate cities and omit other cities; OX/PMX preserve permutation validity.
102. UCS, because f=g+0=g. 103. 10%, 30%, 20%, 40%. 104. The individual with fitness 84. 105. 5/15 = 33.3%. 106. 22. 107. x=24, so fitness=576. 108. Children: 11100 and 01101. 109. 11000100. 110. Crossover only rearranges existing genetic material; required allele values may be absent, so mutation is needed. 111. Use a permutation such as [3,1,4,2,5], with each city appearing exactly once. 112. Swap mutation and inversion mutation. 113. Order Crossover (OX) and Partially Mapped Crossover (PMX). 114. 1/250 = 0.004 (or negative distance, depending on formulation). 115. It can make the population dominated by a few individuals and reduce diversity. 116. The generation-3 solution with fitness 100. 117. 6. 118. 2. 119. Yes, because beta ≤ alpha (2 ≤ 6): alpha cutoff. 120. Swapping complete subtrees preserves valid parent-child structure; flattening can create invalid trees/arity problems.