用 C 语言进行遗传编程?
我想使用基于符号回归的遗传编程创建一种算法。
我读了一些关于这方面的文章,一些用 java 或 c++ 编写的示例。
也许更困难,因为它不是 OOP,但是可以用 C 开发遗传编程吗?
你对我开始编程有何建议?有什么书籍/文章/例子可供阅读吗? 我尝试用谷歌搜索,但没有发现任何有趣的东西..
谢谢,干杯。
I want to create an algorithm using genetic programming, based on symbolic regression.
I read some articles about that, some examples written on java or c++.
Maybe is more difficult because it isn't OOP, but is it possible to develop genetic programming in C?
What do you suggest to me to start programming? Any books/articles/examples to read?
I tried googling about that, but I didn't find anything interesting..
Thank you, cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我过去使用过 GAUL ,并且我相当确定它是为与 C 一起使用而编写的。我的工作。
I've used GAUL in the past, and I'm fairly certain it's written to work with C. It did the job for me.
如果您开始编程,我强烈推荐一种现代语言,它带有丰富的库,并且对初学者的错误更宽容。
大多数语言都可以使用免费环境,我个人建议使用 C#(使用免费的 MS 工具或 Mono)或 Java(使用 Eclipse)。
Groovy 或 Python 也是不错的选择。
你绝对不会从 C 开始,假设你不受某些特定环境的限制,你的解决方案必须在仅支持 C 的基础上运行。
只是我的 2c ;-)
干杯,
杰伊
If you're starting to program I highly recommend a modern language that comes with a rich set of libraries and is more forgiving to beginner's mistakes.
Free environments are available for most languages, personally I'd suggest C# (using either the free MS stuff or Mono) or Java (using Eclipse).
Groovy or Python are good choices, too.
You most definitely won't start with C, that is assuming you're not constrained by some particular environment your solution has to run on that only supports C.
Just my 2c ;-)
Cheers,
Jay
用C语言实现遗传算法肯定是可以的。如果你只是想专注于算法实验,而不了解机器细节,并且还不了解C语言,那么我推荐Python。
It's definitely possible to implement genetic algorithm with C. If you just wanna focus on the algorithm experiments without the machine details and have not yet known C, then I recommend python.
TinyGP 最初是用 C 编写的,所以是的,可以实现遗传编程对于遗传编程,我会推荐遗传编程领域指南,因为它是免费的可用并且有很多参考资料。它非常注重实用,但不如其他文本那么彻底。
TinyGP was originally written in C so yes, it is possible to implement genetic programming with C. For genetic programming I would recommend the Fiueld Guide to Genetic Programming since its freely available and has a lot of references. It is very practically-oriented but not as thorough as other texts.