

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The element at the top of the hierarchy is the _________. - Correct Answers -root Elements after a root node in the hierarchy are the ________ of the root. - Correct Answers -children Elements after a child node in the hierarchy are the __________ of the root, - Correct Answers –grandchildren A _________ is essentially a row in the tree of one or more nodes. - Correct Answers - level The _______ node of a tree is at Level ____. - Correct Answers -root, 0 What level does tree numbering begin at? - Correct Answers - The ______ of a node is the number of edges between it and the root node. - Correct Answers -depth Nodes that have no children are _________. - Correct Answers -leaves Nodes that share the same parent/root are ___________. - Correct Answers -siblings The parent and grandparents of a node(s) is call an ____________. - Correct Answers - ancestor The children and grandchildren of a node are also called _______________. - Correct Answers -descendants Branches are also called __________. - Correct Answers -edges A ______, t, is a finite nonempty set of elements where one of these elements are called the ___________. - Correct Answers -tree, root Elements following the root node are partitioned into trees, which are called ___________. - Correct Answers -subtrees
Each node of a tree along with its descendants can be considered a _________. - Correct Answers -subtree Trees are naturally viewed as what type of structure? - Correct Answers -recursive The ________ of a tree is the maximum depth of any node. - Correct Answers -height The __________ __ _ ______ is the total number of children that the node has. (not including grandchildren). - Correct Answers -degree of a node The ________ ___ _ _____ is the maximum degree of all nodes in a tree. - Correct Answers -degree of a tree Binary trees have a ________ collection of elements. - Correct Answers -finite A _________ binary tree has a _____ element. - Correct Answers -nonempty, root The remaining elements of a binary tree are partitioned into ____ trees called ______ and ______ _________. - Correct Answers -two, left, right subtrees No node in a binary tree may have a degree more than ____, where as there is _______ on the degree of a node in a tree. - Correct Answers -2, no limit A binary tree may be _______ a tree cannot be _______. - Correct Answers -empty, empty The subtrees of a binary tree are ___________, but a basic tree is not. - Correct Answers -ordered Minimum Number of nodes in a non-empty binary tree of height, h. - Correct Answers - h+ Maximum Number of nodes in a binary tree. - Correct Answers -2 ^ (h+1) - 1 Relationship from min to max nodes. - Correct Answers -h+1 <= n <= 2^(h+1) - Full Binary Tree - Correct Answers -each depth level in a the tree has anode at every possible position. The Parent of node i in a binary tree is ______, unless i == 1. - Correct Answers -i/ The _________ of node i is node 2i, unless 2i > n. If 2i > n, then node i has no __________. - Correct Answers -left child