Form minimum groups
-
Hi All - I have a problem. I want to arrange n number of items in the minimum group. There is maximum upper range for the group. I will explain in detail Assume database contains below values Emp1 10 Emp2 2 Emp3 4 Emp4 3 Emp5 11 Emp6 1 Emp7 4 Emp8 9 Emp9 5 Emp10 7 Emp11 14 Emp12 1 Emp13 4 Now I want to create minimum number of groups, where sum of the elements should not exceed say 15 like below Group 1 Emp1 10 Emp2 2 Emp4 3 Group 2 Emp3 4 Emp5 11 Group 3 Emp6 1 Emp8 9 Emp9 5 Group 4 Emp7 4 Emp10 7 Emp13 4 Group 5 Emp11 14 Emp12 1 Application is ASP .net with C#. Is there any predefined algorithm for achieving this? Thanks in advance Roshan
-
Hi All - I have a problem. I want to arrange n number of items in the minimum group. There is maximum upper range for the group. I will explain in detail Assume database contains below values Emp1 10 Emp2 2 Emp3 4 Emp4 3 Emp5 11 Emp6 1 Emp7 4 Emp8 9 Emp9 5 Emp10 7 Emp11 14 Emp12 1 Emp13 4 Now I want to create minimum number of groups, where sum of the elements should not exceed say 15 like below Group 1 Emp1 10 Emp2 2 Emp4 3 Group 2 Emp3 4 Emp5 11 Group 3 Emp6 1 Emp8 9 Emp9 5 Group 4 Emp7 4 Emp10 7 Emp13 4 Group 5 Emp11 14 Emp12 1 Application is ASP .net with C#. Is there any predefined algorithm for achieving this? Thanks in advance Roshan
Roshan P Mohammed wrote:
Is there any predefined algorithm for achieving this?
No, you're on your own
I know the language. I've read a book. - _Madmatt
-
Roshan P Mohammed wrote:
Is there any predefined algorithm for achieving this?
No, you're on your own
I know the language. I've read a book. - _Madmatt
please guide me in the right direction
-
Hi All - I have a problem. I want to arrange n number of items in the minimum group. There is maximum upper range for the group. I will explain in detail Assume database contains below values Emp1 10 Emp2 2 Emp3 4 Emp4 3 Emp5 11 Emp6 1 Emp7 4 Emp8 9 Emp9 5 Emp10 7 Emp11 14 Emp12 1 Emp13 4 Now I want to create minimum number of groups, where sum of the elements should not exceed say 15 like below Group 1 Emp1 10 Emp2 2 Emp4 3 Group 2 Emp3 4 Emp5 11 Group 3 Emp6 1 Emp8 9 Emp9 5 Group 4 Emp7 4 Emp10 7 Emp13 4 Group 5 Emp11 14 Emp12 1 Application is ASP .net with C#. Is there any predefined algorithm for achieving this? Thanks in advance Roshan
You have to implement your own logic to accomplish this.There is no readymade algorithm for that.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
please guide me in the right direction