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

Next Comment >Help | Reply To Topic
Author Comment/Response
Sinval Santos
01/16/12 6:54pm

First question:
{{a,c,b,d,e},{d,a,b,c,e},{e,b,d,c,a},{c,a,e,d,b}}. The four subsets have the same elements. How to leave only one of them? When the subset has only two elements we can use
Union[set,SameTest->(First[#]==Last[#]&)].But with more than two can not.

Second question:
{{a,a,a,a,a},{a,c,b,e,d}.How do I delete subsets, where all elements are equal?


URL: ,

Subject (listing for 'Subsets')
Author Date Posted
Subsets Sinval Santos 01/16/12 6:54pm
Re: Subsets Nasser M. Ab... 01/17/12 4:33pm
Re: Subsets Sinval Santos 01/18/12 06:50am
Re: Re: Subsets Bill Simpson 01/18/12 9:43pm
Next Comment >Help | Reply To Topic