• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 9 páginas
Resumen

AQA A-Level Computer Science Summary - Fundamentals of Algorithms

Document preview thumbnail
Vista previa 2 fuera de 9 páginas

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.

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
 image
Editorial: juni 2015 ISBN: 9781471839511 Edición: 1

Información del documento

Nivel de Estudio
Tema
¿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
$5.46

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
23
Última venta
-




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