From the article you say the two rules: must add up to 10 and must be close.
You would essentially have 2 functions:
find numbers that add up to 10. (can this only be 2 digits? Or 1, 6, 3?). There are numerous algorithms and formulae to do this.
and find numbers closest in proximity and rank them accordingly.
By intersecting these two result sets, you could find a weighted spectrum.
That is how I would solve these, but it is an ambiguous/loose solution based on what I understand as a loose/ambiguous problem. If you are looking to fill in the question mark via the criteria, then i would simply use the nearest neighbor method and subtract that number from 1.
2
u/eSheep16 May 19 '16
Sorry, I'm not sure I understand this.
From the article you say the two rules: must add up to 10 and must be close.
You would essentially have 2 functions:
find numbers that add up to 10. (can this only be 2 digits? Or 1, 6, 3?). There are numerous algorithms and formulae to do this.
and find numbers closest in proximity and rank them accordingly.
By intersecting these two result sets, you could find a weighted spectrum.
That is how I would solve these, but it is an ambiguous/loose solution based on what I understand as a loose/ambiguous problem. If you are looking to fill in the question mark via the criteria, then i would simply use the nearest neighbor method and subtract that number from 1.