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

Re[6]: Aggregate

Subject: Re[6]: Aggregate
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Thu, 16 Nov 2000 09:46:16 +0000
aggregate 6
Mike wrote:
> Yes, Saxon would stop after it found the first one, which on average
> would halve the execution time. But it would still be O(n-squared).

OK. I think my problem lies in the fact that I have never understood
what 0(n-squared) and so on actually means. Presumably this is
something that is taught in beginners' computer-science classes, but
never having attended one I'm still in the dark. My questions are:

1. how can you assess an algorithm to determine its 0(n*)-ness?
2. what implications does that have for methods to use in XSLT/XPath?

> Generally, I would assume that XPath expressions aren't optimised
> unless you have evidence to the contrary. It's earlier days for
> optimizers yet.

Mike, is it possible for you to sketch out the optimisations in Saxon
- for example it's really helpful to know that I should use .. rather
than parent::foo for reasons other than brevity (I tend towards the
latter because it makes explicit where each step is going).

Thanks,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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


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.