100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

AQA A-Level Computer Science Summary - Fundamentals of Algorithms

Rating
-
Sold
-
Pages
9
Uploaded on
21-08-2025
Written in
2022/2023

A concise summary of the notes I used when I was studying for my A-levels. I have checked that this summary follows all of the points on the AQA specification to ensure that it covers everything that you will need to know. It includes all of the definitions and examples that you need to know, as well as comparison tables to be able to quickly breakdown concepts and how they relate to eachother. I wrote this with the exam questions in mind and alot of the knowledge within it should be worded / explained in such a way so that you can directly answer a question with this document. I hope you all find it useful. Best of luck.

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Summarized whole book?
No
Which chapters are summarized?
Chapter 3
Uploaded on
August 21, 2025
Number of pages
9
Written in
2022/2023
Type
Summary

Subjects

Content preview

🪜
Fundamentals of Algorithms
Last edited time @November 12, 2023 1:40 PM

Status Done

Graph and tree traversal
There are two ways of traversing a graph.

Depth first → A method for traversing a graph that starts at a chosen bode an
explores as far as possible along each branch away from the starting node
before backtracking.

breadth first → A method for traversing a graph that explores nodes closes to
the starting node first before progressively exploring nodes that are further
away. A queue 📦 Fundamentals of data structures is used to keep track of
the nodes to visit.

These can be best visualised using a tree which can be seen below:




A depth first traversal of a tree




Fundamentals of Algorithms 1

, A breadth first traversal of a tree


Traversing a binary tree
traversal → The process of reading data from a tree or graph by visiting all of
the nodes. Recursive algorithms are used.
Pre-order traversal → A method of traversing a tree by outputting the node,
traversing the left child, and then the right child.


void PreOrderTraversal(Node n)
{
Console.WriteLine(n.Data);

if (n.LeftChild != 0)
PostOrderTraversal(n.LeftChild);

if (n.RightChild != 0)
PostOrderTraversal(n.RightChild);
}




In-order traversal → A method of traversing a tree by traversing the left child,
outputting the node and the traversing the right child.


void InOrderTraversal(Node n)
{
if (n.LeftChild != 0)
PostOrderTraversal(n.LeftChild);


Console.WriteLine(n.Data);

if (n.RightChild != 0)
PostOrderTraversal(n.RightChild);
}




Fundamentals of Algorithms 2
£3.46
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
andreasmullen

Also available in package deal

Thumbnail
Package deal
AQA A-Level Computer Science Complete Summary
-
10 2025
£ 34.84 More info

Get to know the seller

Seller avatar
andreasmullen The University of Birmingham
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
4 months
Number of followers
0
Documents
23
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions