18. 2 S = { , { a } , { b } , { c } , { a,b } , { b, c } , { c, a } , { a, b, c } } .
19.
20.
21. 如果 S 1 就是 f 的 domain ,則 f 稱為 total function 、否則稱為 partial function 。
22.
23. 若 |f(n)| ≥ c |g(n)| , 「 f has order at least g 」 , f(n) = Ω (g(n))
24. 若存在 c 1 與 c 2 兩個常數, c 1 |g(n)| ≤ |f(n)| ≤ c 2 |g(n)| , 「 f and g have the same order of magnitude 」 , f(n) = Θ (g(n))
25.
26.
27. 若有某個 x i 出現兩次以上的話,就不是 function ,只能稱它為 relation 。所以 relation 比函式一般化。
28.
29. 一個 equivalence relation 必須滿足下列三個條件: the reflexivity rule( 反身性 ), x ≡ x for all x, the symmetry rule( 對稱性 ), if x ≡ y then y ≡ x 與 the transitivity rule( 遞移性 ), if x ≡ y and y ≡ z , then x ≡ z .
30. Example 1.4 除以 3 的餘數是否相同的關係,是不是 equivalence relation 呢?
31.
32. e i = ( v j , v k ) 是從 v j 連到 v k 的邊、有方向的邊; e i 是 v j 的 outgoing edge ,是 v k 的 incoming edge 。
103. Example 1.14 G 1 = ({A, S}, {a, b}, S, P) ,P 如下 S->aAb | A->aAb |
104.
105. automaton 隨時都在某個 internal state 的狀態下,下個時間的 state 由 next-state 或 transition function 決定。而 transition function 則通常是透過目前的 state 、 input 資料與 storage 中的資料來決定下個 state 。