100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Resumen

AQA A-Level Computer Science Summary - Fundamentals of Algorithms

Puntuación
-
Vendido
-
Páginas
9
Subido en
21-08-2025
Escrito en
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.

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

🪜
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

Libro relacionado

Escuela, estudio y materia

Nivel de Estudio
Editores
Tema
Curso

Información del documento

¿Un libro?
No
¿Qué capítulos están resumidos?
Chapter 3
Subido en
21 de agosto de 2025
Número de páginas
9
Escrito en
2022/2023
Tipo
Resumen

Temas

$5.54
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
andreasmullen

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
andreasmullen The University of Birmingham
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
0
Miembro desde
6 meses
Número de seguidores
0
Documentos
23
Última venta
-

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes