阿摩線上測驗
登入
首頁
>
清大◆資工◆基礎計算機科學
>
110年 - 110 國立清華大學_碩士班招生考試_資訊工程學系:基礎計算機科學#105771
>
4.(5 points) Five people occupy five seats. If five seats are arranged in a circle, bow many different ways can the five people select their seats?
其他申論題
(5 points) (a) What is a spanning tree?
#450290
(5 points) (b) Given an undirected, weighted graph in Figure 1, what is the minimum spanning tree (MST)?
#450291
(5 points) (c) Describe the sequence of adding edges to form the MST of the graph in Figure 1 using the greedy Kruskal's algorithm.
#450292
3.(8 points) Use the Euclidcan algorithm to find the greatest common divisor of 167,076 and 1,928,737.
#450293
5. (4 points) Let G = (V, E) be a graph. If V has twelve members, in which four members each has a degree of three, and the degree of each remaining member is five, how many members does E have?
#450295
6. (8 points) A class at a college consists of 19 students who sit at a circular table. The instructor wants each student to sit next to two different classmates cach day. For bow many days can they do this?
#450296
(a) T(n) = T(n-1) + 2n
#450297
(b) T(n) = 2T(n-1) +n
#450298
8. (8 points) Given a sequence of n integers A = (a1, a2,..., an), the longest increasing subsequence problem is to find a longest subsequencealk For example, (1,2,5,8) is a longest increasing subsequence of (4,1,7,5,2,5,8,4). Please use the dynamic programming technique to design an O(n2) time algorithm for solving the longest increasing subsequence problem. Please also justify your algorithm and its time complexity.
#450299
9. (7 points) Given a set S of n numbers, the k-partition problem is to determine whether or not S can be partitioned into k subsets of the same sum. For example, let S ={1,2,9,12,18}. Then for the two-partition problem, we indeed can partition S into two subsets S1 = {1,2,18} and S2 = {9,12} such that the sum of all elements in S1 equals to the sum of all elements in S2. In fact, it can be proved that the two-partition problem is NP-complete. In the situation where the two-partition problem is already NP-complete, please prove that the three-partition problem is also NP-complete.
#450300