Please, can you help me to solve this or indicate me who could do it against a fee?

1 year ago 12 Replies
KS
Karim Sebti
1 year ago

I have a problem to solve: Grouping a list of 50,063,860 numerical sets of 6 elements into just 10,003 numerical sets of 15 elements.
I am not a mathematician, programmer, engineer or data scientist. I just need this list containing the 10,003 sets of 15 elements each with no set of 6 elements repeated in it.
Please, can you help me to solve this or indicate me who could do it against a fee?

2 Likes

Replies

Phili Syen 1 year ago

HiKarim Sebti I can help you with this task. Kindly inbox or mail mailto:pkimwele@gmail.com

0 Likes
Braimah Tahidu Zaachi 1 year ago

50 063,860 thus 50million and 63 thousand eight hundred and sixty.

1 Like
Adesina Ibrahim 1 year ago

Your problem seems like you want to group by some factors. Let me know your dataset variables so I can tell you how to go about it

1 Like
Karim Sebti (1 year ago)

Adesina Ibrahim A universal set of 60 elements contains 50,063,860 combinations of 6 elements;

A universal set of 15 elements contains 5005 combinations of 6 elements.

If we want to group the first group by creating a second group, we will have (50,063,860 /5,005) = 10,003 sets of 15 elements each containing all combinations of the first universal set, without repeating any combination of 6 elements.

Madhur Parihar 1 year ago

These code line will make two lists: liA is a vector of combinations of number 1-60 considered 6 at a time. 6 number are joined into one string separated by comma. LiB is vector of combina of 1-15 considering 6 at a time again. I am not sure I understood the grouping part. All 5005 combinations of LiB are in LiA as well

liA = apply(combn(1:60,6),2,paste0, collapse=",") liB = apply(combn(1:15,6),2,paste0, collapse =",") liA[[2]] liB[[2]]

1 Like
Karim Sebti (1 year ago)

Madhur Parihar If you want to group sets of 6 elements into sets of 15 elements, you have to imperatively know how many combinations of 6 elements exist in a set of 15 elements, right?

The answer is: 5005 combinations of 6 elements in each set of 15 elements.

So if you have to group the 50,063,860 sets of 6 elements into sets of 15 elements, you need to know how many sets of 15 elements are needed>

50,063,860 / 5,005 = 10,003 sets of 15 elements each to group all sets of 6 elements

Madhur Parihar (1 year ago)

Karim Sebti Thanks for explaining but I am having a hard time understanding, mostly because I am trying to understand terms like list, groups, sets as R terminologies.

Can you please first confirm these lines are producing your expected sets?

Karim Sebti (1 year ago)

Madhur Parihar as I said in my post:

"I am not a mathematician, programmer, engineer or data scientist. I just need this list containing the 10,003 sets of 15 elements each with no set of 6 elements repeated in it."

SORRY !

Jeremy Barnes 1 year ago

It's a trap

0 Likes
Karim Sebti (1 year ago)

Jeremy Barnes REALLY ?

I did already in a very small scale.

Using a small Universal Set of 8 elements and got 56 combnations of 3 elements. Then I GROUP all this in only 14 sets of 4 elements within repeat any set of 3 elements !!!

Look it above:

Karim Sebti (1 year ago)

Karim Sebti (1 year ago)

Jeremy Barnes I sent you a file INBOX because it's not possible to up load here! 👍

Relate Discussions