100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
College aantekeningen

Data structure & algorithms (Binary Search Tree (BST)notes)

Beoordeling
-
Verkocht
-
Pagina's
23
Geüpload op
06-09-2025
Geschreven in
2024/2025

This document provides a concise yet comprehensive overview of Binary Search Trees (BST). It covers essential topics such as key operations like insertion, deletion, searching, and traversal. The document also discusses the advantages and disadvantages of BSTs, as well as the important distinction between balanced and unbalanced BSTs. It includes a comparison with other data structures and a section on self-balancing trees. This resource is perfect for students looking to understand the fundamentals of BSTs.

Meer zien Lees minder
Instelling
Vak










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
6 september 2025
Aantal pagina's
23
Geschreven in
2024/2025
Type
College aantekeningen
Docent(en)
Dr.bilal ashfaq
Bevat
Class 8

Onderwerpen

Voorbeeld van de inhoud

Data Structures and Algorithm
(CC-2042)
Lecture 23
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 Search
Tree (BST)
 A Binary Search Tree (BST) is a
specialized binary tree where:
1. Each node has at most two chil
left and right.
2. The left subtree of a node cont
nodes with values less than the
node’s value.
3. The right subtree of a node con
nodes with values greater than
node’s value.
4. Both left and right subtrees are
BSTs.




09/06/2025 DS

, Applications of Binary Search
Tree (BST):
 A Self-Balancing Binary Search Tree is used to maintain sorted stream of data.
 A Self-Balancing Binary Search Tree is used to implement doubly ended priorit
queue.
 There are many more algorithm problems where a Self-Balancing BST is the b
suited data structure, like count smaller elements on right, Smallest Greater
Element on Right Side, etc.
 A BST can be used to sort a large dataset. By inserting the elements of the
dataset into a BST and then performing an in-order traversal, the elements wi
be returned in sorted order.
 Variations of BST like B Tree and B+ Tree are used in Database indexing.
 TreeMap and TreeSet in Java, and set and map in C++ are internally
implemented using self-balancing BSTs, more formally a Red-Black Tree.



09/06/2025 DS
€7,89
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
hafizhasc

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
hafizhasc umt
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
3 maanden
Aantal volgers
1
Documenten
19
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen