遗传编程的实施
我熟悉遗传编程的一般性,但想知道在哪里可以找到一些可以向我展示实现遗传编程的细节的东西。 我使用 C# 和 .NET 3.5,我想将遗传编程用于寻路之类的事情,通常只是想看看它能做什么。 编辑:我可能应该澄清我正在寻找的内容:我感兴趣的是使用哪种数据结构来存储语法树,如何执行繁殖操作,诸如此类的事情。
I am familiar with the generalities of genetic programming but am wondering where i might find something that shows me details of implementing genetic programming. I use C# and .NET 3.5, and I would like to put to use genetic programming for things like pathfinding, and generally just want to see what it can do.
EDIT: I should probably clarify what I'm looking for: I'm interested in what sort of data structures would be used to store the syntax trees, how a breeding operation might be performed, that sort of thing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是对 C++ HelloWorld 示例之一的快速重写这帮助我学习遗传编程:
可能会有一些小错误,但除此之外它看起来工作正常。 也可以本着 C# 的精神写得更好,但这些只是细节。 :)
Here is a quick rewrite of one of C++ HelloWorld examples that helped me learn genetic programming:
There might be some minor errors but otherwise it looks it's working ok. Also it could be written better in spirit of C# but those are just details. :)
罗杰·阿尔辛的《蒙娜丽莎》项目就是一个很好的例子。
http://rogeralsing.com/2008/12 /07/Genetic-programming-evolution-of-mona-lisa/
编辑:我喜欢这个例子的原因是因为它相当小且易于理解。 这是掌握遗传编程概念的一种快速而简单的方法。
Roger Alsing's Mona Lisa project is a quite good example.
http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/
EDIT: The reason I like the example is because it rather small and easy to understand. Its a quick and easy way to grasp the concept of genetic programming.
您可以查看 适者生存:Windows 窗体的自然选择 。
编辑:请参阅我刚刚发现的上一个问题。 这几乎是重复的。 抱歉,您不明白该链接(最好在问题中提及这些内容)。 此外,即使答案已被接受,另一个问题仍然有待更多答案/编辑。
You could look at Survival of the Fittest: Natural Selection with Windows Forms.
EDIT: See this previous SO question, which I just found. It's pretty much a duplicate. Sorry you don't understand the link (it's good to mention such things in the question). Also, the other question is still open for more answers/edits, even though an answer has been accepted.
您可以尝试 Sean Luke 的 ECJ(Java 中的进化计算)的 C# .NET 4.0 端口:
http://branecloud.codeplex.com
这是一个非常灵活且功能强大的软件! 但它也相对容易上手,因为它包含许多开箱即用的工作控制台示例(以及在转换过程中开发的许多有用的单元测试)。
本
You can try this C# .NET 4.0 port of Sean Luke's ECJ (Evolutionary Computation in Java):
http://branecloud.codeplex.com
It is very flexible and powerful software! But it is also relatively easy to get started because it includes many working console samples out-of-the-box (and many helpful unit tests that were developed during the conversion).
Ben