|
|
вернуться в форумHow to count? Any hint on how to count all relations? Thanks! Re: How to count? Послано Dilyan 1 май 2005 15:55 use DP. your function will be F(n, k) where N is the amount of number in the relation and K is the number of groups. For example: a=b=c=d - 1 group a=b<c=d - 2 groups a<b<c<d - 4 groups equal numbers form one group. Edited by author 09.05.2005 05:40 Re: How to count? Послано zeroh 28 янв 2008 07:01 It's a maths problem. Like that puting N balls into M boxes. Edited by author 28.01.2008 07:01 Re: How to count? Thank you! The idea of puting balls into boxes helped me. |
|
|