如何将一个集合分成k子集,对子集中的元素有一些约束 [英] how to partiotion a set into k subset with some constraint on elements in the subsets

查看:77
本文介绍了如何将一个集合分成k子集,对子集中的元素有一些约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将由n个唯一数字组成的集合划分为相等大小的k个子集,约束对于(xi,yj)xi< yj其中xi和yj是两个不同集合的第i个和第j个元素

两个集合中有c个这样的对

i need to partition a set consisting of n unique numbers into k subsets of equal size with constraint that for (xi, yj) xi < yj where xi and yj are ith and jth element of two different sets
there are c such pairs for the two sets

推荐答案

这篇关于如何将一个集合分成k子集,对子集中的元素有一些约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆