Artificial Intelligence (AI)

Machine learning, neural networks, and AI applications.

Topics

Key terms

18.1 Finding the best route

Dijkstra's algorithm
Finds the shortest path from a start node to all other nodes in a weighted graph, always expanding the closest unvisited node.
A* algorithm
Finds a shortest path faster than Dijkstra's algorithm by using a heuristic to guide the search towards the goal.
Heuristic
An estimate, such as the straight-line distance to the goal, used to guess which route looks most promising.
Cost function
In A*, the cost so far plus the heuristic estimate to the goal (f = g + h).

18.2 Machine learning and neural networks

Deep learning
Machine learning that uses neural networks with many hidden layers to learn complex patterns.
Layers of a neural network
An input layer, one or more hidden layers and an output layer, made of connected nodes.
Weight
A number on a connection between nodes that sets how strongly one node affects the next.
Back-propagation
Training a neural network by working out the error at the output and passing it backwards to adjust the weights.
Labelled data
Training examples that come with the correct answer, needed for supervised learning.
Regression
A machine learning method that predicts a continuous value, such as a price, from input data.
Classification
A machine learning task where the model assigns an input to one of a set of categories.
Reward and penalty
Feedback in reinforcement learning that tells the system whether an action was good or bad.
Natural language processing (NLP)
AI that understands, interprets and produces human language, as in translation and voice assistants.
Overfitting
A model learns its training data too closely, including noise, so it performs badly on new data.

Practice questions for Artificial Intelligence (AI)