[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Recursive grouping - simple, XSLT 1.0, fast non-M

Subject: Re: Recursive grouping - simple, XSLT 1.0, fast non-Muenchian grouping method
From: Dimtre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sat, 18 Dec 2004 09:49:21 +1100
Re:  Recursive grouping - simple
On Thu, 16 Dec 2004 19:27:46 +0200, Sergiu Ignat (dyve)
<sergiu.ignat@xxxxxxxx> wrote:
> Hello everybody.
> 
> I would like to present you a simple, XSLT 1.0, fast grouping method with a
> O(N*log(N)) complexity, the same as sorting. The only grouping method I knew
> so far is Muenchian that has O(N^2) complexity.

The complexity of the Muenchian method is much better than O(N^2) --
can you provide an example with representative data, where the
Muenchian method behaves O(N^2)?



> 
> The main idea is to have a named template that takes as a parameter the node
> list that should be grouped, processes the group defined by the first
> element and recursively calls itself for the rest of the list excluding that
> group.

Yes, and this will be close to O(N^2) complexity, where N is the
number of nodes that are being grouped.

Once again -- can you provide evidence to a better performance?

Cheers,
Dimitre.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.