필터 지우기
필터 지우기

Selection of pairs with balanced number items across selections

조회 수: 3 (최근 30일)
Magdalena Kachlicka
Magdalena Kachlicka 2020년 6월 29일
편집: Magdalena Kachlicka 2020년 6월 29일
Dear all,
I'm looking for a solution to 'n choose k' problem, but one in which you don't need ALL combinations and can limit the number of times each item gets selected.
For example, let's say we have a set of 10 numbers from 0 to 9 and you wish to get pairs of these numbers. However, you only want to obtain as many pairs to get each number to show only 3 times across all the pairs. Results from '10 choose 2' will give you each number 9 times across all pairs.
Is there a way to do this?
I'd appreciate your help, thanks!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by