98檢事官/程式語言 - 考試
By Hardy
at 2013-03-14T14:18
at 2013-03-14T14:18
Table of Contents
二、下述文法會產生二進位數字,試剖析其產生之值為那一數字之倍數。(20 分)
<C> → <C> 0 | <A> 1 | 0
<A> → <B> 0 | <C> 1 | 1
<B> → <A> 0 | <B> 1
答案是三的倍數
但是我如下推導,發現找到不是三的倍數
<A> --> <B>0 --> <A>00 --> <B>000 --><B>1000
--> <A>01000 --> <C>101000 --> 0101000 =40 不等於3的倍數
怎麼會這樣,哪裏出問題了呢~?
--
<C> → <C> 0 | <A> 1 | 0
<A> → <B> 0 | <C> 1 | 1
<B> → <A> 0 | <B> 1
答案是三的倍數
但是我如下推導,發現找到不是三的倍數
<A> --> <B>0 --> <A>00 --> <B>000 --><B>1000
--> <A>01000 --> <C>101000 --> 0101000 =40 不等於3的倍數
怎麼會這樣,哪裏出問題了呢~?
--
Tags:
考試
All Comments
By Bethany
at 2013-03-16T15:46
at 2013-03-16T15:46
By Queena
at 2013-03-18T09:05
at 2013-03-18T09:05
By Edwina
at 2013-03-18T13:39
at 2013-03-18T13:39
Related Posts
國考考古題與證照考古題哪種比較重要?
By Tristan Cohan
at 2013-03-14T14:10
at 2013-03-14T14:10
101地特基本電學
By Eartha
at 2013-03-14T12:59
at 2013-03-14T12:59
有關流體機械講義
By Anonymous
at 2013-03-14T12:45
at 2013-03-14T12:45
今天是文昌帝君聖誕
By Kama
at 2013-03-14T12:16
at 2013-03-14T12:16
101地特五等/102初等上榜心得
By Olivia
at 2013-03-14T11:40
at 2013-03-14T11:40