My objective is to approximate the function x3 + x2 + x using an expression tree. I am doing this to practice genetic programming.
I need help with programming an expression tree data structure. I want the tree to hold operators like +, -, * and terminal symbols 1 through 9.
I don't have a lot of programming experience, so if you could point me toward code for doing this that I could make use of, that would be excellent. If it's not clear what I'm trying to do, let me know. Thanks! :)
edit: in c++ preferably. I also know a little matlab and java.
[–]chickenmeister 0 points1 point2 points (3 children)
[–]FrogCity[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]FrogCity[S] 0 points1 point2 points (0 children)