Compare commits

...

9 Commits

Author SHA1 Message Date
a7c8efd537 add review 14 15 2025-11-30 16:32:48 +09:00
68ad00a450 add review 12-4 13 pdf 2025-11-22 15:52:26 +09:00
ccf34b5dca add review 12-2 12-3 pdf 2025-11-16 14:10:46 +09:00
c96985c0d8 add review 10-3 12-1 pdf 2025-11-09 21:03:09 +09:00
3abf5a0f0b add review 10-1 10-2 pdf 2025-11-02 18:38:37 +09:00
c4ea7b971a add lecture pdf for midterm 2025-10-24 02:13:15 +09:00
aa95c26224 add R9a, R9b 2025-10-19 18:20:33 +09:00
a5ed6d3d07 add review 9*.pdf 2025-10-19 17:34:52 +09:00
e14250232b fix R8d.md and rebuild R8d.pdf 2025-10-12 19:32:21 +09:00
26 changed files with 116 additions and 3 deletions

44
notes/midterm.md Normal file
View File

@@ -0,0 +1,44 @@
# Alogorithm Midterm Access
## Sorting Problem
Comparison Sorts(Lower bound is $\Omega(n \lg n)$ because decision-tree model)
* Insertion Sort
* Selection Sort
* Merge Sort
* Quick Sort
* Heap Sort
Sorting In Linear Time
* Counting Sort
* Radix Sort
## Asymtotic Notation
* $Theta$-notation
* $O$-notation
* $\Omega$-notation
Transitivity, Reflexivity, Symmetry, Transpose Symmetry
Three methods for solving recurrences:
1. Substitution method
2. Recursion-tree method
3. Master method
**Getting asymtotic notation by recursion tree is important**
## Dynamic Programming
* Assembly-line scheduling
* Rod cutting
* Longest-Common Subsequence
* Matrix-chain Multiplication
## Greedy Algorithm
* An Activity Selection Problem
* Elements of the greedy strategy
* Huffman codes

BIN
out/reviews/R8d.pdf (Stored with Git LFS)

Binary file not shown.

BIN
out/reviews/R9a.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
out/reviews/R9b.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/1.Intro.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/15.Dynamic Programming.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/16.Greedy Algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/2.Getting Started.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/3.Growth of Functions.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/4.Divide-and-Conquer.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/6.Heapsort.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/7.Quicksort.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/8.Sorting in Linear Time.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 10 Amortized analysis.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 10-2 Amortized analysis.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 10-3 Amortized analysis.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 12-1 Elementary Graph Algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 12-2 Elementary Graph Algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 12-3 Elementary Graph Algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 12-4 Elementary Graph Algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 13 Disjoint Sets.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 14. Minimum Spanning Trees.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 15 shortest path.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 9-1 greedy algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
pdf/Review 9-2 greedy algorithms.pdf (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -20,7 +20,7 @@ $pqr$
## Problem 3
Count the number of scalar multiplications where the dimensions of $A_1$, $A_2$, and $A_3$$ are $10\times 100$, $100\times 5$ and $5\times 50$, respectively.
Count the number of scalar multiplications where the dimensions of $A_1$, $A_2$, and $A_3$ are $10\times 100$, $100\times 5$ and $5\times 50$, respectively.
1. $(A_1A_2)A_3$
2. $A_1(A_2A_3)$