我正在使用旧的乳胶代码,它当时可以工作,但现在输出似乎出乎意料。
我正在使用以下软件包:
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{algorithmic}
\usepackage{algcompatible}
输出结果直接显示了部分不需要的代码。代码中有需要显示的注释。
代码如下:
\BEGIN{ALGORITHM}[T]
\CAPTION{blabla}
\LABEL{blabla}
\BEGIN{ALGORITHMIC}[1]
\PROCEDURE{}{}
\STATE \TEXTBF{INPUT}: blabla, blabla, blabla, blabla $\MATHBB{blabla}$
\STATE \TEXTBF{OUTPUT}: blabla, blabla, blabla, blabla $\MATHBB{blabla}$
\STATE $N=LOG$ {\ALGORITHMICCOMMENT{\TINY ESTIMATION}}
\WHILE{$N$ DOES}
\STATE CONSTRUCT ALL
\FOR{(ALL RANGE)}
\STATE CONSTRUCT
\STATE IMPLEMENT OB
\STATE TRY
\ENDFOR
\IF{($N$ DOES NOT C)}
\STATE $N=N+1$
\ENDIF
\IF{($N$ CONV)}
\ENDIF
\ENDWHILE
\ENDPROCEDURE
\PROCEDURE{}{}
\STATE \TEXTBF{INPUT}:}: blabla, blabla, blabla, blabla $\MATHBB{blabla}$
\STATE \TEXTBF{OUTPUT}: }: blabla, blabla, blabla, blabla $\MATHBB{blabla}$
\STATE ASSUME CHIP WIDTH AND CHIP HEIGHT {\ALGORITHMICCOMMENT{\TINY INITIA}}
\WHILE{SOLUTION EXISTS}
\STATE CONSTRUCT
\FOR{(ALL RANGES)}
\STATE IMPLEMENT
\STATE
\ENDFOR
\IF{()}
\STATE $CHIP \;WIDTH=CHIP\;WIDTH-1$
\ENDIF
\ENDWHILE
\ENDPROCEDURE
\END{ALGORITHMIC}
\END{ALGORITHM}