This document discusses binary search trees and provides examples of inorder, preorder, and postorder traversals of one tree. The inorder traversal lists the nodes from left to right as 10, 20, 30, 100, 150, 200, 300. The preorder traversal lists the root node first followed by left and right subtrees as 100, 20, 10, 30, 200, 150, 300. The postorder traversal lists the left and right subtrees first followed by the root node as 10, 30, 20, 150, 300, 200, 100.
This document discusses binary search trees and provides examples of inorder, preorder, and postorder traversals of one tree. The inorder traversal lists the nodes from left to right as 10, 20, 30, 100, 150, 200, 300. The preorder traversal lists the root node first followed by left and right subtrees as 100, 20, 10, 30, 200, 150, 300. The postorder traversal lists the left and right subtrees first followed by the root node as 10, 30, 20, 150, 300, 200, 100.
This document discusses binary search trees and provides examples of inorder, preorder, and postorder traversals of one tree. The inorder traversal lists the nodes from left to right as 10, 20, 30, 100, 150, 200, 300. The preorder traversal lists the root node first followed by left and right subtrees as 100, 20, 10, 30, 200, 150, 300. The postorder traversal lists the left and right subtrees first followed by the root node as 10, 30, 20, 150, 300, 200, 100.
The number of nodes in the left subtree and right subtree of the root respectively is _____. Inorder Traversal: 10 20 30 100 150 200 300 Preorder Traversal: 100 20 10 30 200 150 300 Postorder Traversal: 10 30 20 150 300 200 100