Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default A counting problem?

Hi all,

Given some parameters N,k,t,B where N=k=t and B1
- Generate B random combinations from 1 to N of size k
- Calculate the unique and overlapping combinations of size t
that belong to the B combinations.

Ex:
N=12 k=4 t=3 B=7

1 2 4 5
1 3 6 7
1 3 10 11
2 7 9 11
3 4 5 8
1 2 3 6
4 6 7 9

My results a
Combinations appearing once =10
twice =288
3 times=190
4 times=7

How can we count the above faster than brute force?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default A counting problem?

Explain what you mean by "brute force".

If you mean can it be done without actuallly producing the random
combinations then probably the answer is no. The problem as stated is
not a *probability* question, so a general approach using probability
theory is not applicable.

Presumably the only scope for non-brute force is in the
post-generation stage of the problem.

I'm also not sure what you mean by "overlapping" combinations. You
might explain further there....

Tim.


"Dizzy" wrote in message
ble.rogers.com...
Hi all,

Given some parameters N,k,t,B where N=k=t and B1
- Generate B random combinations from 1 to N of size k
- Calculate the unique and overlapping combinations of size t
that belong to the B combinations.

Ex:
N=12 k=4 t=3 B=7

1 2 4 5
1 3 6 7
1 3 10 11
2 7 9 11
3 4 5 8
1 2 3 6
4 6 7 9

My results a
Combinations appearing once =10
twice =288
3 times=190
4 times=7

How can we count the above faster than brute force?

TIA



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting problem vito Excel Worksheet Functions 3 August 11th 07 08:19 PM
Counting Problem Becks Excel Discussion (Misc queries) 4 May 11th 06 09:38 AM
Counting problem daydreamin7 Excel Discussion (Misc queries) 7 March 1st 06 06:30 PM
counting problem LucasBuck Excel Discussion (Misc queries) 4 September 13th 05 05:18 PM
Counting problem again! Connie Martin Excel Worksheet Functions 2 November 2nd 04 06:14 PM


All times are GMT +1. The time now is 10:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"