知识卡片

普通读书笔记卡 · 3587

伪代码不覆盖工程异常

理解等级:中级

伪代码优先展示算法的核心步骤,通常省略依赖运行环境的异常处理等工程细节。

把书中伪代码移植为程序时,仍须补上输入边界、错误处理和资源约束;不能把算法描述直接当作可交付实现。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 前言 · 查看原书依据

      We have designed the pseudocode to present each algorithm clearly and succinctly. Consequently, we do not address error handling and other software-engineering issues that require specific assumptions about your programming environment. We attempt to present each algorithm simply and directly without allowing the idiosyncrasies of a particular programming language to obscure its essence.

    参考来源

    - 位置:《算法导论(第4版)》前言(源文件:`OEBPS/preface001.xhtml`) - 结论依据:前言说明伪代码为清楚呈现算法而省略依赖具体编程环境的错误处理与软件工程问题;移植时需自行补足这些边界。 - 原始内容:We have designed the pseudocode to present each algorithm clearly and succinctly. Consequently, we do not address error handling and other software-engineering issues that require specific assumptions about your programming environment. We attempt to present each algorithm simply and directly without allowing the idiosyncrasies of a particular programming language to obscure its essence.