Skip to content

Week-11 (Sample-11)

Sample Course Name

Week-11 (Sample Course Module Name)

Spring Semester, 20XX-20XX

Download DOC, SLIDE, PPTX


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,

center h:400px


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,

bg right:50% h:400px


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,

bg left:50% h:400px


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,

bg h:400px


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,

bg left:50% h:800px bg left:50% h:800px


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,

bg left:50% h:300px bg left:50% h:500px


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


\(End-Of-Week-11-Module\)


Last update: March 6, 2022
Back to top