Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Delete Permutations' topicStudent Support Forum > General > Archives > "Delete Permutations"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
toen
09/28/10 12:25pm

g'day,

Try taking a canonical representative of each possible permutation. The built-in Sort function is an obvious candidate for this.

Entries are then easy to compare, e.g

Union[{{1,2,3}, {3,2,1}, {4,3,1}, {2,2,3}, {2,3,1}},Sametest->(Sort[#1]==Sort[#2]&)

cheers,
toen

URL: ,

Subject (listing for 'Delete Permutations')
Author Date Posted
Delete Permutations lesobrod 09/22/10 1:32pm
Re: Delete Permutations toen 09/28/10 12:25pm
Re: Delete Permutations toen 09/28/10 12:46pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic