Results 1 to 5 of 5
Thread: Permutation
- 05-31-2011, 11:29 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 25
- Rep Power
- 0
Permutation
Hi,
my question is, how to make permutation over some elements, lets say the elements are of type List, and each element of List contains one Object (lest say "A", "B", "C", "D", "E, "F"). For this example, we need 720 combinations (6! = 720). I would be glad, if someone could show me with for loops, and afterwards, maybe also some easier way of doing this.
Ty!Last edited by Claymz; 05-31-2011 at 11:53 PM.
- 06-01-2011, 01:11 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
That's not how this forum works. This is not a code generation forum, instead, you do the work and we help you.
- 06-01-2011, 02:39 AM #3
Member
- Join Date
- Apr 2011
- Posts
- 25
- Rep Power
- 0
Im sorry, i didnt mean it as i typed it, i really didnt! Anyway, i answered my question, thank you anyway!
- 06-01-2011, 02:44 AM #4
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Glad you solved it. I didn't mean to be berating you, I was merely telling you how things work around here.
- 06-01-2011, 02:27 PM #5
Member
- Join Date
- Apr 2011
- Posts
- 25
- Rep Power
- 0
Similar Threads
-
Mapping of variables to values (permutation with repetition?)
By electra in forum Advanced JavaReplies: 3Last Post: 08-24-2009, 07:39 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks