Jump to content

Algorithmes en pseudo language

Recommended Posts

à mon avis, c'est du Latex ton image.

si tu veux, je te donne un exemple en latex :

\centerline{\textbf{Algo~1: Mobile-agent behaviour}}


\hspace{0mm}\textsc{Initialization:} $s_1\rightarrow s_c$

%\hspace{0mm}\textsc{Main loop}


\hspace{3mm}If $s_c=s_N$ \texttt{// A local agent is found!}

\hspace{6mm}Go back to the nest

\hspace{3mm}Else \texttt{// Look forward}

\hspace{6mm}Go to site $s_j$ with probability
$\displaystyle\frac{Ph_j(t)}{\sum_{l=1}^k Ph_l(t)}+\xi$


\hspace{6mm}with $k=|succ(s_c)|$

\hspace{3mm}End If

\hspace{0mm}While $s_N$ not found or $prof<\theta$\\[-2mm]


c'est un peu barbare, mais ça se rapproche de ce que tu veux faire :pleure:

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...