CMPSC 24 Lecture Notes - Lecture 9: Binary Tree

29 views1 pages
28 Feb 2018
School
Course
Professor

Document Summary

Each node has at most 2 children. Root of the tree is the first top node. Leaves of a tree: nodes with no children. A node that is not a leaf is an "internal node" Degree of a node: number of children nodes attached to it. Number of nodes at a certain level = 2^level. Height from n nodes h = log(n+1) - 1 h ~ o(log(n)) Full binary tree except for that the leaf level may not be full. All the missing nodes of the leaf level are on the right side h = o(log n) + 1"

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents