Discrete mathematics, probability and numerical methods
도입됨
6:30
T.2 · 이산 수학, 확률 및 수치 해석
이 단위는 세기, 재귀 관계, 그래프 및 논리를 사용하고, 확률 및 분포 특성을 계산하며, 오차를 고려한 수치 근사를 적용한다…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| probability/ˌprɒbəˈbɪlɪti/ | A numerical measure of how likely an event is, ranging from zero to one. |
| recurrence/rɪˈkʌrəns/ | 점화 관계 |
| complete graph/kəmˈpliːt ɡræf/ | |
| tree/triː/ | A connected graph containing no cycles. |
| complement/ˈkɒmplɪmənt/ | 보事件 |
| Independence/ˌɪndɪˈpendəns/ | |
| binomial model | |
| tangent/ˈtændʒənt/ | A straight line that touches a curve at a point and has the same direction there. |
| convergence/kənˈvɜːdʒəns/ | |
| bisection/baɪˈsekʃn/ | 이분법 |
| error bound |
위원회인가, 아니면 세 가지 다른 역할인가?
- Choosing 3 of 10 students for a committee gives $\binom{10}{3}=120$ groups. Choosing a president, secretary and treasurer gives $10\cdot9\cdot8=720$ assignments: the roles distinguish outcomes.
- 계산하기 전에 하나의 결과가 무엇을 기록하고 반복이 허용되는지 결정하라. 이Implemented lesson은 세기법과 확률을 재귀, 그래프 추론 및 수치 근사와 연결한다.
주어진 규칙으로 결과를 세어라
- From $n$ distinct objects, selecting $r$ without repetition gives $n(n-1)\cdots(n-r+1)$ ordered lists or $\binom nr$ unordered subsets, for $0\le r\le n$. With repetition allowed, an ordered list has $n^r$ possibilities.
- For example, a three-letter code using five available letters has $5^3=125$ outcomes if letters can repeat, but $5\cdot4\cdot3=60$ if they cannot. A probability is favourable outcomes divided by all outcomes only when those outcomes are equally likely.
A three-letter code uses A, B, C, D or E in each position. Repetition is allowed. How many codes are possible?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
There are five choices independently for each of three positions: 5³ = 125. Dividing by 3! would incorrectly merge different ordered codes.
그래프와 직선은 별도의 가정을 가진다
- 단순 무방향 그래프에서 모는 서로 다른 꼭짓점을 연결하며, 중복된 모는 존재하지 않습니다. 완전그래프 $K_n$은 모든 순서 없는 꼭짓점 쌍에 대해 하나의 모를 가지므로, 총 $\binom n2$개의 모를 가집니다. 나뭇그릇은 연결되어 있고 사이클이 없으며, $n\ge1$개의 꼭짓점을 가질 때 $n-1$개의 모를 가집니다.
- 평면상의 $n$개의 서로 다른 직선이 일반적 위치(general position)에 있을 때, 이는 평행인 쌍이 없고 세 직선이 한 점을 지나지 않는다는 의미입니다. $k$번째 직선은 이전 직선들과 $k-1$개의 서로 다른 점에서 만나며, 새로운 영역 $k$개를 추가합니다. 초기 영역 하나에서 시작하여 총 $1+n(n+1)/2$개의 영역을 얻습니다.
순열(order)인지 조합(unordered)입니까?
위치나 역할이 결과를 구별하는지 결정하고, 반복 여부는 별도로 확인하십시오.
How many edges does the complete graph $K_7$ have?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Each edge joins a pair of distinct vertices, and K₇ joins every pair: C(7, 2) = 7 · 6 / 2 = 21.
Into how many regions do 5 lines in general position divide the plane?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The n-th line in general position crosses the earlier n − 1 lines and so adds n regions. Starting from 1 region: 1 + (1 + 2 + 3 + 4 + 5) = 1 + 15 = 16.
반복되는 값의 보수를 사용하세요
- 보수(event complement)란 주어진 사건이 발생하지 않는 사건을 말합니다. 따라서 $P(A^c)=1-P(A)$입니다. $n$개의 값 중 $r$개를 독립적이고 균등하게 선택할 때, 순열 표본 공간은 $n^r$개의 동일한 확률을 가진 결과로 구성됩니다.
- $r\le n$개일 때, 모두 서로 다른 결과의 개수는 $n(n-1)\cdots(n-r+1)$입니다. 10개의 값 중 3개를 선택했을 때 이 경우의 확률은 $720/1000=0.72$이므로, 적어도 하나의 값이 반복될 확률은 $0.28$입니다. 만약 $r>n$라면, 반드시 반복이 발생합니다.
Three values are picked independently and uniformly from ten possible values, with replacement. What is the probability of at least one repeated value?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The all-distinct probability is (10·9·8)/10³ = 0.72. Its complement, at least one repeat, has probability 1 − 0.72 = 0.28.
독립성은 불교차와 다릅니다
- 독립성이란 $P(A\cap B)=P(A)P(B)$임을 의미합니다. $P(B)>0$일 때, 조건부 확률은 $P(A\mid B)=P(A\cap B)/P(B)$이며, 이때 독립성은 $B$에 대한 정보를 얻어도 $A$의 확률이 변하지 않음을 뜻합니다.
- 상호 배타적 사건은 교집합이 공집합이므로 $P(A\cap B)=0$입니다. 두 사건의 확률이 모두 양수라면, 그 곱도 양수이므로 독립일 수 없습니다. 공정한 주사위를 한 번 던졌을 때 '짝수'와 '4보다 큼'은 독립적입니다: 이 둘의 교집합은 $\{6\}$이며, 그 확률은 $1/6=(1/2)(1/3)$입니다.
Two mutually exclusive events with positive probabilities cannot be independent.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
True. Exclusive means $P(A \cap B) = 0$, but independence needs $P(A \cap B) = P(A)P(B) > 0$.
On one fair six-sided die roll, let A be “even” and B be “greater than 4”. These events are
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
P(A) = 1/2, P(B) = 1/3 and P(A ∩ B) = P({6}) = 1/6. The product test holds, but the intersection is not empty.
공식 전에는 이항 분포 모델 조건을 확인하세요
- $X\sim\operatorname{Binomial}(N,p)$은 고정된 횟수 $N$의 독립적 시도 중 성공 횟수를 세며, 각 시도는 두 가지 결과만 가지고 성공 확률이 일정하게 $p$입니다. 기댓값은 $Np$이고 분산은 $Np(1-p)$이며, $N=10$과 $p=0.3$일 때 각각 3과 2.1입니다.
- 이 모델에서 성공이 없는 사건의 확률은 $(1-p)^N$이므로, 적어도 한 번 성공할 확률은 $1-(1-p)^N$이다. 물체를 교체 없이 샘플링하면 다음 성공 확률이 일반적으로 변하며, 고정된 시행 횟수와 초기 성공율만으로는 이항 분포 모델을 설정할 수 없다.
A binomial variable has $N = 10$, $p = 0.3$. Its variance is
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
$10 \times 0.3 \times 0.7$.
Four independent trials each succeed with probability 0.5. What is the probability of at least one success?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The complement is four failures, with probability (0.5)⁴ = 1/16. Hence at least one success has probability 15/16 = 0.9375.
A bag contains 4 red and 6 blue counters. Draw two uniformly at random without replacement. A student models the red count as Binomial(2, 0.4). Assess the model and find the probability of two reds.
The two draws are dependent: after a red, the next red probability is $3/9$, not $4/10$. Thus the stated binomial model is not exact. The probability of two reds is $(4/10)(3/9)=2/15$, whereas the binomial model would give $0.4^2=0.16$. Equivalently, there are $\binom42=6$ favourable unordered pairs among $\binom{10}2=45$ equally likely pairs.
재귀 관계식에는 초기 값도 필요합니다
- 재귀 관계식은 수열의 항을 이전 항으로 표현하는 규칙입니다. $a_n=2a_{n-1}$과 $n\ge1$에 대해, 초기 값 $a_0=3$를 통해 $3,6,12,\ldots$를 구하고 닫힌 형식(closed form) $a_n=3\cdot2^n$을 얻을 수 있습니다.
- 2계 규칙은 초기 값 두 개를 필요로 할 수 있습니다. $a_n=a_{n-1}+a_{n-2}$과 $n\ge2$에 대해 $a_0$만 지정하면 $a_1$는 자유로워집니다. 재귀 관계식의 정의역과 모든 항을 결정하기 위한 충분한 초기 데이터를 모두 제시해야 합니다.
How many integers from 1 to 60 are divisible by 2, 3 or 5?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
30 + 20 + 12 − 10 − 6 − 4 + 2 = 44.
A fair die is rolled until the first 6 appears. What is the expected number of rolls?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The number of rolls is geometric with p = 1/6, so its mean is 1/p = 6.
X is uniform on [0, 6]. Find Var(X).
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
(b − a)²/12 = 36/12 = 3.
몇 개의 항과 일치하는지 확인하는 것보다 공식 전체를 검증하세요
- $b_n=2b_{n-1}+1$과 $n\ge1$에 대해 $b_0=0$일 때, $b_n=2^n-1$를 시도해 보세요. 이는 올바른 초기 값을 가지며 대입하면 $2(2^{n-1}-1)+1=2^n-1$이 됩니다. 이를 통해 재귀 관계식이 귀납법으로 동일한 수열을 생성함을 확인할 수 있습니다.
- 유한한 개수의 항과 일치한다고 해서 모든 $n$에 대한 공식임을 증명할 수 없습니다. 제안된 답안은 정의역 전반에 걸쳐 모든 초기 값과 재귀 관계식을 만족해야 하며, 초기 값 하나를 바꾸면 전체 수열이 달라질 수 있습니다.
뉴턴법은 접선을 사용합니다
- 미분 가능한 $f$의 근을 근사할 때, $f'(x_k)\ne0$일 때는 항상 $x_{k+1}=x_k-f(x_k)/f'(x_k)$을 사용할 수 있습니다. 다음 값은 점 $x_k$에서의 접선이 수평축(x축)과 만나는 지점입니다.
- $f(x)=x^2-2$에 대해 시작점이 $x_0=1$이면 $x_1=3/2$과 $x_2=17/12\approx1.4167$를 얻는데, 이는 $\sqrt2\approx1.4142$에 가깝습니다. 하지만 시작점을 0로 바꿀 경우 $f'(0)=0$이 되어 공식이 정의되지 않게 됩니다.

$b_0=0$ 및 $b_n=2b_{n-1}+1$ for $n\ge1$. Find $b_5$.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The verified closed form is bₙ = 2ⁿ − 1. Thus b₅ = 32 − 1 = 31. Direct iteration gives 0, 1, 3, 7, 15, 31.
지지(For) $a_n=3a_{n-1}-2a_{n-2}$, $n\ge2$, with $a_0=0$ 및 $a_1=1$, prove $a_n=2^n-1$. Explain why only specifying $a_0=0$ would not determine this sequence.
The formula gives $a_0=0$ 및 $a_1=1$. Substitution yields $3(2^{n-1}-1)-2(2^{n-2}-1)=2^n-1$, so induction proves the formula for all $n\ge0$. If only $a_0=0$ were given, the all-zero sequence would also satisfy the recurrence and that initial value, but it has a different $a_1$. Both initial values matter.
정의된 뉴턴 스텝이 반드시 수렴하지는 않음
- 반복점에서의 비영 도함수는 업데이트를 가능하게 하지만 수렴을 보장하지는 않습니다. 시작값과 함수의 거동이 중요합니다. 반복 과정이 근으로부터 멀어지거나 순환에 빠질 수 있습니다.
- $f(x)=x^3-2x+2$의 경우, 0에서 시작합니다. 그러면 $f(0)=2$, $f'(0)=-2$이므로 다음 값은 1입니다. 1에서 $f(1)=1$, $f'(1)=1$이므로 다음 값은 0입니다. 두 도함수 모두 비영임에도 이 서열은 $0,1,0,1,\ldots$를 순환합니다.

Apply one Newton step to $f(x) = x^2 - 3$ from $x_0 = 2$.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
x₁ = x₀ − f(x₀)/f′(x₀) = 2 − (4 − 3)/(2 · 2) = 2 − 1/4 = 1.75, already close to √3 ≈ 1.732.
이 카드는 새로 추가되어 번역이 준비될 때까지 영어로 표시됩니다.
A defined Newton step need not converge
- Nonzero derivatives at the iterates make the updates possible; they do not guarantee convergence 收敛性. The starting value and the function's behaviour matter. An iteration can move away from a root or enter a cycle.
- For $f(x)=x^3-2x+2$, start at 0. Then $f(0)=2$, $f'(0)=-2$, so the next value is 1. At 1, $f(1)=1$, $f'(1)=1$, so the next value is 0. The sequence cycles $0,1,0,1,\ldots$ even though both derivatives are nonzero.
지지(For) $f(x)=x^3-2x+2$, Newton iteration starts at 0. It alternates between 0 and 1. What does this show?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
The derivatives are −2 at 0 and 1 at 1, so both updates are defined. Neither point is a root, and the two-cycle does not converge.
이분법은 검증된 구간을 유지합니다
- 이분법은 근을 찾아내는 기법으로 구간을 반복적으로 반으로 나누어 근이 포함됨을 유지합니다. $f$가 $[a,b]$에서 연속이고 $f(a)f(b)<0$이어야 합니다. 중간값 정리에 의해 최소 하나의 근이 보장됩니다. 끝점이 이미 근이라면 이를 반환합니다.
- $c=(a+b)/2$을 테스트합니다. $f(c)=0$이면 종료하고, 그렇지 않으면 끝점에서 부호가 반대인 절반을 유지합니다. 연속성이 중요합니다: $1/x$은 $-1$과 1에서 부호가 반대이지만, 0에서는 정의되지 않고 근이 없습니다.
구간 너비를 오차 한계로 변환하기
- 초기 구간의 길이가 $L$라면, $k$번의 반으로 나누기 후 남은 구간의 너비는 $L/2^k$입니다. 그 현재 구간의 중점은 남은 근으로부터 $L/2^{k+1}$ 이내의 거리에 있습니다. 이 중점은 이미 테스트한 마지막 점이 아닐 수 있습니다.
- $x^2-2$에 대해 $[1,2]$에서 첫 번째로 남은 구간은 $[1,1.5]$와 $[1.25,1.5]$입니다. 두 번의 반으로 나누기 후 현재 중점은 $1.375$이며 오차는 최대 $0.125$입니다. 네 번의 반으로 나누기 후 중점 오차 한계는 $1/32=0.03125$입니다.
An initial continuous sign-change bracket has length 1. After four retained bisection halvings, what is the guaranteed absolute error bound for the midpoint of the current bracket?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The current width is 1/2⁴ = 1/16. Its midpoint is at most half that width from a retained root: 1/32 = 0.03125. The question asks about the current midpoint, not the last tested midpoint.
지지(For) $f(x)=x^3-x-1$, justify bisection on $[1,2]$, find the first retained half, and find the least number of retained halvings needed to bound the current midpoint error by 0.01. Explain why the same sign argument cannot be used for $1/x$ on $[-1,1]$.
The polynomial is continuous, with $f(1)=-1$ 및 $f(2)=5$. At $1.5$, $f(1.5)=0.875>0$, so retain $[1,1.5]$. The original length is 1, and after k retained halvings the current midpoint error is at most $1/2^{k+1}$. Five halvings give $1/64>0.01$; six give $1/128<0.01$, so six suffice and are the least number certified by this bound. The function $1/x$ is not continuous on $[-1,1]$ and has no root; opposite signs alone do not meet the theorem’s hypotheses.
정리를 뒤집을 때 반드시 확인해야 함
- 트리는 $n-1$개의 간선을 가집니다. 그러나 이 간선 수만으로는 그래프가 트리임을 보장할 수 없습니다. 삼각형과 고립된 정점이 결합된 구조는 4개의 정점과 3개의 간선을 가지지만 연결되지 않았고 순환을 포함합니다. 단순 무방향 그래프의 경우, 연결성과 $n-1$개의 간선이 트리가 됨을 의미합니다.
- 연속 함수에서의 부호 변화는 근이 있음을 보장하지만, 근이 반드시 부호 변화를 주지는 않습니다. 함수 $x^2$은 0에서 근을 가지지만 $[-1,1]$의 양 끝점에서 양수 값을 가집니다. 부호 변화 테스트 실패가 근이 없음을 증명하는 것은 아닙니다.
제시된 검정이 무엇을 확인하는가?
이분법 근 증명, 정의된 뉴턴 단계 및 결락된 조건을 구분하시오.
모델과 보증을 분리하여 유지하기
- 확률을 세기 전에 순서, 반복성, 동등 확률 가정 등을 명시하십시오. 이항 분포 모델을 사용하기 전에 독립성과 일정한 성공 확률을 확인하십시오. 재귀 공식을 규칙과 초기 값 모두에 대해 검증하십시오.
- 뉴턴 업데이트는 비영 도함수가 필요하지만 여전히 순환할 수 있습니다. 이분법은 연속적인 부호 변화 구간이 필요하며, 남은 구간 너비는 엄밀한 중점 오차 한계를 제공합니다. 충분 조건과 필수 조건을 구분하십시오.
Assess these claims with counterexamples: (i) Every simple undirected graph with n vertices and n − 1 edges is a tree. (ii) If a continuous function has a root in an interval, its endpoint values have opposite signs.
(i) A triangle plus an isolated vertex is a simple graph with 4 vertices and 3 edges. It is disconnected and contains a cycle, so it is not a tree. Connectivity is an additional sufficient condition with that edge count. (ii) The continuous function $f(x)=x^2$ on $[-1,1]$ has root 0 but both endpoint values equal 1. A sign change is sufficient for a continuous function to have a root, but is not necessary.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.