2nd 10 Flashcards
blank is made up of a finite set of nodes that is
either blank or consists of a node called the blank together with
two binary trees, called the left and right blank, which are disjoint from each other and from the root.
binary search tree
empty
root
subtrees
each node is either a leaf or internal node with exactly two non-empty children.
If the height of the tree is d, then all leaves except possibly level d are completely full. The bottom level has all nodes to the left side.
Full binary tree:
Complete binary tree:
A full binary tree with 1 internal node must have blank
two leaf nodes.
what theorem states that The number of leaves in a non-empty blank tree is one more than the number of internal nodes.
full binary tree
Any process for visiting the nodes in some order is called a blank
traversal.
Any traversal that lists every node in the tree exactly once is called an blank of the tree’s nodes.
enumeration
blank Visit each node before visiting its children.
blank Visit each node after visiting its children.
blank Visit the left subtree, then the node, then the right subtree.
Preorder traversal:
Postorder traversal:
Inorder traversal: