Exam Discrete Structure
Exam Discrete Structure
1.
Which of the following matrices
is the adjacency matrix
of G1 ?
0 1 0 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0
1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 0
0 1 0 0 1 1 0 0 0 0 1 0 0 1 1 0 1 0
1 1 0 0 1 0 1 1 0 1 1 0 0 1 0 1 1 0
A. 1 1 1 1 0 1 1 1 1 B. 1 1 1 1 0 1 1 1 1
0 1 1 0 1 0 0 1 1 0 1 1 0 1 0 0 1 1
0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0
0 0 0 1 1 1 1 0 1 0 0 0 1 1 1 1 0 1
0 0 0 0 1 1 0 1 0 0 0 0 0 1 1 0 1 0
C. None of them. D. Both of them.
2. What is the chromatic number of graph G1 ?
A. 2 B. 3 C. 4 D. 5
3. Is G1 a bipartie graph?
A. Yes B. No
4. Could we consider G1 as a planar graph?
A. Yes B. No
5. Graph G1 has how many bridges?
A. 0 B. 1 C. 2 D. 3
6. What is the values of κ(G1 ), λ(G1 ) respectively?
A. λ(G1 ) = 3, κ(G1 ) = 3 B. λ(G1 ) = 2, κ(G1 ) = 3 C. λ(G1 ) = 1, κ(G1 ) = 2 D. None of them
9. An airline sells 62 tickets for a plane with capacity of 60 passengers. This is done because it is possible for
some people to not show up. The probability of a person not showing up for the flight is 0.1. All passengers
behave independently. Find the probability of the event that the airline does not have to arrange separate
tickets for excess people.
A. 0.788 B. 0.888 C. 0.988 D. 0.688
10. The probability that a person will get an electric contract is 2/5 and probability that he will not get plumbing
contract is 4/7 . If the probability of getting at least one contact is 2/3, what is the probability of getting
both ?
A. 17/105 B. 18/105 C. 17/106 D. 18/106
11. In a batch, there are 80% C programmers, and 40% are Java and C programmers. What is the probability
that a C programmer is also Java programmer?
A. 0.5 B. 0.6 C. 0.7 D. 0.4
12. In a computer science department, a student club can be formed with either 10 members from first year or
8 members from second year or 6 from third year or 4 from final year. What is the minimum no. of students
we have to choose randomly from department to ensure that a student club is formed?
A. 21 B. 25 C. 31 D. 17
13. The following graph below exists:
A. C B. A and B. C. D D. B
15. Which one of the following statements is True about the bridge of a graph?
A. A tree has no bridge.
B. Every edge of a complete subgraph with size greater than or equal 3 is a bridge (A
complete subgraph is a subgraph consists of all choosen verticies and its incident
edges).
C. A graph with bridges cannot have a cycle.
D. A bridge cannot be part of a simple cycle.
A. S → A → C → D → T ; 11
B. S → D → T ; 10
C. There are more than one shortest path from S to T with the weight is 10
D. The minimum weight is 9
19. A graph G = (V, E) satisfies |E| ≤ 3|V | − 6. The min-degree of G is defined as min {degree(V )}. Therefore,
min-degree of G cannot be
A. 3 B. 4 C. 5 D. 6
Questions from 20–21, consider the following graph G8 in order to find the shortest paths from vertex A to the
others by Bellman-Ford algorithm.
Suppose that columns in the tracing table are ordered (from left to right) in alphabetical order (i.e., A → B → . . .).
Suppose that the initialization row corresponds to step 0.
26. How many minimal spanning tree can be found by using Kruskal’s algorithm?
A. 2 B. 5 C. 3 D. 1
27. The total weight of minimum spanning trees found by Prim’s/ Kruskal’s algorithms is
A. 21 B. 30 C. 41 D. Tất cả đều sai
28. Apply Floyd-Warshall algorithm and determine the stopping matrix for the following graph
8
(G3 )
A 3 B
-4 3
7 2 1
C
E
-6 -5
D
A. L(3) B. L(4) C. L(5) D. L(2)
W 0 < w ≤ 100 100 < w ≤ 800 800 < w ≤ 2000 2000 < w
X 0 1 2 3
P [X = x] a b 0.2 0.05
The densities P [X = x] are estimated using historical data, and code X = 0 means very light load, X = 1
means light load, X = 2 means medium load and X = 3 is high load. You know further that E[X] = 1.
Then the pair (b, a) is
A. (b, a) = (0.3, 0.45)
B. (b, a) = (0.4, 0.35)
C. (b, a) = (0.35, 0.4)
D. (b, a) = (0.45, 0.3)
30. The probability for a hen giving an egg per day is 0.6. What is the minimum number of feeded hens in order
to obtain in daily average not less than 30 eggs?
A. 40. B. 45. C. 50. D. 55.
2. C.
3. B.
4. A.
5. A.
6. A.
7. D.
8. A.
9. C.
10. A.
11. A.
12. B.
13. D.
14. D.
15. D.
16. B.
17. A.
18. C.
19. D.
20. B.
21. C.
22. D.
23. C.
24. D.
25. A.
26. A.
27. A.
28. A.
29. D.
30. C.