Actually I am using Natural Nums 1-9.and Only + - * / these 4 operators can be used only once each. But the nums can repeat.
Ex : 11+ 31 = 42 is not applicable. And 40 + 1+1 = 42 is also Not Applicable;
but 6*6 + 6 = 42 is applicable;
anotheruser said:
Do you realize that this problem has an infinite amount of solution?
for instance:
6 * 7 is a solution
each of the two factors can be split up like this:
(9 - 3) * (3+4) -> This is N/A because after simplification it becomes 27 - 9 + 36 - 12 Here not only used Natural Nums > 9 but also two operator is used more than once.
I think you understand the Rules:
Rule1 = Only Natural Numbers 1-9 (!0) can be used and they can be used more than once
Rule2 = +,-,*,/ these 4 operators can be used and only once each. Brackets is N/A
as often as you want, creating an infinitely growing tree of possible solutions
You might be able to write a program that shows you all possible mathematical building-blocks to extend a given solution if you only allow natural numbers to be used.
You could also limit the degree how much mathematical functions may split, but I can't see how this would be possible otherwise.
So please give me some idea about Genetic Algo
Edited by Alexander, 25 October 2010 - 04:53 PM.
Merged three posts.