RE: Algorithm Request

new topic     » topic index » view thread      » older message » newer message

Could you define 'equal amounts?'  I assume you don't mean simply splitting
n numbers into k piles, so that each pile k has either int(n/k) or
int(n/k)+1 numbers.  Are you concerned with the sum of the numbers?
Standard deviation?  Product? etc...

Matt Lewis

> From: C. K. Lester [mailto:cklester at yahoo.com]

> Is there an algorithm out there that will take a series of 
> numbers and put
> them in groups of equal amounts? For instance, I have these numbers:
> 
> 377
> 378
> 384
> 387
> 388
> 391
> 396
> 422
> 424
> 425
> 488
> 505
> 
> I need them placed in two groups, as close to being equal in value as
> possible.
> 
> I'm sure there's something out there... if not, I challenge 
> everyone to a
> EUPHORIA programming contest! :)

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu