Skip to main content

2 posts tagged with "tree"

View All Tags

· 8 min read
Lam Tran

Intuition

In the previous post, I talked about the binary search tree. With efficiency in search, insert, delete,... binary search tree can be done in logrithmic time (Θ(logn){\Theta(logn)}) in the average case. In this article, I will talk about AVL tree, which is a type of binary search tree, ensuring that in all cases, the time complexity of the above operations is the same Θ(logn){\Theta(logn)}.

· 11 min read
Lam Tran

Intro

In the process of learning programming, you will encounter many types of data structures such as arrays, linked lists, maps, etc. Each type of data structure has its own advantages and disadvantages. Today, I will talk about an interesting type of data structure called a binary search tree, a very convenient data structure for the search problem.