A* Algorithm
adds an extra heuristic value on how far we have to go to reach the destination most efficiently/find the best route
A* algorithm steps
(h values are not considered in further stages, but the movement costs are cumulative)
Dijkstra’s algorithm
An algorithm for finding the shortest path from one node to all other nodes, aiming to find the best route
Dijkstra’s algorithm steps
in physical working (this is marked)
* initialisation - setting base to 0
* setting the rest of the towns to infinity
* update the values at nodes when visiting - finding alternate paths
* show visited node(s)
in actual calculation:
* just calculate all possible routes from the node you are starting with to the node you want to go to
* pick the shortest one
* show alternative paths being considered
machine learning
where a system improves its performance through analysis of previous performance
types: supervised, unsupervised, reinforcement, deep
supervised learning
unsupervised learning
reinforcement learning
type of machine learning.
the system learns on the basis of reward and punishment.
- receives weighted rewards based on how effective the action was in relation to the achievement of the overall goal
- depending on the evaluation/feedback the policy the system uses will be adjusted
- to improve its performance in similar tasks
deep learning
reasons for using deep learning
applications of machine learning
Self Driving Cars
Image Classification
Text Classification
Search Engine
Banking, Healthcare Domain
Logic game theory e.g. backgammon
labelled data
data that has a meaning attached
unlabelled data
data to which no meaning is attached
artificial neural networks in machine learning
reasons for having (multiple hidden layers in) an artificial neural network
(Q works both ways)
back propagation
Adjusting the weights in a neural network based on the error rate from the previous trial.
* initial outputs from the system are compared to the expected output
* the system weightings are adjusted to minimise the difference between actual and expected result
* if the errors are still too large, the weightings are altered
It is applied first to the nodes in the output layer and then works backward through the nodes in hidden layers until finally the input nodes are considered.
regression analysis
predicting certain outcomes based on the relationship between variables.
A mathematic function that provides the best fit to the actual outcomes when outcomes are calculated from previous inputs.
how have graphs aided ai?
machine learning vs deep learning