对于初学者,如何在我的科学论文中使用伪代码?

问题描述 投票:0回答:3

我是管理科学领域的博士生。在最近的一篇论文中,我的主管要求我使用伪代码来描述我的算法。

这是我第一次听到“伪代码”一词。我该如何学习伪代码?希望得到经验丰富的老年人的指导,谢谢!

pseudocode
3个回答
0
投票

[人工智能:一种现代方法是我使用我的AI类的书,其中包含成千上万的pseudocode用于算法。

您可以在此处找到pdf版本:https://github.com/yanshengjia/ml-road/blob/master/resources/Artificial%20Intelligence%20-%20A%20Modern%20Approach%20(3rd%20Edition).pdf

本书中的示例伪代码:

function Table-Driven-Agent(percept) returns an action
    persistent: percepts, a sequence, initially empty
        table, a table of actions, indexed by percept sequences, initially fully specified

    apped percept to the end of percepts
    action <- Lookup(percepts, table)
    return action


0
投票
© www.soinside.com 2019 - 2024. All rights reserved.