\chapter{روش پیشنهادی}

\algnewcommand\algorithmicswitch{\textbf{switch}}
\algnewcommand\algorithmiccase{\textbf{case}}
\algnewcommand\algorithmicassert{\texttt{assert}}
\algnewcommand\Assert[1]{\State \algorithmicassert(#1)}%
% New "environments"
\algdef{SE}[SWITCH]{Switch}{EndSwitch}[1]{\algorithmicswitch\ #1\ \algorithmicdo}   {\algorithmicend\ \algorithmicswitch}%
\algdef{SE}[CASE]{Case}{EndCase}[1]{\algorithmiccase\ #1}{\algorithmicend\     \algorithmiccase}%
\algtext*{EndSwitch}%
\algtext*{EndCase}%




\section{پیش‌گفتار}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\begin{algorithm}[H]
	

	\label{algo-average-without-misery}

		\begin{algorithmic}[1]
			\REQUIRE  $WCP-nets$
			\ENSURE  $\texttt{Recommend List}$  ( \rl{یا همان لیست مرتب مقادیر برای انتساب به متغیرها})
			
			\STATE  $\texttt{R} \gets null  ;$
		
			\RETURN $\texttt{Recommend List}$ 
		\end{algorithmic}

\end{algorithm}






