Search Algorithms & Explainable AI Flashcards
What is the workflow for predicting the next word in text generation?
Tokenize text → convert to word indices → create sequences → train RNN model.
What activation function is used in the output layer of the RNN for text generation?
Softmax.
What is Actionability in AI?
Deep learning understands data; search algorithms act on it.
What is the goal of search algorithms?
Plan a sequence of actions that takes us from a start state to a goal state.
What is the Initial State in search algorithms?
Where the problem starts.
What does State Space refer to?
All possible configurations.
What are Actions in the context of search algorithms?
Choices you can make.
What is a Goal Test?
Did we solve it?
What is Path Cost?
Total cost of reaching a goal.
What is a Search Tree?
Structure of all possible steps.
What does Completeness mean in search algorithms?
Will it always find a solution if one exists?
What is Optimality in search algorithms?
Will it find the best solution?
What does Time Complexity measure?
How long does it take?
What is Space Complexity?
How much memory does it use?
What is Breadth-First Search (BFS)?
Explore level-by-level.
Is Breadth-First Search (BFS) complete?
Yes.
Is Breadth-First Search (BFS) optimal?
Yes, if all steps cost the same.
What is Depth-First Search (DFS)?
Explore down a path, then backtrack.
Is Depth-First Search (DFS) always complete?
No.
Is Depth-First Search (DFS) optimal?
No.
What does Uniform Cost Search (UCS) do?
Always picks the lowest-cost path next.
Is Uniform Cost Search (UCS) complete?
Yes.
Is Uniform Cost Search (UCS) optimal?
Yes.
What is Greedy Search?
Uses h(x) (estimated distance to goal) and picks the closest-looking node.