Search Algorithms & Explainable AI Flashcards

1
Q

What is the workflow for predicting the next word in text generation?

A

Tokenize text → convert to word indices → create sequences → train RNN model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What activation function is used in the output layer of the RNN for text generation?

A

Softmax.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Actionability in AI?

A

Deep learning understands data; search algorithms act on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the goal of search algorithms?

A

Plan a sequence of actions that takes us from a start state to a goal state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the Initial State in search algorithms?

A

Where the problem starts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does State Space refer to?

A

All possible configurations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are Actions in the context of search algorithms?

A

Choices you can make.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Goal Test?

A

Did we solve it?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Path Cost?

A

Total cost of reaching a goal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Search Tree?

A

Structure of all possible steps.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does Completeness mean in search algorithms?

A

Will it always find a solution if one exists?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Optimality in search algorithms?

A

Will it find the best solution?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does Time Complexity measure?

A

How long does it take?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Space Complexity?

A

How much memory does it use?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Breadth-First Search (BFS)?

A

Explore level-by-level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Is Breadth-First Search (BFS) complete?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Is Breadth-First Search (BFS) optimal?

A

Yes, if all steps cost the same.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is Depth-First Search (DFS)?

A

Explore down a path, then backtrack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Is Depth-First Search (DFS) always complete?

A

No.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Is Depth-First Search (DFS) optimal?

A

No.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What does Uniform Cost Search (UCS) do?

A

Always picks the lowest-cost path next.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Is Uniform Cost Search (UCS) complete?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Is Uniform Cost Search (UCS) optimal?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is Greedy Search?

A

Uses h(x) (estimated distance to goal) and picks the closest-looking node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Is Greedy Search optimal?
No.
26
Is Greedy Search always complete?
No.
27
What does A* Search algorithm use?
f(x) = g(x) + h(x), where g(x) = cost from start and h(x) = estimated cost to goal.
28
Is A* Search complete?
Yes.
29
Is A* Search optimal?
Yes.
30
What is the objective of the 8-Puzzle?
Slide tiles to reach the goal state.
31
What is Monte Carlo Dropout?
Train model with dropout and keep dropout on at test time to run predictions multiple times.
32
What does Explainable AI (XAI) do?
Makes AI decisions interpretable.
33
What is Grad-CAM used for?
Highlights which image regions influenced the decision.
34
What does Grad-CAM compute?
Gradient of predicted class with respect to the last convolutional layer.
35
What are some applications of Grad-CAM?
* Medical imaging * Object detection * Debugging deep models
36
What does AI stand for?
Systems that act intelligently.
37
Define Machine Learning (ML).
Learn from data without being explicitly programmed.
38
What is Deep Learning (DL)?
ML + Neural networks with many layers.
39
What is Data Mining?
Finding patterns in large datasets.
40
List common issues in data cleaning.
* Missing values * Duplicate data * Noise and outliers * Inconsistencies
41
What are some fixes for data cleaning issues?
* Drop/merge/estimate missing or bad data * Visualize with summaries (histograms, boxplots, etc.)
42
What is the k-Nearest Neighbours (k-NN) method?
Find k closest labelled data points and assign the most common class (majority vote).
43
What is the formula for Linear Regression?
Y = b + mX.
44
What is Gradient Descent used for in Linear Regression?
To minimize loss.
45
Define Unsupervised Learning.
Learning from data without labeled responses.
46
What is Partition-based clustering?
Group data into k clusters (e.g., k-means).
47
What does Hierarchical clustering do?
Build a tree of nested clusters (dendrograms).
48
What is Representation Learning?
Learns features automatically from raw data.
49
What are Fully Connected Networks (FCN)?
A type of neural network architecture.
50
What are CNNs used for?
Vision tasks (e.g., Faster R-CNN, U-Net, Mask R-CNN).
51
What are RNNs/LSTMs primarily used for?
Language processing.
52
What is Backpropagation?
Updates weights using error gradients.
53
What does Batch Norm do?
Stabilizes training.
54
What is Regularisation in the context of neural networks?
Prevents overfitting (e.g., Dropout).
55
List types of Loss Functions.
* Binary Classification: binary_crossentropy * Multiclass: categorical_crossentropy * Regression: mean_squared_error
56
What is Grid Search?
An exhaustive but slow optimization method.
57
What is Random Search?
An efficient optimization method for large spaces.
58
What is Faster R-CNN used for?
Object detection.
59
What is U-Net used for?
Semantic segmentation.
60
What does Mask R-CNN do?
Instance segmentation (detect + pixel mask).
61
What does Bag of Words (BoW) do?
Counts words, ignores order.
62
What does TF-IDF stand for?
Term Frequency–Inverse Document Frequency.
63
What is an N-Gram?
Predicts next word using previous N-1 words.
64
True or False: N-Grams can handle long-term dependencies.
False.
65
What can be used to handle long-term dependencies in NLP?
RNNs / LSTMs.
66
What does BFS stand for in search algorithms?
Breadth-First Search.
67
Is BFS complete and optimal?
Yes (equal cost only).
68
Is DFS complete and optimal?
No.
69
What does UCS stand for?
Uniform Cost Search.
70
Is UCS complete and optimal?
Yes.
71
What is the A* algorithm known for?
Best combo of cost + heuristic.
72
What is Dropout Monte Carlo used for?
Keep dropout ON at test time to estimate uncertainty.
73
What does Grad-CAM do?
Highlights image regions used in CNN decisions.
74
What should you understand for exam prep regarding architectures?
Each architecture’s use case.
75
What should you compare for exam prep in NLP?
BoW vs TF-IDF vs Word Embeddings.
76
What metrics should you practice for ML evaluation?
Confusion matrices, F1, AUC, etc.