100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Data structure & algorithms (Binary tree notes)

Rating
-
Sold
-
Pages
28
Uploaded on
06-09-2025
Written in
2024/2025

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.

Show more Read less
Institution
Module










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Module

Document information

Uploaded on
September 6, 2025
Number of pages
28
Written in
2024/2025
Type
Lecture notes
Professor(s)
Dr.bilal ashfaq
Contains
Class 8

Subjects

Content preview

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
£7.69
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
hafizhasc

Also available in package deal

Get to know the seller

Seller avatar
hafizhasc umt
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 months
Number of followers
1
Documents
19
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions