mathematical combination
- From: kenyem1@xxxxxxxxx
- Date: Wed, 21 Nov 2007 10:44:36 -0800 (PST)
Hi!
I'm new to C++ but I have a challenge to write a program to find the
different mathematical combinations of p and t objects respectively
from a total of n objects i.e. nCp and nCt.The program should display
the various combinations.
A further aspect is to find the intersection between nCp and nCt
i.e.each set of nCp that contains each of the possible combinations of
nCt without considering the order of appearance.
Let me try to be clearer,pls:
say n=7,p=5 and t=3
1. I want a program to find 7C5 and 7C3
2. I want a display of the possible combinations in each case i.e
for 7C5; (12345),(12346),(12347),(13456)etc and
for 7C3; (123),(124),(125),(126)etc
3. Finally, the intersection e.g.
(123) intersects (12345),(12346),...
(124) intersects (12345),(12346)...
(125) intersects (12345)
and so on.
Your help will be appreciated.Thanks.
.
- Follow-Ups:
- Re: mathematical combination
- From: James Dow Allen
- Re: mathematical combination
- From: Andrey
- Re: mathematical combination
- From: jehugaleahsa@xxxxxxxxx
- Re: mathematical combination
- From: user923005
- Re: mathematical combination
- Prev by Date: Re: Places to purchase PowerBASIC?
- Next by Date: Re: Wanted some practical problems to solve in data structures
- Previous by thread: Permuting beyond one collection
- Next by thread: Re: mathematical combination
- Index(es):
Relevant Pages
|