-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
989 additions
and
44 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...versity/informatics/amp_2019_algorithm.md → ...rsity/informatics/amp_201908_algorithm.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sity/informatics/amp_2019_graph_theory.md → ...ty/informatics/amp_201908_graph_theory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sity/informatics/amp_2020_graph_theory.md → ...ty/informatics/amp_202008_graph_theory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...versity/informatics/amp_2021_algorithm.md → ...rsity/informatics/amp_202108_algorithm.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sity/informatics/amp_2021_graph_theory.md → ...ty/informatics/amp_202108_graph_theory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sity/informatics/amp_2022_graph_theory.md → ...ty/informatics/amp_202208_graph_theory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sity/informatics/amp_2023_graph_theory.md → ...ty/informatics/amp_202308_graph_theory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...iversity/informatics/ams_2021_kiso_1_2.md → ...ersity/informatics/ams_202108_kiso_1_2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ty/informatics/cce_2021_senmonkiso_A_1.md → .../informatics/cce_202108_senmonkiso_A_1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ty/informatics/cce_2021_senmonkiso_A_2.md → .../informatics/cce_202108_senmonkiso_A_2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...versity/informatics/ist_2019_kiso_f1_1.md → ...rsity/informatics/ist_201908_kiso_f1_1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ersity/informatics/ist_2019_senmon_s_2.md → ...sity/informatics/ist_201908_senmon_s_2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...versity/informatics/ist_2021_kiso_f1_2.md → ...rsity/informatics/ist_202108_kiso_f1_2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
docs/kakomonn/kyoto_university/informatics/ist_202308_kiso_f2_1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
comments: false | ||
title: 京都大学 情報学研究科 知能情報学専攻 2023年8月実施 情報学基礎 F2-1 | ||
tags: | ||
- Kyoto-University | ||
--- | ||
# 京都大学 情報学研究科 知能情報学専攻 2023年8月実施 情報学基礎 F2-1 | ||
|
||
## **Author** | ||
祭音Myyura | ||
|
||
## **Description** | ||
設問 max ヒープは根以外のノードの値が必ず親クードの値の大きさ以下になっている、おおよそ完全二分木である。 | ||
max ヒープはインデックスが 1 から始まる配列として表現でき、インデックス i のノードの親ノード、左の子ノード、右の子ノードのインデックスはそれぞれ、Parent(i)=$\lfloor \frac{\text{i}}{2} \rfloor$、Left(i) = 2i、Right(i) = 2i+1 として求められる。 | ||
ただし、$\lfloor \cdot \rfloor$ は床関数である。 | ||
|
||
(1) インデックス $i$ のノードを根とする部分木が max ヒープとなるように変換する再帰的関数 MaxHeapify を表す次の疑似コードをそれぞれの四角 ((1-a)、(1-b)、(1-c)、(1-d)) を埋めることにより完成させよ。この疑似コードでは、インデックス $i$ の左の子ノードと右の子ノードを根とする部分木はともに max ヒープであると仮定する。 | ||
|
||
<figure style="text-align:center;"> | ||
<img src="https://raw.githubusercontent.com/Myyura/the_kai_project_assets/main/kakomonn/kyoto_university/informatics/ist_202308_kiso_f2_1_p1.png" width="700" height="358" alt=""/> | ||
</figure> | ||
|
||
ただし、A.heapsize は配列 A に格納されているヒープを構成する要素の数を表す。(3) で用いる A.length は配列 A そのものの大きさを表し、A.heapsize $\le$ A.length である。 | ||
|
||
(2) (1) の MaxHeapify に長さ n の整数列を与えたときの最悪実行時間の漸近的上界をビッグオー記法を用いて答えよ。ただし、オーダーとして最も低いものを答えること。 | ||
|
||
(3) (1) の MaxHeapify を用いて任意の整数列を昇順にソートするアルゴリズム HeapSort を表す次の疑似コードをそれぞれの四角 ((3-a)、(3-b)、(3-c)) を埋めることにより完成させよ。ただし、(3-a) には考えうる最も小さい値を入れること。 | ||
|
||
<figure style="text-align:center;"> | ||
<img src="https://raw.githubusercontent.com/Myyura/the_kai_project_assets/main/kakomonn/kyoto_university/informatics/ist_202308_kiso_f2_1_p2.png" width="700" height="235" alt=""/> | ||
</figure> | ||
|
||
(4) (3) のアルゴリズムに長さ n の整列されていない整数列を与えをたときの最悪実行時間の漸近的上界をビッグオー記法を用いて答えよ。ただし、オーダーとして最も低いものを答えること。 | ||
|
||
(5) (3) のアルゴリズムに長さ n の降順に整列された整数列を与えたときの実行時間の漸近的上界をビッグオー記法を用いて答えよ。ただし、オーダーとして最も低いものを答えること。 | ||
|
||
|
||
## **Kai** | ||
### (1) | ||
- (1-a): A\[lft\] > A\[largest\] | ||
- (1-b): A\[rgt\] > A\[largest\] | ||
- (1-c): largest != i | ||
- (1-d): MaxHeapify(A, largest) | ||
|
||
### (2) | ||
$O(\log n)$ | ||
|
||
### (3) | ||
- (3-a): $\lfloor \frac{\text{A.heapsize}}{2} \rfloor$ | ||
- (3-b): MaxHeapify(A, i) | ||
- (3-c): MaxHeapify(A, 1) | ||
|
||
### (4) | ||
$O(n \log n)$ | ||
|
||
### (5) | ||
$O(n \log n)$ |
4 changes: 2 additions & 2 deletions
4
...rsity/informatics/sys_2019_senmon_stat.md → ...ity/informatics/sys_201908_senmon_stat.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
docs/kakomonn/kyushu_university/ISEE/kyotsu_2023_analysis_calculus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
--- | ||
comments: false | ||
title: 九州大学 システム情報科学府 情報理工学専攻 2023年度 解析学・微積分 | ||
tags: | ||
- Kyushu-University | ||
--- | ||
# 九州大学 システム情報科学府 情報理工学専攻 2023年度 解析学・微積分 | ||
|
||
## **Author** | ||
Yu | ||
|
||
## **Description** | ||
(1) $\mathbb{{R}}$ 上の関数 $f(x) = \cos x$ の $k$ 階導関数を $f^{(k)}(x)$ で表す。ただし, は実数全体の集合である。以下の各問いに答えよ。 | ||
|
||
$\quad$ (a) 全ての $k \ge 1$ について $f^{(k)}(0)$ を求めよ。 | ||
|
||
$\quad$ (b) $f(x)$ の原点周りでのテイラー級数を | ||
|
||
$$ | ||
\sum_{k=0}^{\infty}a_{k}x^{k} | ||
$$ | ||
|
||
とするとき, 全ての $k \ge 0$ 関する $a_k$ を求めよ。 | ||
|
||
$\quad$ (c) 全ての $x \in \mathbb{R}$ について | ||
|
||
$$ | ||
\sum_{k=0}^{\infty}|a_{k}x^{k}| | ||
$$ | ||
|
||
が収束することを示せ。 | ||
|
||
(2) 次の微分方程式の一般解を求めよ。なお, $y'$ は関数 $y(x)$ の $x$ に関する $1$ 階導関数を表している。 | ||
|
||
$$ | ||
y'''' - 2y''' - y'' - 4y' + 12y = 0 | ||
$$ | ||
|
||
(3) 閉曲線 $C$ に沿った複数積分 $\oint_{C} \frac{1}{z(z^2 - 1)}$ を求めよ。ただし, $C$ は円 $|z| = r,r > 0$ かつ $r \neq 1$ とする。 | ||
|
||
## **Kai** | ||
### (1) | ||
#### (a) | ||
|
||
$$ | ||
f^{k}(0) = | ||
\left\{ | ||
\begin{aligned} | ||
1 , &k \equiv 0 \quad (\text{mod} \quad 4) \\ | ||
0 , &k \equiv 1 \text{or} 3 \quad(\text{mod} \quad 4) \\ | ||
-1 , &k \equiv 2 \quad (\text{mod} \quad 4) | ||
\end{aligned} | ||
\right. | ||
$$ | ||
|
||
#### (b) | ||
|
||
$$ | ||
a_k = \frac{f^{k}(0)}{k!} = | ||
\left\{ | ||
\begin{aligned} | ||
\frac{1}{k!} , \quad &k \equiv 0 \quad (\text{mod} \quad 4) \\ | ||
0, \quad &k \equiv 1 \text{or} 3 \quad (\text{mod} \quad 4) \\ | ||
\frac{-1}{k!} ,\quad &k \equiv 2 \quad (\text{mod} \quad 4) | ||
\end{aligned} | ||
\right. | ||
$$ | ||
|
||
#### (c) | ||
|
||
$$ | ||
\sum_{k = 0}^{\infty}|a_{k}x^{k}| = 1 + \frac{x^2}{2!} + \frac{x^4}{4!} + \cdots = \sum_{n = 0}^{\infty} \frac{x^{2n}}{(2n)!} | ||
$$ | ||
|
||
$$ | ||
\lim_{n \rightarrow \infty} \frac{a_{n + 1}}{a_{n}} = \lim_{n \rightarrow \infty} \frac{x^2}{(2n + 2)(2n + 1)} = 0 | ||
$$ | ||
|
||
### (2) | ||
|
||
$$ | ||
\begin{aligned} | ||
r^4 - 2r^3 - r^2 &- 4r + 12 = 0\\ | ||
(r - 2)^2 (r^2 &+ 2r + 3) = 0\\ | ||
r_1 = 2,r_2 = 2,r_3 = &-1 + \sqrt{2}i,r_4 = -1 - \sqrt{2}i\\ | ||
y = e^{2x}(c_1 + c_2x) + &e^{-x}(c_3\cos\sqrt{2}x + c_4\sin\sqrt{2}x) | ||
\end{aligned} | ||
$$ | ||
|
||
### (3) | ||
|
||
$$ | ||
f(z) = \frac{1}{z(z^2 - 1)} \text{とおくと}, | ||
$$ | ||
|
||
$$ | ||
0 < r < 1\text{のとき}, z = 0\text{は}1\text{位の極である。} | ||
$$ | ||
|
||
$$ | ||
\text{res}f(0) = \lim_{z \rightarrow 0}z \frac{1}{z(z^2 - 1)} = \frac{1}{z^2 - 1}\bigg|_{z = 0} = -1 | ||
$$ | ||
|
||
$$ | ||
\oint_{C}f(z)\text{d}z = 2\pi i\text{res}f(0) = -2\pi i | ||
$$ | ||
|
||
$$ | ||
r > 1\text{のとき}, z = 0,z = \pm 1 \text{は}1\text{位の極である。} | ||
$$ | ||
|
||
$$ | ||
\text{res}f(-1) = \lim_{z \rightarrow -1}(z + 1) \frac{1}{z(z^2 - 1)} = \frac{1}{z(z - 1)}\bigg|_{z = -1} = \frac{1}{2} | ||
$$ | ||
|
||
$$ | ||
\text{res}f(1) = \lim_{z \rightarrow 1}(z - 1) \frac{1}{z(z^2 - 1)} = \frac{1}{z(z + 1)}\bigg|_{z = 1} = \frac{1}{2} | ||
$$ | ||
|
||
$$ | ||
\oint_{C}f(z)\text{d}z = 2\pi i [\text{res}f(0) + \text{res}f(-1) + \text{res}f(1)] = 0 | ||
$$ |
Oops, something went wrong.