• ¿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 3 fuera de 28 páginas
Notas de lectura

Data structure & algorithms (Binary tree notes)

Document preview thumbnail
Vista previa 3 fuera de 28 páginas

his document offers a detailed overview of Binary Trees, a fundamental data structure in computer science. It covers essential topics such as various types of traversal (including pre-order, in-order, and post-order), as well as key operations like insertion, deletion, and searching. Additionally, it includes information on Breadth-First Search (BFS) and provides a comparison between arrays and link lists in the context of tree implementation. This is a valuable resource for students studying data structures.

Vista previa del contenido

Data Structures and Algorithm
(CC-2042)
Lecture 19
E N G R. D R B I L A L A S H FA Q A H M E D
S C H O O L O F S Y S T E M S A N D T E C H N O LO GY ( S S T )
C O M P U T E R S C I E N C E FA C U LT Y

,Binary Tree
 Binary Tree is a non-linear and hierarchical
data structure where each node has at most
two children referred to as the left child and
the right child. The topmost node in a binary
tree is called the root, and the bottom-most
nodes are called leaves.




09/06/2025 DS

, Arrays are fast when you want to access an element
directly, like element number 700 in an array of 1000
elements for example. But inserting and deleting
elements require other elements to shift in memory to
make place for the new element, or to take the
deleted elements place, and that is time consuming.
Binary
Trees vs
Linked Lists are fast when inserting or deleting nodes,
no memory shifting needed, but to access an element
Arrays
and
inside the list, the list must be traversed, and that
takes time.



Linked
Binary Trees, such as Binary Search Trees and AVL
Trees, are great compared to Arrays and Linked Lists
because they are BOTH fast at accessing a node, AND
Lists
fast when it comes to deleting or inserting a node,
with no shifts in memory needed.




09/06/2025 DS

Información del documento

Subido en
6 de septiembre de 2025
Número de páginas
28
Escrito en
2024/2025
Tipo
Notas de lectura
Profesor(es)
Dr.bilal ashfaq
Contiene
Class 8
$10.49

¿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
1
Artículos
19
Ú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