\setcounter{AlgoLine}{0}
\DontPrintSemicolon
	{\KwIn{$s_p$ trivial partial solution; set $E$ of elements constituting a solution; pilot heuristic $h(s_e)$ for completing a partial solution $s_e$; fitness function $f(s)$}
		\KwResult{Complete solution $s*$}
		$R \leftarrow E$\tcp*[r]{Elements that can be added to $s$}
		\While{$R \neq \varnothing$ }
		{$v \leftarrow \infty$\\
			\ForAll{$e \in R$}
			{Complete $s_p$ with $e$ to get $s_e$\\
				Apply $h(s_e)$ to get a complete solution $s$\\
				\If{$f(s) \leqslant v$}
				{$v \leftarrow f(s)$\\
					$s_r \leftarrow s_e$\\
					\If(Store the improved solution){$s$ is better than $s*$}
					{$s* \leftarrow s$
					}
				}
			}
			$s_p \leftarrow s_r $\tcp*[r]{Add an element to the partial solution $s_p$}
			Remove from $R$ the elements that cannot properly be added to $s_p$\\
		}
	}

