FlashKeepers

Artificial Intelligence · College · College and University

AI II: Search and Problem Solving

BFS, DFS, uniform cost, A-star, heuristics, minimax, alpha-beta pruning and constraint satisfaction.

About this set

41 basic cards for College Artificial Intelligence. It opens with "What order does breadth-first search explore nodes?" and "What data structure does breadth-first search use?". Study it alongside the other College sets below.

41 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What order does breadth-first search explore nodes?
Show answerLevel by level, visiting all nodes at distance k before exploring distance k+1
What data structure does breadth-first search use?
Show answerA queue (FIFO)
Is breadth-first search complete?
Show answerYes, it will always find a solution if one exists
Is breadth-first search optimal for path length?
Show answerYes, if all edge weights are equal
What is the time complexity of BFS?
Show answerO(V + E) where V is vertices and E is edges
What is the space complexity of BFS?
Show answerO(V), proportional to the number of nodes in the queue
What order does depth-first search explore nodes?
Show answerAs far as possible along each branch before backtracking
What data structure does depth-first search use?
Show answerA stack (LIFO)
Is depth-first search complete in cyclic graphs?
Show answerNo, it may get stuck in a cycle without cycle detection
Is depth-first search optimal?
Show answerNo, it does not guarantee the shortest path
What is the time complexity of DFS?
Show answerO(V + E) where V is vertices and E is edges
What is the space complexity of DFS?
Show answerO(h) where h is the maximum depth of the tree
What does uniform cost search optimize?
Show answerThe path with the lowest cumulative cost to reach a node
How does uniform cost search choose which node to expand?
Show answerIt expands the node with the smallest accumulated path cost g(n)
Is uniform cost search complete?
Show answerYes, if edge costs are positive and a solution exists

26 more cards in the app

Study this set free