Message Boards Message Boards

0
|
5750 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Generating all sets of unordered pairs from a list

Posted 10 years ago

Hi everybody,

Suppose that I have a list {1,2,3,4,5,6,7,8,9,10}.

A problem can be defined as "How many different ways to choose 5 disjoint pairs of items from 10 items"

I know that the number of these sets is 9!!=9x7x5x3x1.

For example {1,2},{3,4},{5,6},{7,8},{9,10} and {1,3},{2,4},{5,6},{7,8},{9,10} are such sets and of course {1,2},{3,4},{5,6},{7,8},{9,10} ={2,1},{3,4},{5,6},{7,8},{9,10}.

My question is how can I create and export these sets in Mathematica. Is there any built in function or programming is needed?.

Thanks in advance

POSTED BY: Selcuk Kumbasar
2 Replies
Posted 10 years ago
POSTED BY: Adrian Ericsson
Posted 10 years ago
POSTED BY: Selcuk Kumbasar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract