11 lines
306 B
TeX
11 lines
306 B
TeX
\begin{algorithmic}
|
|
\Function{GRASP}{$N, P$}
|
|
\For{$i = 1..N$}
|
|
\State $S_i \gets \Call{heuristiqueConstructive}{P}$
|
|
\State $S_i \gets \Call{rechercheLocale}{P, S_i}$
|
|
\EndFor
|
|
\State $S^* \gets \Call{sélection}{\{S_1, S_2, \dots, S_{N}\}}$
|
|
\State \Return $S^*$
|
|
\EndFunction
|
|
\end{algorithmic}
|