Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitou authored Jul 26, 2024
1 parent 609d392 commit 6a6f5bf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tree/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

---
![tree-centers-examples](https://github.com/user-attachments/assets/8b0621d6-0f5e-4b56-9d2a-361782d91d4a)

---

# Introduction

A tree is a data structure that simulates a hierarchical tree structure with a set of connected nodes. Each node contains a value and pointers to its children. Trees are widely used to represent hierarchical data, such as organizational structures, file systems, and more.
Expand Down Expand Up @@ -35,6 +40,9 @@ There are various types of trees used in computer science, each serving differen

# Binary search tree

![1_ziYvZzrttFYMXkkV9u66jw](https://github.com/user-attachments/assets/ac61f36f-d003-4058-b966-6a0e22607ece)


A Binary Search Tree (BST) is a type of binary tree that maintains the following properties:

- The left subtree of a node contains only nodes with values less than the node's value.
Expand Down Expand Up @@ -131,4 +139,4 @@ This property makes BSTs efficient for searching, insertion, and deletion operat
- **Network Routing Algorithms**: Routing algorithms use tree structures to determine the optimal path.
- **Compiler Design**: BSTs are used to manage symbol tables.

---
---

0 comments on commit 6a6f5bf

Please sign in to comment.