If anyone has read the book "Stochastic Modeling : Analysis and Simulation by Berry L. Nelson", can you tell me in what programming language are the algorithms written in the book? Here is an example of one of the algorithm -
$U\leftarrow random()$
i $\leftarrow$ 1
$until \space U$ $\le$ $F_x(a_i)$
do
$i \leftarrow i + 1$
enddo
$X \leftarrow a_i$
return $X$
I suspect it's pseudocode. R uses
<-
for assignment, andreturn(X)
for returns. Programming languages typically stick to the ASCII characters (32-127), and $\leftarrow$ isn't one of them, whereas professors are inordinately fond of $\leftarrow$ for assignment and pseudo-Algol block delimiters. If the intent were to actually use R, I'd think he would... actually use R. Further evidence that the book is language-agnostic: the Preface to the Solutions Manual states: