Command algorithmic already defined
algorithmic包是比较老的包,与algpseudocode不兼容。
正确使用方法:
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
用algorithmicx替代algorithmic。
algorithmic里的伪代码都是大写的,algorithmicx里的伪代码是驼峰命名的,
例如algorithmic里的\ENDIF在algorithmicx里是\EndIf。
algorithmicx文档:https://ctan.org/pkg/algorithmicx

浙公网安备 33010602011771号