Borrar filtros
Borrar filtros

Selection of pairs with balanced number items across selections

3 visualizaciones (últimos 30 días)
Magdalena Kachlicka
Magdalena Kachlicka el 29 de Jun. de 2020
Editada: Magdalena Kachlicka el 29 de Jun. de 2020
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!

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by