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
Class notes

A-level AQA Computer Science FUNDAMENTALS OF ALGORITHMS

Rating
-
Sold
-
Pages
3
Uploaded on
15-08-2025
Written in
2025/2026

Level up your skills with these expertly written notes covering the fundamentals of algorithms topic from the AQA A-level Computer Science specification. Whether you're preparing for Paper 1 or reinforcing your understanding throughout the year, this resource is designed to make complex concepts crystal clear (used and made by a consistently A/A* student). What’s Inside: - Detailed explanations - Clear breakdown to reinforce understanding - Key terminology to help you apply concepts effectively - Structured summaries aligned with the AQA spec for efficient revision

Show more Read less
Institution
Course

Content preview

FUNDAMENTALS OF ALGORITHMS.

Graph-Traversal

Graph-traversal is the process of visiting each vertex in a graph. There are
two algorithms in this section - depth-first and breadth-first graph-
traversals. In a depth-first search, a branch is fully explored before
backtracking, whereas in a breadth-first search a node is fully explored
before venturing on to the next node.

Depth-first traversal uses a stack. Depth-first traversal is used for
navigating a maze. The following example uses a tree, but a depth-first
algorithm can be performed on any connected graph.

Tree-Traversal

Tree-traversal is the process of visiting/updating/outputting each node in a
tree - it is a form of algorithm. Unlike a graph-traversal, tree-traversals are
unique to trees and must start at the root. From the root, they travel left,
down the tree. There are three types of tree-traversals; pre-order, in-order
and post-order. Pre-order and post-order tree-traversal can be performed
on any tree including binary trees but an in-order traversal is only well
defined for binary trees.

Pre-order traversal is used for copying a tree. It can be performed on
any tree.

In-order traversal is useful for a binary search tree and because it
will output the contents of a binary search tree in ascending order. It
can only be performed on binary trees.

Post-order traversals can be performed on any tree. They are useful
for Infix to RPN (Reverse Polish Notation) conversions, producing a
postfix expression from an expression tree and emptying a tree.

Infix to Postfix; as mentioned above, postorder traversal can be
used to make infix to RPN conversions and make postfix expressions
from expression trees. Technically, these two uses are the same. The
difference is that Infix to RPN would involve the making of and then
traversing of a binary tree, whereas in the latter it can be assumed
the expression tree has already been formed.

Reverse Polish

Humans prefer to use in-fix order of notation. This means that the operand
is either side of the opcode. However, longer equations can cause
confusion over the order of execution.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
August 15, 2025
Number of pages
3
Written in
2025/2026
Type
Class notes
Professor(s)
Nil
Contains
All classes

Subjects

$8.40
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
leyladavidson

Also available in package deal

Get to know the seller

Seller avatar
leyladavidson Bedford College
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
0
Documents
22
Last sold
1 month ago
Leyla's A-level Geography and Computing Notes

Welcome to my store! These notes are getting me consistent A and A*, so enjoy!! Everything is £5.99 :D I would love if you could pop a review after purchases since it helps a lot :) Each document is: - Aligned with current specifications and mark schemes - Structured for efficient revision and deep comprehension - Enriched with case studies, and technical terminology - Ideal for students aiming for top grades and conceptual clarity

Read more Read less
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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced 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