Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary Full Notes - Chapter 18 - Artifical Intelligence - CIE Computer Science

Rating
-
Sold
-
Pages
4
Uploaded on
09-07-2026
Written in
2025/2026

Full notes for Chapter 19: Artificial Intelligence of the CIE A-Level Computer Science course (9618). Notes are written fully according to the specification and all past paper mark schemes.

Content preview

​18. Artificial Intelligence​

​1. Dijkstra’s Algorithm​

​Shortest path algorithms:​
​●​ ​Designed to find the optimal/shortest/most cost-effective route/paths between two nodes/from​
​a source (start) node to another node in the graph, based on distance/cost/time​
​●​ ​The graph must be weighted (which could represent distances/time/cost of travel)​
​●​ ​The algorithm can be used with both directed and undirected graphs​

​Applications of shortest-path algorithms/graphs in AI:​
​●​ ​A graph is used in AI to record relationships between entities, using vertices/nodes and edges​
​●​ ​E.g. to represent places on a map/the distances between them, in order to find the shortest route​
​●​ ​Other applications include routing packets over the Internet, and GPS​

​Implementing Dijkstra’s algorithm:​
​●​ ​The implementation of the algorithm is similar to a breadth first search​
​●​ ​Uses a priority queue as the supporting data structure to keep record of which node to visit next -​
​the priority queue will always have the node with the lowest temporary value at the front​
​●​ ​Process (helpful to understand -​​https://www.youtube.com/watch?v=YHDmA7ZlwqU​​):​
​○​ ​Start by assigning a temporary distance value to each node - the temporary distance is 0 at​
​the start node, and ∞ at every other node​
​○​ ​All nodes are marked as not visited​
​○​ ​Set the current node to be the first node in the priority queue​
​○​ ​For each of the current node’s neighbours, calculate the distance to the neighbour from​
​the source, by adding the edge weight to the current node’s temporary value - if this is​
​lower than the neighbour’s temporary value, update it to this​
​○​ ​Once all of the neighbours have been looked at, mark the current node as visited and​
​remove it from the priority queue​
​○​ ​Repeat from step 3 until all of the nodes have been visited​

Written for

Document information

Uploaded on
July 9, 2026
Number of pages
4
Written in
2025/2026
Type
SUMMARY
£6.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
benjaminskn18

Also available in package deal

Thumbnail
Package deal
Full Notes - Full Course - CIE A-Level Computer Science
-
20 2026
£ 50.99 More info

Get to know the seller

Seller avatar
benjaminskn18 UCS
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 days
Number of followers
0
Documents
21
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions