Artificial Intelligence
Artificial Intelligence
Dijkstra’s Algorithm
Note: Maps, telephone network, social networking are all represented
by graphs (nodes) and to find the shortest path between nodes we
use Dijkstra’s Algorithm.
u v
20 10
Path 1
40
0 + 40 < (infinity)
then shortest distance = 40
Path 2
0 + 20 + 10 < 40
then shortest distance = 30
3 5 2 9 3 8
Initialize base to 0
Initialize nodes to infinity
Make a table show all the steps
T1 T2 T3 T4 T5 T6
4 5 2
3 5 2
3 5 2 11 8 13
3 5 2 9 3 8
Note : There is no fixed answer to this question. It just that you have
to show that you are aware of Dijkstra’s Algorithm
A* Algorithm
A* algorithm is based on dijkstra, but adds an extra heuristic value
(intelligent guess) on how far we have to go to reach the destination
most efficiently.
HA
HB B 5 7 12
HC
C 4 9 13
HAB
B 4 7 11
HAE
E 7 3 10
HAEF
F 8 3 11
HAES
School 12 0 12
HAEFS School 11 0 11
Neural Network
Learn From
Past
Brain Experience
Neurons
Tiktok Algorithm
Unsupervised Learning
Unsupervised machine learning helps all kinds of unknown
patterns in data to be found.
Unsupervised learning only requires input data to be given.
Uses any data, uses unlabeled input data.
Reinforcement Learning
Reinforcement learning is a machine learning technique based on
feedback
In which an agent learns to behave in an environment by
performing the actions and seeing the results of the actions.
For each good action, the agent gets positive feedback (reward)
and each bad action receives negative feedback (punishment).
The agent learns automatically using feedback without any
labelled data.
Using feedback to improve its performance at accomplishing
similar tasks.
Deep Learning
Is a subset of Machine Learning
The hidden layer is where data from the input layer is processed into
something which can be sent to the output layer.
The initial outputs from the system are compared to the expected
output, and the error is calculated.
The system weightings are adjusted to minimize the difference
between actual and expected results.
This process is repeated multiple times, gradually reducing errors.
Once the errors are minimized sufficiently, the neural network is
well-trained and produces accurate outputs.
Describe regression?
Question 1 (9618_s21_qp_31)
Question 4 (9618_w22_qp_32)
Question 8 (9618_w23_qp_32)
Question 10 (9618_s24_qp_32)
Answer 4 (9618_w22_ms_32)
Answer 6 (9618_s23_ms_32)
Answer 8 (9618_w23_ms_32)
Answer 9 (9618_s24_ms_31)