CPSC 259 FInal

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Binary Heap

1 / 16

flashcard set

Earn XP

Description and Tags

please let me pass

17 Terms

1

Binary Heap

Complete Binary Tree

New cards
2
New cards
3

Binary Heap: Min Heap

Value of a node is no greater than its childrens values

New cards
4

Binary Heap: Max Heap

Value of a node is at least as large as its childrens values

New cards
5

Perfect tree

full and complete

New cards
6

full tree

every node has 0 or 2 childrena binary tree where every node has either zero or two children

New cards
7

complete tree

all leaves are full except last level

New cards
8

max nodes in a tree

n = (k^h-1)/(k-1)
n = max nodes

k = #ary

h = height

New cards
9
New cards
10
New cards
11
New cards
12
New cards
13
New cards
14
New cards
15
New cards
16
New cards
17
New cards

Explore top notes

note Note
studied byStudied by 43 people
... ago
5.0(3)
note Note
studied byStudied by 42 people
... ago
5.0(1)
note Note
studied byStudied by 26 people
... ago
5.0(2)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 24 people
... ago
5.0(1)
note Note
studied byStudied by 15 people
... ago
5.0(1)
note Note
studied byStudied by 14 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (32)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (218)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (51)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (200)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (112)
studied byStudied by 6 people
... ago
5.0(1)
robot