DEV Community

Cover image for Binary Search Trees, Explained! (Intro)
Arash Emadi
Arash Emadi

Posted on • Edited on

1 1

Binary Search Trees, Explained! (Intro)

Intro

Binary Search Trees; If you Google the name, you'll see that they have a lot of nicknames such as BSTs, Ordered Binary Trees, Sorted Binary Trees, etc.

No matter what name we choose, we can all agree that a Binary Search Tree sounds like a super-complex computer science term that only programming Gods and math geniuses are able to understand!

But, just like a lot of other "scary" or complex-sounding programming and tech terms, Binary Search Trees are actually very interesting and not that hard to learn, implement and work with!

A Binary Search Tree (I'll call them BST(s) from here on) is a type of Binary Tree which itself is a type of Data Structure. Data Structures are ways of organizing and accessing data when we're working with computers and writing programs. If you've ever used a language like JavaScript, chances are, you've been using basic data structures without even realizing you are. Arrays and objects are two types of basic (and helpful!) data structures that you can find in almost any programming language.

In the upcoming article(s), I'll go over what BSTs are and how we can implement our own BST in JavaScript!

Whether you're an absolute beginner and this is the first time you're hearing about BSTs, a more experienced developer who just needs a reminder on BSTs or someone who's preparing for a technical interview, these articles are for you!

If you think more people can benefit from reading my series of posts on BST(s), share this post with your friends! I appreciate all of the support.

Stay tuned for the next post!

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay