• GA but for functions
    4 replies, posted
I am interested in writing a program to evolve a set of instructions. For example, in my case the program would be given a few variables, and a few functions, and would be scored based on its ability to best produce the result that I want. It's like Genetic Algorithms, but for the program itself... Does anything like this exist, is there theory or code for this that I might avail myself of?
[url=http://www.ai-junkie.com/ga/intro/gat3.html]This place[/url] tells how to make a GA in general, but uses something similar to what you want as an instructional tool.
Cool, thanks.
You'd have to learn the byte code structure of the language you are using (if it's interpreted) and you'll have to be able to make a program to translate machine code back to your language for compiled languages.
Or you could just keep it in AST format if you're compiling and decompiling. Compiling and decompiling is far less direct, and I'd trade the simplicity of the data structures involved for a certain level of guaranteed validity.
Sorry, you need to Log In to post a reply to this thread.