Sample Course Name

Sample Course Name

Week-8 (Sample Course Module Name)

Spring Semester, 20XX-20XX

Download DOC, SLIDE, PPTX

RTEU CE204 Week-8
Sample Course Name

Outline

  • Sample Outline
  • Sample Outline
  • Sample Outline
  • Sample Outline
RTEU CE204 Week-8
Sample Course Name

Sample Topic

RTEU CE204 Week-8
Sample Course Name

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.
RTEU CE204 Week-8
Sample Course Name

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

RTEU CE204 Week-8
Sample Course Name

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,
RTEU CE204 Week-8
Sample Course Name

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,
RTEU CE204 Week-8
Sample Course Name

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,
RTEU CE204 Week-8
Sample Course Name

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,
RTEU CE204 Week-8
Sample Course Name

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,
RTEU CE204 Week-8
Sample Course Name

Latex Sample-1

compute m[i,i+1]{m[1,2],m[2,3],,m[n1,n]}(n1) values{=2for i=1 to n1 do m[i,i+1]=for k=i to i do compute m[i,i+2]{m[1,3],m[2,4],,m[n2,n]}(n2) values{=3for i=1 to n2 do m[i,i+2]=for k=i to i+1 do compute m[i,i+3]{m[1,4],m[2,5],,m[n3,n]}(n3) values{=4for i=1 to n3 do m[i,i+3]=for k=i to i+2 do \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}

RTEU CE204 Week-8
Sample Course Name

Latex Sample-2

OPTIMAL-BST-COST(p,n)for i1 to n doc[i,i1]0c[i,i]p[i]R[i,j]iPS[1]p[1]PS[i] prefix-sum (i):Sum of all p[j] values for jifor i2 to n doPS[i]p[i]+PS[i1]compute the prefix sumfor d1 to n1 doBSTs with d+1 consecutive keysfor i1 to nd doji+dc[i,j]for ri to j doqmin{c[i,r1]+c[r+1,j]}+PS[j]PS[i1]}if q<c[i,j] thenc[i,j]qR[i,j]rreturn c[1,n],R\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*}

RTEU CE204 Week-8
Sample Course Name

TODO UPDATE CONTENT FOR YOUR COURSE NOTES

RTEU CE204 Week-8
Sample Course Name

References

RTEU CE204 Week-8
Sample Course Name

EndOfWeek8ModuleEnd-Of-Week-8-Module

RTEU CE204 Week-8