Talk:Sum to 100: Difference between revisions

(moved a section of comments from the task's preamble to the talk page.)
Line 404:
 
==a discussion of the task's requirements and wording==
This (firstadded) section of superscript comments was moved here to the   ''talk''   page from the task's requirements (the task's preamble).   I also changed the hard-to-read superscript text to be displayed as "regular" text).   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 18:12, 11 July 2017 (UTC)
 
:: Note: If you allow/disallow negative first numbers you do get different results. If you allow negative first numbers, which you should according to the specification; then you get at least two targets with the same highest number of solutions: The positive and negative versions of the same target, only the positive one is between 0 to 123456789. The specification assumes there is only one positive target with the maximum number of solutions. It is worth looking for multiple targets with the same number of solutions, just in case there are more. This is especially true if you try the variants with different lists of digits. For example using the digits '987654321' and excluding a negative first number comes up with two distinct targets with the same maximum number of solutions, both of which happen to be positive. If you are playing with the asymetric version with out leading negative numbers of different lists of digits the sums with the highest number of solution may only be negative. In this case it is worth excluding the test to show only positive totals and put up with seeing duplicate +ve and -ve solutions.
 
:: Robin Murison‎
 
::::::: Added signature of   ''Robin Murison''   by [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 18:12, 11 July 2017 (UTC)
 
-----
 
Yes, a minus sign ('''-''') is allowed before the first digit(s) &nbsp; This is specifically allowed from the 2<sup>nd</sup> sentence in the task's preamble, there is no '''if''' about it.
 
There is only one sum (you call it a target) that has a maximum. &nbsp; This wasn't assumed, it was determined by examination of all possible targets (which were non-negative sums), in part, to give programmers &nbsp; ''a priori'' &nbsp; information. &nbsp; The 2<sup>nd</sup> task requirement asks '''the''' sum which has the maximum number of solutions &nbsp; (from zero to infinity --- this excludes negative sums/targets). &nbsp; There is only one correct answer --- but you may assume there will be more than one solution, and if so, the wording will be changed. &nbsp; The task's preamble could've been worded as asking for &nbsp; '''sum(s)'''; &nbsp; it was a word choice that I made when composing the task's requirements.
 
Note that negative sums (targets) are specifically excluded as per the task's description/requirements.
 
It &nbsp; ''is'' &nbsp; worth looking for multiple targets (and indeed, that is a requirement of this task) with the same --- or for that matter --- any number of solutions, this is &nbsp; a &nbsp; purpose of this task).
 
The use of the digit string of '''987654321''' isn't allowed, only the digit string of '''123456789'''.
<br>-- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 19:07, 11 July 2017 (UTC)