Join Raghavendra Dixit for an in-depth discussion in this video Binary search trees, part of Introduction to Data Structures & Algorithms in Java.
- [Instructor] As said earlier, the node in a tree…contains the data.…For example, the tree shown here contains integer data,…but it may also have other kinds of data,…like user data, or any other types of object,…but let's keep it to integers in our discussion.…Now, if the data is randomly placed within the nodes…of the tree, it is not very useful, alight?…At least for searching data or inserting data et cetera…which are the typical operations we do…with a tree data structure.…
So mostly, we don't really use a binary tree data structure…as such, rather, we use another variation of it…which is called a binary search tree, alright?…So what is a binary search tree?…Well, a binary search tree is a binary tree…with a special property that for any node,…all the children to the left,…which means it's immediate left child and then…the grandchildren and so on, have a data value…less than that of the parent node itself, alright?…So, let's consider the root element.…
All it's children on the left, have data values…less than the root, alight?…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Why study data structures and algorithms?
- How to calculate the time complexity
- Using Big O notation
- Using basic sorting and search algorithms
- Searching elements in unordered arrays and ordered arrays
- Implementing a linked list in Java
- Implementing stacks using arrays
- Queues using arrays
- Binary search trees
- Representing heaps using arrays
Skill Level Intermediate
1. Introduction to Algorithms
2. Analysis of Algorithms
3. Basic Sorting and Search Algorithms
4. Linked Lists
5. Stacks and Queues
7. Binary Search Trees
8. More Sorting Algorithms
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.