阿摩線上測驗
登入
首頁
>
【段考】國三數學上學期
>
105年 - 2016臺北市市立民族國中九年級105 上學期數學第一次段考(期中考)翰林#75926
> 申論題
沒有 【段考】國三數學上學期 權限,請先開通.
相關申論題
沒有 【段考】國三數學上學期 權限,請先開通.
#306475
沒有 【段考】國三數學上學期 權限,請先開通.
#306476
1. 以下這段 C 程式執行後,b 的值為_________ 。(2 分)
#306477
2. 以 Huffman 編碼來壓縮一個由 26 個大寫英文字母組成的字串(26 個字母都有出現在字串內),需先依字母出現頻 率建一顆 Huffman 樹。這顆樹共有 ________個內部節點(internal node)。(2 分)
#306478
3. 以下為一 C 語言的遞迴函數,f(9)的返回值為___________ 。(2 分)
#306479
4. 布林運算式 可以化簡至最簡單的式子為_________ 。(2 分)
#306480
(a) A binary tree with height h has at most ________ nodes.
#306481
(b) The height of a complete binary tree with n nodes is ________ .
#306482
(c) A perfect(full) binary tree with L leaf nodes has ________ nodes(total).
#306483
6. Tower of Hanoi with Adjacency Requirement: (each 2 points) Suppose that in addition to the requirement that they never move a larger disk on top of a smaller one, the priests who move the disks of the Tower of Hanoi are also allowed only to move disks one by one from one pole to an adjacent pole. Assume poles A and C are at the two ends of the row and pole B is in the middle, if a single disk is to be moved from pole A to pole C (using pole B), then moving the disk directly from A to C is not allowed. The disk must be first transferred to pole B and then to pole C.(A->B,B->C) The following function shows the solution for Tower of Hanoi with Adjacency Requirement. Please fill the blanks, and derive the time complexity of the program. /* note: move n disks from pole "from" to pole "to" using pole "aux" for auxiliary, where pole "from" is not adjacent to pole "to". */ void HanoiWithAdj(char from, char aux, char to, int n){
#306484
相關試卷
110年 - 110 台南市民德國中第 一 學 期三年級數學科第二次 段考#112063
110年 · #112063
110年 - 高雄市立五福國民中學110上第二次段考9年級數學科試卷#112043
110年 · #112043
110年 - 110 高雄市立正興國民中學上第二次段考9年級數學科試卷#112042
110年 · #112042
110年 - 110上台北仁愛國中第一次段考數學試卷#112030
110年 · #112030
110年 - 110 新北市立中平國民中學第1學期9年級數學科第2階段定期評量試題#112024
110年 · #112024
110年 - 2021高雄市市立大樹國中九年級110 上學期數學第一次段考(期中考)康軒#108836
110年 · #108836
110年 - 2021臺北市市立新興國中九年級110 上學期數學第二次段考(期中考)南一#108819
110年 · #108819
110年 - 2021高雄市市立林園高中附設國中九年級110 上學期數學第一次段考(期中考)南一#107260
110年 · #107260
110年 - 2021彰化縣縣立大同國中九年級110 上學期數學第一次段考(期中考)翰林#107241
110年 · #107241
110年 - 2021彰化縣縣立大同國中八年級110 上學期數學第一次段考(期中考)翰林#107206
110年 · #107206