Binary Heaps

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to binary heaps and their properties as discussed in the lecture.

Last updated 6:00 PM on 4/25/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

Heap

An Abstract Data Type that defines certain behaviors for a data structure.

2
New cards

Max Heap

A heap structure where all values in the subtree of a given node are less than or equal to the value of that node, with the root storing the highest value.

3
New cards

Min Heap

A heap structure where all values in the subtree of a given node are greater than or equal to the value of that node, with the root storing the smallest value.

4
New cards

Complete Binary Tree

A binary tree where all levels are fully filled except possibly the last, which is filled from left to right.

5
New cards

Priority Queue

A queue where the ordering of elements is based on priority rather than the order of arrival.

6
New cards

Percolate Up

A procedure in a max heap where a newly inserted node is swapped with its parent until the heap property is restored.

7
New cards

Heapification Upward

The process of maintaining the heap property by moving a value up in the structure to its correct position.

8
New cards

Delete Max

A function in a max heap that removes and returns the root node, which contains the maximum value.

9
New cards

Percolate Down

A procedure that maintains the heap property by moving a node down in the structure, swapping with its largest child.

10
New cards

Heap Sort

A sorting algorithm that builds a heap from a list of items, extracts the minimum item, and fixes the heap for all elements, resulting in O(n log n) time complexity.