515001
~所組 別
科目
第
/ 國立臺灣科技大學103 學年度碩士班招生試題 資訊工程 jk 碩士班資訊工程概論 (總分為100分)
選擇題務必於答業卷內依序作答 ,否則不予言十分。
1 請將選擇越答索書寫於答案紙內,於試題作答不于吉十分 。
Considering the directory protocol for distributed shared memory
,
please associate proper statements to the following state transition diagram for the directory. Note that P in the following statements means the requesting processor number. (14%) (Note that each item has 2 points)」主L
-.JZL
~ 」主L,一旦L
A) Write Miss:
send Fetchjlnvalidate;
send Data Value Reply msg to remote cache;
Sharers = {P};
B) Write Miss
send Invalidate to Sharers;
then Sharers = {P};
send Data Value Reply msg C) Write Miss
Sharers = {P};
send Data Value Reply msg D) Read miss:
Sharers += {P};
send Data Value Reply E) Read miss:
Sharers = {P}
send Data Value Reply 也 J﹒
F) Read miss:
Sharers += {P};
send Fetch;
send Data Value Reply msg to remote cache (Write back block)
的 Data Write Back:
Sharers = {} (Write back block)
頁共 3 頁
515001
第 Z 頁共 3 頁
國立臺戶等科技大學103 學年度碩士班招生試題
jh 所組別:
資 訊工 程系碩 士 班
科 目﹒ 資訊工程概論
(總分為100分)
2. Suppose we summarize the cache optimization techniques with "+" meaning that the technique improves the factor
, "- "
meaning it hurts that factor,
and blank meaning it has no impact. For exampl巴,items (1), (2), (3), and (4) are all blank. Given the following table, please identify which items are 勻" and which items are "-" (in an increasing order). (Note that give the correct/incorrect answer for an item,
get/lose 1 point; otherwise,
no point. The maximum points got are 16; the minimum points got are 0.) (16%)Technique Hit time Bandwidth Miss penalty Miss rate
Banked caches (1) (12) (23)
Compiler techniques to
(2) (13) (24)
reduce cache misses Com piler-controlled
(3 ) (14) (25)
prefetching
Critical word first and early
(4) (15) (26)
restart
Hardware prefetching of
(5) (16) (27)
instructions and data
Merging write buffer (6) (17) (28)
Nonblocking caches (7) (18) (29)
Pipelined cache access (8) (19) (30)
Small and simple cache (9) (20) (31)
Trace caches (10) (21) (32)
Way-prediction cache (11) (22) (;13)
3. Assume a disk subsystem with the following components and FIT:
• 12 disks
,
1,
000 FIT國 1SCSI controller
,
2,
000 FIT• 1 power supply
,
5,
000 FIT 圓 1fan,
5,
000 FIT• 1 SCSI cable
,
1,
000 FITUsing the simplifying assumptions that the lifetimes are exponentially (34) (35)
(36)
(37)
(38) (39) (40) (41) (42) (43) (44)
distributed and failures are independent
,
please compute the MTIF of the system as a whole. (5%)4. Given a graph G =
< V , E > ,
the following is an algorithm to find a minimum spanning tree of G. Can you improve the algorithm for better efficiency? Some explanation is necessary! (10%)MST (G} '..
1 T 白
2 while ((E not empty)} {
2 choose an edge (v, w) from E of lowest costi 3 delete (v, w) from E;
4 i f ((v, w) does not create a cycle in T} T T U (v, 5 else discard (v..,' w) i
6
Y
515001
~所組}jIJ 手中 目
第三 國立臺灣科
技大學
103學年度碩士班招生試題
資訊工程系碩士班
資訊工程概論
頁共
3
頁(總分為100分)
5. Answer the following two questions about binary search tree (BST):
(a) The following is a BST with no other extra information. To search a number a on this BST
,
it takes n steps (n comparisons) to know a does not exist in this tree. What is the minimum and maximum of n? List one of the possible search sequences in each of the two cases. (10%)(b) Following part (a), what is the relation between a6 and a7? (3%)
(c) (Independent from part (a)) Rearrange the following sequence of seven numbers (if there is a need), 10, 2, 30, 14, 5, 6, 7 to put into a BST from an empty tree so that the tree depth of the final tree after all the insertions is as small as possible; also
,
the rearrangement must take as few steps from the original ordering as possible. List the sequence after the rearrangement and draw the final tree after the insertions. (7%)6. Answer the following question regarding virtual memory: ~
(a) List at least three advantages and one drawback of demand paging
technique comparing to the classic approach of loading the entire program into main memory when launching a program. (10%)
(b) Explain what is thrashing and how to prevent thrashing from happening (6%)
7. In shortest-job俏的t (SJF) scheduling, it is common to use exponential average as the predicted next burst time. Let t; denote the measured ith burst time , πi
denote the ith guest rounding to the nearest integer.
(a) Given t1
=
6, t2=
13, π1=
1, π2=
5, π3=
12, what is the possible range of theparameterα(10%)'
(b) Explain why SJF could result in process starvation and how do you suggest to solve this problem (9%)?