阿摩線上測驗 登入

申論題資訊

試卷:104年 - 104 淡江大學 轉學考 資料結構#52975
科目:研究所、轉學考(插大)-資料結構
年份:104年
排序:0

題組內容

5.(20%) Insert the following sequence of keys in order to an initially empty binary search tree: 7,16, 25,45,5, 10, 18,30,50,_ 12, 1. Suppose that each node of the tree contains a key greater than or equal to the left subtree, and smaller than or equal to the right subtree. Answer the following questions:

申論題內容

b. What is the output key sequence when doing a postorder traversal of the binary search tree? (Hint: The height of a tree is the number of nodes on the longest path from the root to a leaf.)