User:Pet3ris/Sandbox

Testing LaTeX
$$\begin{align} &\mathcal{N}(\mu, \sigma^2) \\ &x \\ &1 + 2 + \dots + n = \frac{n(n+1)}2 \end{align}$$

$$f'(x) \ v.s. \ f^{\prime}(x)$$

$$text{something}$$

$$\mbox{arg max}_a$$

Pseudo code
We should not explictly terminate blocks. Example:

Explictly terminated blocks make all nodes level 1 j &larr; 1 while the number of nodes at level j > 1 do for each i'th node at level j do if i is odd if i is not the last node at level j        randomly choose whether to promote it to level j+1 else do not promote end if else if i is even and node i-1 was not promoted promote it to level j+1 end if repeat j &larr; j + 1 repeat

Implicitly (by indentation level) terminated blocks make all nodes level 1 j &larr; 1 while the number of nodes at level j > 1 for each i'th node at level j    if is odd if i is not the last node at level j        randomly choose whether to promote it to level j + 1 else do not promote else if i is even and node i - 1 was not promoted promote it to level j + 1 j &larr; j + 1

Implicitly (by indentation level) terminated blocks and "tab" size of four make all nodes level 1 j &larr; 1 while the number of nodes at level j > 1 for each i'th node at level j        if is odd if i is not the last node at level j                randomly choose whether to promote it to level j + 1 else do not promote else if i is even and node i - 1 was not promoted promote it to level j + 1 j &larr; j + 1