Re: Newbie Sorting Question






On 20/06/2005 12:35, Chris Paterson wrote:

> Hi,
>
> I have a block of 100 random numbers adding up to 100 in value. I would
> like to group this data into 4 blocks of approximately equal size and
> value - ie. 25 and 25
>
> Bit stuck. I am looking for what sort of methods I could use to do this
> (I am using VB and Excel97).


Looks like a knapsack problem. You may write a recursive function to solve
this, it's not very difficult.

.



Relevant Pages

  • Newbie Sorting Question
    ... I am looking for what sort of methods I could use to do this ... (I am using VB and Excel97). ... Chris ... Prev by Date: ...
    (comp.programming)
  • looking for a function
    ... Hello,did someone by chanse bumped into recursive function which writes ... all the tree view nodes into xml file? ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ADODB is unable to copy more than 255 chars in excel cell
    ... I was wondering about that because now I remember creating a request ... form in Excel97 that users would fill in and email to my department. ... It was really quirky. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • primitive recursive
    ... > example of recursive function who is not primitive recursive ... code up rooted trees into integers, ... Goodstein's "hydra" number for them. ... Prev by Date: ...
    (sci.logic)
  • what is wrong with this?
    ... I am a computer science student. ... I have written a recursive function to choose the maximum element of ... (cdr list)))) ... Prev by Date: ...
    (comp.lang.scheme)