二、關於字串樣式比對(string pattern matching),最簡單的方法是使用窮舉樣式比對法(exhaustive pattern matching),此即將樣式(pattern)的字元逐
【題組】 ⑵已知某一樹其分支度(degree)為 1 的節點(node)有 5 個,分支度為 2 的節點有 4 個,分支度為 3 的節點有 3 個,分支度為 4 的節點有 2 個,分支度為 5 的節點
四、一個有向圖形(directed graph),若圖形的任何路徑(path)沒有環路(cycle),則此圖形可找到拓樸排序(topological sorting),問:【題組】⑴說明什麼是拓樸排序