97年鐵路計概 - 考試
By Aaliyah
at 2013-06-19T18:26
at 2013-06-19T18:26
Table of Contents
[問題一]
將 1234567 七個數目依某順序插入一個空的二元搜尋樹(Binary Search Tree)後,
所得的二元搜尋樹如下圖所示:
4
/ \
2 6
/ \ / \
1 3 5 7
總共有幾種可能的插入順序?
(A)40 種 (B)48 種 (C)80 種 (D) 96 種
答案:(C)
這題請問一下要如何計算??
[問題二]
假設一路由器(router)的路徑表格(routing table)如下圖所示。
路由器可以將收到的封包傳給直接相連的網路或其它路由器。選擇路徑的
原則是最長字首相同(longest prefix match)。如果路由器要將封包傳給位
址 140.252.13.45,該透過那一個介面(interface)?
Destination Gateway Flags Refcnt Use Interface
-----------------------------------------------------------
140.252.13.65 140.252.13.35 UGH 0 171 le0
127.0.0.1 127.0.0.1 UH 1 766 lo0
140.252.1.183 140.252.1.29 UH 0 0 emd0
140.252.13.32 140.252.13.33 U 8 99551 sl0
default 140.252.1.183 UG 1 2955 viv0
(A)le0 (B)lo0 (C)emd0 (D) sl0
答案:(D)
這題想請問一下,封包要傳給的位址140.252.12.45是要
看Destination還是看Gateway??為什麼?
麻煩知道的大大說明一下~感謝><...
--
將 1234567 七個數目依某順序插入一個空的二元搜尋樹(Binary Search Tree)後,
所得的二元搜尋樹如下圖所示:
4
/ \
2 6
/ \ / \
1 3 5 7
總共有幾種可能的插入順序?
(A)40 種 (B)48 種 (C)80 種 (D) 96 種
答案:(C)
這題請問一下要如何計算??
[問題二]
假設一路由器(router)的路徑表格(routing table)如下圖所示。
路由器可以將收到的封包傳給直接相連的網路或其它路由器。選擇路徑的
原則是最長字首相同(longest prefix match)。如果路由器要將封包傳給位
址 140.252.13.45,該透過那一個介面(interface)?
Destination Gateway Flags Refcnt Use Interface
-----------------------------------------------------------
140.252.13.65 140.252.13.35 UGH 0 171 le0
127.0.0.1 127.0.0.1 UH 1 766 lo0
140.252.1.183 140.252.1.29 UH 0 0 emd0
140.252.13.32 140.252.13.33 U 8 99551 sl0
default 140.252.1.183 UG 1 2955 viv0
(A)le0 (B)lo0 (C)emd0 (D) sl0
答案:(D)
這題想請問一下,封包要傳給的位址140.252.12.45是要
看Destination還是看Gateway??為什麼?
麻煩知道的大大說明一下~感謝><...
--
Tags:
考試
All Comments
By Odelette
at 2013-06-22T09:55
at 2013-06-22T09:55
By Zenobia
at 2013-06-24T08:13
at 2013-06-24T08:13
By Jacob
at 2013-06-26T14:22
at 2013-06-26T14:22
By Sandy
at 2013-06-28T21:58
at 2013-06-28T21:58
By Rebecca
at 2013-06-30T02:04
at 2013-06-30T02:04
By Olga
at 2013-07-04T06:04
at 2013-07-04T06:04
By Zanna
at 2013-07-06T10:53
at 2013-07-06T10:53
By Erin
at 2013-07-07T07:47
at 2013-07-07T07:47
By Ingrid
at 2013-07-09T17:53
at 2013-07-09T17:53
By Erin
at 2013-07-12T12:08
at 2013-07-12T12:08
By Oliver
at 2013-07-17T05:28
at 2013-07-17T05:28
By Christine
at 2013-07-20T10:40
at 2013-07-20T10:40
By Megan
at 2013-07-24T11:21
at 2013-07-24T11:21
By Ursula
at 2013-07-25T12:29
at 2013-07-25T12:29
By Hedy
at 2013-07-26T17:26
at 2013-07-26T17:26
By Michael
at 2013-07-28T23:51
at 2013-07-28T23:51
By Ursula
at 2013-07-30T09:36
at 2013-07-30T09:36
By Victoria
at 2013-08-01T17:12
at 2013-08-01T17:12
By Jack
at 2013-08-06T00:07
at 2013-08-06T00:07
By Faithe
at 2013-08-10T13:24
at 2013-08-10T13:24
By Hedwig
at 2013-08-12T22:54
at 2013-08-12T22:54
By Poppy
at 2013-08-13T14:58
at 2013-08-13T14:58
By Leila
at 2013-08-15T11:38
at 2013-08-15T11:38
By Liam
at 2013-08-19T16:03
at 2013-08-19T16:03
By Isabella
at 2013-08-22T01:47
at 2013-08-22T01:47
By Donna
at 2013-08-25T21:05
at 2013-08-25T21:05
By Emma
at 2013-08-28T06:52
at 2013-08-28T06:52
By Genevieve
at 2013-09-01T21:09
at 2013-09-01T21:09
By Jack
at 2013-09-03T10:46
at 2013-09-03T10:46
By Agatha
at 2013-09-08T08:22
at 2013-09-08T08:22
Related Posts
185之3各款條件的性質?
By Oliver
at 2013-06-19T18:22
at 2013-06-19T18:22
電路學-峰值,有效
By Noah
at 2013-06-19T17:44
at 2013-06-19T17:44
「公文圈圈申論尺」的上市訊息
By Poppy
at 2013-06-19T17:43
at 2013-06-19T17:43
請問記性不好念法律申論題的寫法?
By Heather
at 2013-06-19T16:56
at 2013-06-19T16:56
經濟學一問
By Edwina
at 2013-06-19T16:53
at 2013-06-19T16:53