Week-16 (Final)
Sample Course Name¶
Week-16 (Sample Course Module Name)¶
Spring Semester, 20XX-20XX¶
Outline¶
- Sample Outline
- Sample Outline
- Sample Outline
- Sample Outline
Sample Topic¶
Sample Topic¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
- when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,
- but also the leap into electronic typesetting, remaining essentially unchanged.
- It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Sample Images-1¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Sample Images-2¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Sample Images-3¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Sample Images-4¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Sample Images-5¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Sample Images-6¶
- What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Latex Sample-1¶
\[
\begin{align}
\begin{aligned}
\text{compute } m[i,i+1] \\
\underbrace{ \{ m[1,2],m[2,3], \dots ,m[n-1,n]\} }_{(n-1) \text{ values}}
\end{aligned}
& \begin{cases}
& \ell=2 \\
& \text{for } i=1 \text{ to } n-1 \text{ do } \\
& \quad m[i,i+1]=\infty \\
& \quad \quad \text{for } k=i \text{ to } i \text{ do } \\
& \quad \quad \quad \vdots
\end{cases} \\
\begin{aligned}
\text{compute } m[i,i+2] \\
\underbrace{ \{ m[1,3],m[2,4], \dots ,m[n-2,n]\} }_{(n-2) \text{ values}}
\end{aligned}
& \begin{cases}
& \ell=3 \\
& \text{for } i=1 \text{ to } n-2 \text{ do } \\
& \quad m[i,i+2]=\infty \\
& \quad \quad \text{for } k=i \text{ to } i+1 \text{ do } \\
& \quad \quad \quad \vdots
\end{cases} \\
\begin{aligned}
\text{compute } m[i,i+3] \\
\underbrace{ \{ m[1,4],m[2,5], \dots ,m[n-3,n]\} }_{(n-3) \text{ values}}
\end{aligned}
& \begin{cases}
& \ell=4 \\
& \text{for } i=1 \text{ to } n-3 \text{ do } \\
& \quad m[i,i+3]=\infty \\
& \quad \quad \text{for } k=i \text{ to } i+2 \text{ do } \\
& \quad \quad \quad \vdots
\end{cases}
\end{align}
\]
Latex Sample-2¶
\[
\begin{align*}
& \text{OPTIMAL-BST-COST} (p, n) \\
& \quad \text{for} \ i \leftarrow 1 \ \text{to} \ n \ \text{do} \\
& \qquad c[i, i-1] \leftarrow 0 \\
& \qquad c[i, i] \leftarrow p[i] \\
& \qquad R[i, j] \leftarrow i \\
& \quad PS[1] \leftarrow p[1] \Longleftarrow PS[i] \rightarrow \text{ prefix-sum } (i): \text{Sum of all} \ p[j] \ \text{values for} \ j \leq i
\\
& \quad \text{for} \ i \leftarrow 2 \ \text{to} \ n \ \text{do} \\
& \qquad PS[i] \leftarrow p[i] + PS[i-1] \Longleftarrow \text{compute the prefix sum} \\
& \quad \text{for} \ d \leftarrow 1 \ \text{to} \ n−1 \ \text{do} \Longleftarrow \text{BSTs with} \ d+1 \ \text{consecutive keys} \\
& \qquad \text{for} \ i \leftarrow 1 \ \text{to} \ n – d \ \text{do} \\
& \qquad \quad j \leftarrow i + d \\
& \qquad \quad c[i, j] \leftarrow \infty \\
& \qquad \quad \text{for} \ r \leftarrow i \ \text{to} \ j \ \text{do} \\
& \qquad \qquad q \leftarrow min\{c[i,r-1] + c[r+1, j]\} + PS[j] – PS[i-1]\} \\
& \qquad \qquad \text{if} \ q < c[i, j] \ \text{then} \\
& \qquad \qquad \quad c[i, j] \leftarrow q \\
& \qquad \qquad \quad R[i, j] \leftarrow r \\
& \quad \text{return} \ c[1, n], R
\end{align*}
\]
TODO UPDATE CONTENT FOR YOUR COURSE NOTES
References¶
- https://avesis.erdogan.edu.tr/ugur.coruh
- https://www.linkedin.com/in/ugurcoruh/
- https://www.hindawi.com/journals/scn/2018/6563089/
- https://dl.acm.org/doi/abs/10.1145/3410352.3410836
- https://www.sciencedirect.com/science/article/abs/pii/S2214212621002623
\(End-Of-Week-16-Module\)
Last update:
March 6, 2022