Talk:Best shuffle: Difference between revisions

→‎Task Description: adjust task description?
(→‎Task Description: random v deterministic)
(→‎Task Description: adjust task description?)
Line 9:
: Well, it says "characters" not "indexes". But feel free to change the wording as you see fit. [[User:Fwend|Fwend]] 20:16, 15 December 2010 (UTC)
 
I recently compiled and ran the D codes that had replaced my own version and noticed that they produced the same result every time. This isn't what I had in mind when I used the word "shuffle". I'm assuming that the other "deterministic" codes have the same limitation. It isn't a problem as far as I'm concerned. It's still interesting and educational to see this approach. Nevertheless I'm putting back my own code because it produces the result that I was looking for. [[User:Fwend|Fwend]] 09:39, 15 May 2011 (UTC)
: If I read the task description correctly, the task is actually looking for an "an organization as distant from the original organization as possible". The result is probably provable to that end. If the non-deterministic code doesn't result in an optimum solution, it's probably incorrect. I may be wrong, though. --[[User:Short Circuit|Michael Mol]] 10:49, 15 May 2011 (UTC)
:: I'm going to play devils advocate on the words here. The task says "as many of the character values are in a different position as possible" which seems clear to me that this means as few coincidences of characters by position. While "an organization as distant from the original organization as possible" could be taken as an arrangement where the characters are also far away from their original position. I don't see any of the solutions addressing that metric. I think either approach could be deterministic. I do admit that "shuffle" implies some randomness. (The Icon solution has a commented out line for this since it wasn't clear at the time). Some of the other solutions may have trouble adapting (not sure). If it's late in the game to clarify, could randomness be an extra points type requirement? --[[User:Dgamey|Dgamey]] 13:53, 15 May 2011 (UTC)
::: I think that's a good idea. Having more than one approach is more interesting anyway. English is not my native language. Maybe somebody could adjust the task description. I don't want to risk creating more confusion :) [[User:Fwend|Fwend]] 14:24, 15 May 2011 (UTC)
 
== J implementation notes ==
Anonymous user