C# 算法可视化

发布于 2024-08-07 23:45:24 字数 65 浏览 11 评论 0 原文

有没有可以从代码中可视化算法的软件?作为类似的流程图。不是依赖、继承之类的东西,而是一个函数或一系列函数内部的代码。

Is there any software that visualizes algorithms from code? As a flow chart of something similar. Not dependencies, inheritance and that kind of thing, but the code inside a function, or a series of functions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

如果没结果 2024-08-14 23:45:24

我不知道函数内部的情况,但 VS2010 可以从代码生成序列图 - 请参阅 此处此处

序列图

I don't know about inside a function, but VS2010 has sequence diagram generation from code - see here or here

Sequence diagram

↙厌世 2024-08-14 23:45:24

我想您可能正在寻找Code Rocket

它提供了代码方法和算法的流程图和伪代码可视化,直接嵌入到 Visual Studio 和 Eclipse 中 - 并且还有一个单独的设计器应用程序用于与 IDE 一起工作。

I think you may be looking for Code Rocket.

It provides flowchart and pseudocode visualizations of code methods and algorithms, embedded directly inside Visual Studio and Eclipse - and there is a separate Designer application for working outwith IDEs too.

凉宸 2024-08-14 23:45:24

AiVosto 有一套工具可以可视化多种语言的源代码:Visustin。它已经上市很长时间了。我很久以前就尝试过,但并不是100%被说服。也许您想尝试一下并评估它是否值得您花钱。

对我来说,为了理解一些复杂的算法,无论如何我都必须对其进行实验,拥有图表会有所帮助,但作为一名编码员,您可能可以在没有软件的情况下很好地可视化循环和决策树。我不想阻止您使用它,只需在投资之前尝试一下,拥有图表很好,但也很有用。

AiVosto has a set of tools to visualize source code from many languages: Visustin. It is on the market since a long time. I tried it a very long time ago, was not 100% convinved. Maybe you want to give it a try and evaluate if it's worth the money for you.

For me it was so that in order to understand some complex algorithm, I have anyway to experiment with it, having a graph helps a bit but as a coder you probably can visualize loops and decision trees well without software. I don't want to discourage you from using that, just try it out before investing money, having graphs is nice but shall also be useful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文