xsl-list
[Top] [All Lists]

## Re: Re: Grouping problem?

2003-04-22 21:52:43
```
"Lars Huttar" <lars_huttar(_at_)sil(_dot_)org> wrote in message
news:002601c3091b\$efc26f90\$250414ac(_at_)LarsandKate(_dot_)(_dot_)(_dot_)
```
```Dimitre Novatchev wrote:
```
```Unfortunately, this does not produce the right result in the
general case.
```
```
I believe it does in the example data you gave, at least
as I understand Benjamin's definition of the problem.
```
```
Hmmm... Probably I misunderstood the definition of the problem -- I thought
that the sum in every group should not exceed 10.

If this was a wrong understanding, it was a lucky one, as it describes a
grouping problem, which does not have an obvious solution using the
Muenchian method -- the groups are not independent, but every group depends
on all previous groups.

The original problem is much mor "regular" and it must be possible to solve
using the scanl() function.

=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

```
 Current Thread RE: Grouping problem?, (continued) RE: Grouping problem?, Conal Tuohy RE: Grouping problem?, Conal Tuohy Re: Grouping problem?, Dimitre Novatchev RE: Re: Grouping problem?, Lars Huttar RE: Re: Grouping problem?, Conal Tuohy Re: Re: Grouping problem?, Dimitre Novatchev Tail recursion (WAS: Grouping problem?), Conal Tuohy Re: Tail recursion (WAS: Grouping problem?), Mike Brown Re: Tail recursion (WAS: Grouping problem?), Dimitre Novatchev RE: Re: Grouping problem?, Michael Kay Re: Re: Grouping problem?, Dimitre Novatchev <= RE: Re: Grouping problem?, Benjamin Farrow