Join Raghavendra Dixit for an in-depth discussion in this video Introduction, part of Introduction to Data Structures & Algorithms in Java.
- In this chapter, we will learn about the…heap data structure and how are heaps…used to implement priority queues.…By the way, this heap is different than…Java memory heap, where objects are created.…This heap here is a data structure.…But in context of Java, we just mean a heap of memory…or a pile of memory, alright?…So, what is a heap?…Well, a heap is a binary tree, alright?…So how is it different than a binary tree?…And here, I'm not saying binary search tree, okay?…I'm saying a general binary tree.…
And you may want to recall the…difference between the two here.…So just as a binary search tree had some properties…like left child is smaller than the parent…and right child is greater than the parent,…heaps also are binary trees with…some special properties, okay?…And the first one is that a heap…is a binary tree that is complete.…And what we mean by that is it is completely filled in…when reading from left to right across each row,…though the last row may not be completely full.…
This helps trees remain balanced, alright?…
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.