Skip to content

Commit a50e6ee

Browse files
committed
docs: 添加离散数学理论基础 2024 春夏第三次小测试题
1 parent 639e152 commit a50e6ee

File tree

3 files changed

+173
-0
lines changed

3 files changed

+173
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
#import "@preview/numblex:0.1.1": numblex
2+
#import "@preview/diagraph:0.2.1": raw-render
3+
#import "@preview/cetz:0.2.2"
4+
5+
#set text(font: "Times New Roman", size: 11pt)
6+
#set par(leading: 1.1em, justify: true)
7+
#set enum(numbering: numblex(numberings: ("1.", "(a)")), full: true, spacing: 2em)
8+
#set figure(supplement: "Fig.", gap: 15pt, caption: "")
9+
#set figure.caption(separator: "")
10+
11+
#let und(w: 5em) = box(width: w, line(length: 100%, stroke: .5pt))
12+
#let header-fn-sized = size => it => [
13+
#set align(center)
14+
#set text(size: size, font: "FZXiaoBiaoSong-B05S")
15+
#it.body
16+
]
17+
#let graph = x => figure(cetz.canvas(x))
18+
#let node = (coord, name) => {
19+
import cetz.draw: *
20+
circle(coord, name: name, radius: .3)
21+
content(name, name)
22+
}
23+
#let raw_edge = (u, v, w, marked: false) => {
24+
import cetz.draw: *
25+
set-style(content: (frame: "rect", stroke: none, fill: white, padding: .05))
26+
if marked { set-style(mark: (end: "straight")) }
27+
let name = "edge_" + u + "_" + v
28+
line(u, v, name: name)
29+
content(name + ".mid", [#w])
30+
}
31+
#let edge = raw_edge.with(marked: false)
32+
#let dedge = raw_edge.with(marked: true)
33+
#let redge = cetz.draw.line
34+
35+
#show heading.where(level: 1): header-fn-sized(20pt)
36+
#show heading.where(level: 2): header-fn-sized(13pt)
37+
#show heading.where(level: 3): header-fn-sized(13pt)
38+
39+
#show regex("(\d+%)"): set text(style: "italic")
40+
41+
= Discrete Mathematics Quiz 3
42+
43+
== 2023-2024 春夏学期
44+
45+
=== Xecades
46+
47+
#v(2em)
48+
49+
+ $R={(a,a), (a,b), (b,d), (a,d)}$ is a relation on ${a, b, c, d}$. Find the smallest relation containing the relation $R$ that is:
50+
+ (6%) partial order relation.
51+
+ (6%) symmetric and transitive.
52+
53+
+ Given the undirected graph $G$ as shown in @fig1.
54+
+ (6%) Use Kruskal's algorithm to find the minimun spanning tree of graph $G$. What is the order in which the edges are added to the minimum spanning tree?
55+
#graph({
56+
node((0, 0), "c")
57+
node((3, 0), "d")
58+
node((0, 3), "a")
59+
node((3, 3), "b")
60+
node((1.5, 1.5), "e")
61+
node((4.5, 1.5), "f")
62+
edge("a", "b", 20)
63+
edge("a", "c", 12)
64+
edge("a", "e", 9)
65+
edge("b", "e", 11)
66+
edge("b", "d", 6)
67+
edge("b", "f", 5)
68+
edge("c", "e", 10)
69+
edge("c", "d", 18)
70+
edge("d", "e", 14)
71+
edge("d", "f", 7)
72+
})<fig1>
73+
+ (6%) Using alphabetical ordering, find a spanning tree for this graph by depth-first search.
74+
75+
+ (6%) The frequencies of six characters are $0.09$, $0.05$, $0.2$, $0.25$, $0.3$ and $0.11$, respectively. If Huffman coding is used for optimal encoding, the average number of bits required to encode a character is #und().
76+
77+
+ (6%) How many leaves does a full $7$-ary tree with $2024$ vertices have?
78+
79+
+ (6%) Determine all positive integers $r$ and $s$ for which the complete bipartite graph $K_(r,s)$ is a tree.
80+
81+
+ (6%) Suppose $abs(A)=4$. Find the number of different equivalence relations on $A$.
82+
83+
+ Answer these questions for the poset $({2, 3, 5, 6, 12, 20, 27, 36, 60}, |)$.
84+
+ (4%) Draw the Hasse diagram.
85+
+ (2%) Find the maximal elements.
86+
+ (2%) Is there a least element?
87+
+ (2%) Find all upper bound of ${2, 3}$.
88+
89+
+ (10%) In the network below (@fig2), find a maximum flow from $A$ to $J$, calculate its flow value, and prove that it is the maximum flow.
90+
#graph({
91+
node((0, 1.5), "G")
92+
node((0, 3), "D")
93+
node((0, 4.5), "B")
94+
node((4, 1.5), "H")
95+
node((8, 1.5), "I")
96+
node((8, 0), "J")
97+
node((6, 3), "F")
98+
node((6, 4.5), "C")
99+
node((3, 6), "A")
100+
dedge("B", "D", 10)
101+
dedge("D", "G", 2)
102+
dedge("D", "H", 9)
103+
dedge("G", "H", 7)
104+
dedge("H", "I", 2)
105+
dedge("G", "J", 9)
106+
dedge("H", "J", 9)
107+
dedge("I", "J", 4)
108+
dedge("F", "H", 3)
109+
dedge("F", "I", 3)
110+
dedge("B", "F", 2)
111+
dedge("A", "B", 13)
112+
dedge("A", "C", 7)
113+
dedge("B", "C", 7)
114+
dedge("C", "F", 9)
115+
})<fig2>
116+
117+
+ (8%) Determine if the given pair of graphs (@fig3) is isomorphic. Give the reason.
118+
#figure(grid(
119+
columns: 2,
120+
column-gutter: 2em,
121+
cetz.canvas({
122+
node((0, 0), "7")
123+
node((0, 1), "5")
124+
node((0, 2), "3")
125+
node((0, 3), "1")
126+
node((2, 0), "8")
127+
node((2, 1), "6")
128+
node((2, 2), "4")
129+
node((2, 3), "2")
130+
redge("1", "2")
131+
redge("1", "4")
132+
redge("1", "6")
133+
redge("3", "2")
134+
redge("3", "4")
135+
redge("3", "8")
136+
redge("5", "2")
137+
redge("5", "6")
138+
redge("5", "8")
139+
redge("7", "4")
140+
redge("7", "6")
141+
redge("7", "8")
142+
}),
143+
cetz.canvas({
144+
node((0, 0), "g")
145+
node((3, 0), "h")
146+
node((0, 3), "a")
147+
node((3, 3), "b")
148+
node((1, 1), "e")
149+
node((2, 1), "f")
150+
node((1, 2), "c")
151+
node((2, 2), "d")
152+
redge("a", "b")
153+
redge("b", "h")
154+
redge("h", "g")
155+
redge("g", "a")
156+
redge("c", "d")
157+
redge("d", "f")
158+
redge("f", "e")
159+
redge("e", "c")
160+
redge("a", "c")
161+
redge("b", "d")
162+
redge("h", "f")
163+
redge("g", "e")
164+
})
165+
))<fig3>
166+
167+
+ $Q_n$ is the graph with $2^n$ vertices representing bit strings of length $n$. An edge exists between two vertices that differ in exactly one bit position.
168+
+ (3%) Find the number of edges of $Q_5$.
169+
+ (3%) Find the chromatic number of $Q_5$. Give the reason.
170+
+ (6%) Determing is $Q_5$ has Hamilton circuit / path. Give the reason.
171+
172+
+ (12%) $8$ students take a test with $8$ true / false questions. It is known that no two students make exactly the same choice. Prove that we can remove one of the $8$ questions, and still no two students make exactly the same choice.

docs/major_basic/discrete_math/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
- [(22 级)2023 春夏第一次小测](Discrete_Mathematics_Quiz_1_2023.pdf)
5050
- [(22 级)2023 春夏第二次小测](Discrete_Mathematics_Quiz_2_2023.pdf)
5151
- [(23 级)2024 春夏第一次小测](Discrete_Mathematics_Quiz_1_2024.pdf)
52+
- [(23 级)2024 春夏第三次小测](Discrete_Mathematics_Quiz_3_2024.pdf)
5253

5354
## 学长组课程学习建议
5455

0 commit comments

Comments
 (0)