阿摩線上測驗 登入

申論題資訊

試卷:106年 - 106 國立中山大學_碩士班招生考試_電機系(丙組):離散數學#109065
科目:中山◆電機◆離散數學
年份:106年
排序:6

申論題內容

7.(15%) A binary expression tree data structure uses the node data element given as follows. A node either represents a value or represents an arithmetic operator in { +, -, *, / }. An evaluation of an example expression tree is shown in Figure 4. Write a recursive algorithm evaluate(roos) to perform such expression evaluation task where root points to the root element of the expression tree.

  62cd3037923d3.jpg