MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Mathematic problem with backtrack


I have a question about math with backtrack.
I have number 1,2,3,4,5,6,7,8,9 and operand +,-,*,/ also an input.
with number and operand try to make an mathematic expresion so the result equal to input, use backtrack algorithm.

example 
input:39
so the expression is 12+34-5+6-7+8-9

the expression can be more then one and the number must in position cannot be 21,54 and etc.

Thank you 


What are you N2?  Choose from 150 free e-mail addresses.
http://www.n2mail.com


  • Prev by Date: About N in Mathematica 4
  • Next by Date: just doesn't work
  • Previous by thread: Re: About N in Mathematica 4
  • Next by thread: just doesn't work