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
Notas de lectura

CO2412 Computational Thinking Lecture 9 Notes

Puntuación
-
Vendido
-
Páginas
4
Subido en
20-08-2024
Escrito en
2023/2024

This document contains detailed notes from Lecture 9 of the CO2412 course on Computational Thinking. The lecture provides an in-depth exploration of Binary Search Trees (BSTs) and Heaps, two fundamental data structures in computer science.

Mostrar más Leer menos
Institución
Grado








Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Desconocido
Grado

Información del documento

Subido en
20 de agosto de 2024
Número de páginas
4
Escrito en
2023/2024
Tipo
Notas de lectura
Profesor(es)
Amin amini
Contiene
Todas las clases

Temas

Vista previa del contenido

CO2412: Computational Thinking
Lecture 9

Introduction to Binary Search Trees (BST)
1. Binary Tree Structure
o A Binary Tree is a hierarchical structure where each node has a
maximum of two children: a left child and a right child.
o Key Components:

 Root Node: The topmost node in the tree.
 Leaf Nodes: Nodes without children.
 Edges: Connections between nodes.
Binary Search Trees (BST)
1. Definition and Properties
o A Binary Search Tree is a type of binary tree where each node
follows a specific order:
 The left child’s value is less than its parent node’s value.
 The right child’s value is greater than its parent node’s value.
o This property allows for efficient searching, insertion, and deletion
operations.
2. Searching in a BST
o To find a value, start at the root and compare the value with the
node’s value:
 If the value is less, move to the left child.
 If the value is greater, move to the right child.
 Repeat this process until the value is found or the subtree is
exhausted.
Example:
To find the value 8:
 Start at the root (9), move left (6), then move right (8) to find
the value.
$5.61
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


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
BpoBpo University of Central Lancashire Preston
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
309
Miembro desde
5 año
Número de seguidores
250
Documentos
78
Última venta
2 meses hace

3.7

73 reseñas

5
27
4
17
3
17
2
5
1
7

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