Timeline for Troubleshooting Program Meant to Swap Elements
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 7, 2015 at 22:36 | comment | added | m_goldberg | Yet another genetic algorithm crossover code request? | |
Jun 7, 2015 at 2:58 | answer | added | Michael E2 | timeline score: 1 | |
Jun 7, 2015 at 0:32 | vote | accept | Gary1234 | ||
Jun 7, 2015 at 0:04 | comment | added | Michael E2 | Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! | |
Jun 7, 2015 at 0:03 | answer | added | ciao | timeline score: 3 | |
Jun 6, 2015 at 23:50 | comment | added | Gary1234 |
Somewhat along those lines, but to be more specific, let's say I'm working with {a,b,c,d} and {e,f,g,h} . RandomInteger will produce an integer between 1 and the length of either of those two lists. This number will pertain to a position. Let's say that it produces 4. Then it will take the elements to the left of d in {a,b,c,d} and the elements to the left of h in {e,f,g,h} and put them at the front of the other list to produce {e,f,g,d} and {a,b,c,h} in that order. Now, I want to be able to put in a list of pairs and have the program do this for every pair in the list.
|
|
Jun 6, 2015 at 23:35 | comment | added | ciao | There are several interpretations of "swap" that lead to the same result - do you mean taking the "digits" to the left of n and "swapping" them by putting them behind the rest of the digits for each sublist? | |
Jun 6, 2015 at 23:29 | review | First posts | |||
Jun 7, 2015 at 0:04 | |||||
Jun 6, 2015 at 23:24 | history | asked | Gary1234 | CC BY-SA 3.0 |