Sorry
Roshan P Mohammed
Posts
-
How to Form Minimum number of Groups which should not exceed a max value -
How to Form Minimum number of Groups which should not exceed a max valueI have a datatable like below
Employee Salary
Emp A 1000
Emp B 500
Emp C 3000
Emp D 3000
Emp E 200
Emp F 100
Emp G 200
Emp H 500
Emp I 1450I want minimum number of groups, Sum of Salary in one group should not exceed 5000. So my final output should be like this
Employee Salary Group
Emp A 1000 Group 1
Emp B 500 Group 1
Emp C 3000 Group 1
Emp E 200 Group 1
Emp F 100 Group 1
Emp G 200 Group 1Emp D 3000 Group 2
Emp H 500 Group 2
Emp I 1450 Group 2 -
Form minimum groupsplease guide me in the right direction
-
Form minimum groupsHi 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 ans my question...did you mean custom controls ?
-
Populate values into html formSo you mean You are not supposed to make the html control RunAt=server. can you try something like this >2
-
Advertisment BannerHi Lovely, Yes you are absolutely right, you dodn't know how to explain your need. I am sorry I didn't get you. If you want rotational advt, then there is nice control AdRotator in the standard library. Regards Roshan
-
Populate values into html formwhy didn't you use server controls instead of html controls?