Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Carnegie Mellon University Artificial Intelligence Final Written exam with questions and answers.

Beoordeling
-
Verkocht
-
Pagina's
97
Cijfer
A+
Geüpload op
04-05-2026
Geschreven in
2025/2026

Carnegie Mellon University Artificial Intelligence Final Written exam with questions and answers.

Instelling
Vak

Voorbeeld van de inhoud

Carnegie Mellon University Artificial Intelligence Final Written exam with
questions and answers




Section 1: Search Algorithms (Q1-30)

Question 1

When is the A* search algorithm guaranteed to find the optimal path?

A) Always

B) When the heuristic is admissible

C) When the heuristic is consistent (monotonic)

D) Both B and C



Answer: D

Rationale: A* is guaranteed to be optimal if the heuristic is admissible (never
overestimates the true cost to reach the goal) [citation:1]. Consistency (or
monotonicity) is a stricter property than admissibility; if a heuristic is consistent,
A* is optimal and also ensures graph-search efficiency without needing to revisit
nodes. Therefore, both conditions ensure optimality.



Question 2

,You are using Depth-First Search (DFS) on a tree with depth d and branching
factor b. What is the worst-case space complexity?

A) O(b*d)

B) O(b+m) where m is the max length

C) O(bd)

D) O(d)



Answer: D

Rationale: Unlike Breadth-First Search (BFS) which stores the entire frontier
(O(b^d)), DFS only maintains a single path from the root to the current node plus
sibling nodes waiting to be explored. Its space complexity is linear in the depth of
the tree d.



Question 3

If the heuristic h(n) is admissible, which of the following must be true for A*?

A) f(n) is non-decreasing along any path

B) The first solution found is always optimal

C) The algorithm runs faster than Dijkstra's

D) It will expand fewer nodes than BFS

,Answer: B

Rationale: The primary guarantee of an admissible heuristic is that A* will return
the optimal path when it finds a solution. While consistency guarantees efficiency
(no re-expansions), admissibility alone ensures optimality even if nodes need to
be re-opened.



Question 4

Simulated Annealing is primarily used to avoid getting stuck in:

A) A plateau

B) A local maximum/minimum

C) An infinite loop

D) The goal state



Answer: B

Rationale: Simulated annealing uses a temperature parameter and a cooling
schedule. At high temperatures, it allows "uphill" moves (accepting worse states)
to escape local optima. As the temperature cools, it behaves more like hill
climbing to settle into a global optimum.



Question 5

, What is the primary difference between Uniform Cost Search (UCS) and A*
search?

A) UCS uses a heuristic; A* does not

B) A* uses a heuristic; UCS does not

C) UCS expands nodes based on path cost, while A* expands based on cost +
heuristic

D) A* is optimal only with negative edge weights



Answer: B

Rationale: Uniform Cost Search expands nodes based solely on the cumulative
path cost g(n). A* expands based on the sum f(n) = g(n) + h(n), where h(n) is the
estimated cost to the goal. The heuristic directs A* toward the goal, potentially
exploring fewer nodes than UCS.



Question 6

In the context of genetic algorithms, what is "crossover"?

A) Randomly changing a gene

B) Selecting the fittest individual

C) Combining parts of two parent solutions

D) Discarding the worst solutions

Geschreven voor

Instelling

Documentinformatie

Geüpload op
4 mei 2026
Aantal pagina's
97
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$29.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
supergrader
5.0
(1)

Maak kennis met de verkoper

Seller avatar
supergrader Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
5
Lid sinds
9 maanden
Aantal volgers
0
Documenten
1587
Laatst verkocht
1 dag geleden
supergrade

Welcome to supergrade Stuvia shop! We offer a wide range of high-quality study materials, including Test Banks, Study Guides, and comprehensive notes for various courses. If you’re looking for specific materials, feel free to send me a message here on Stuvia, and I’ll help you find exactly what you need. Study smarter and achieve your best results

5.0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen