COMS W3134 Lecture Notes - Lecture 7: Longest Path Problem, Linked List, Tree Traversal

25 views3 pages

Document Summary

G n leaf root parent , sibling , children , uncle , grandparent. Leaf node : node with no kids path length : number of edges trees are usually singly - linked , no back - link ( depends on implementation ) v. * special case : linked list tree node implementations. User directory (cid:15482) root node leaf if empty. I tree command - recursion ( tree traversal ) root (cid:15482) child (cid:15482) child "s child (cid:15482) etc. A print name of object for each file c in this directory ( each child : list all i depth t ili g post - order traversal. I or 2 children class binary tree node it > l. Full binary tree : every node either has 0 or 2 children. I binary tree worst case : 01n ) height complete binary tree ( for all binary trees ) Fill all possible nodes at each level before moving to next level .

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