Binary Heap and Trees

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

10 Terms

1
New cards

Binary Tree

A classic data structure comprising a finite set of nodes that can be empty or structured with a root node and left/right subtrees.

2
New cards

Leaf Node

A node in a binary tree with two empty subtrees.

3
New cards

Internal Node

Any non-leaf node in a binary tree.

4
New cards

Full Binary Tree

A binary tree where every node is either a leaf or has two non-empty subtrees.

5
New cards

Complete Binary Tree

A full binary tree in which each leaf node is at the same depth.

6
New cards

Nearly-Complete Binary Tree

A complete binary tree to depth d-1 with remaining nodes filled from left to right at depth d.

7
New cards

Binary Heap

A nearly-complete binary tree where each parent node has a higher priority than its children.

8
New cards

Percolate Up

The process of moving a node up in the heap until the heap property is restored.

9
New cards

Percolate Down

The process of moving a node down in the heap to restore the heap property after removal.

10
New cards

Priority Queue

A class implemented