A2 Data Structures - Binary Trees and Linked Lists

Descripción

Flashcards to test A2 computing binary trees and linked lists
pstevens1963
Fichas por pstevens1963, actualizado hace más de 1 año
pstevens1963
Creado por pstevens1963 hace alrededor de 9 años
25
1

Resumen del Recurso

Pregunta Respuesta
Binary Tree Data Structure Made up of nodes with a maximum of two nodes coming off each node
Add an item to a Binary Tree Start at Root Repeat Compare new data with current data If new data < current THEN data follow left pointer Else follow right pointer Until pointer is null Add item and create null pointers
Delete from Binary Tree Traverse binary tree until item found Remove elements below item and store them Delete item Transfer stored items back into the binary tree
Traversal Types Pre-Order In-Order Post-Order
Pre-Order Traversal Process Root Node Process Left Subtree Process Right Subtree (Each node is processed as visited left before right)
In-Order Traversal Process Left Subtree Process Root Node Process Right Subtree (Each node is processed once child node on left is processed first)
Post-Order Traversal Process Left Subtree Process Right Subtree Process Root Node (Each node is processed once child nodes have been processed left before right)
Implement a Binary Tree Use Left, Right and Data Nodes Uses Left, Right Pointers 0 or -1 is the Sentinel value
Linked List Dynamic data structure used to keep data in order E.g. Alphabetical Order
Linked List Variables Start Next Free
Mostrar resumen completo Ocultar resumen completo

Similar

Ecuaciones de Segundo Grado
Diego Santos
LA FUNCIÓN DE NUTRICIÓN
M.Encina SF
Gramática para Practicar el First Certificate II
Diego Santos
INTRODUCCIÓN A LA FÍSICA
Hilmer Santiago
Sistema nervioso
crisferroeldeluna
Visita al MAN - Prehistoria
Alba B
BASES DE DATOS
Horst Berndt Reyes
Aprender y enseñar con las TIC: expectativa, realidad y potencialidades (César Coll)
Calu Amieva
Mapas Conceptuales con GoConqr
Diego Santos
DECIMALES
PROYECTO APRENDER
Actividad integradora 2. Implicaciones tecnocientíficas. Avance tecnocientífico presente en mi vida diaria: La computadora
Nahyelli Hernandez