(a^b)﹀c
(~a﹀b)^(b﹀c)
a﹀~b→c﹀b
習題詳解答案是
a | b | c | d | (a^b)﹀c | (~a﹀b)^(b﹀c) | a﹀~b→c﹀b |
0 | 0 | 0 | 0 | 略 | | |
0 | 0 | 0 | 1 | | | |
0 | 0 | 1 | 0 | | | |
0 | 0 | 1 | 1 | | | |
0 | 1 | 0 | 0 | | | |
0 | 1 | 0 | 1 | | | |
0 | 1 | 1 | 0 | | | |
0 | 1 | 1 | 1 | | | |
不是4個變數,故需2^4=16 列嗎?
2.另一問題
Use Euclidean Algorithm to find the great common divisor of 7n+3 and 5n+2(n∈N)
想起請問是這樣計算嗎?
Ans:gcd(7n+3,5n+2)=gcd(5n+2,2n+1)=gcd(2n+1,n)=gcd(n,1)=1
感謝助教
1 則留言:
1. 老師忘記把a=1的table貼上去了, 謝謝你的勘誤
2. 是滴
張貼留言