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

RE: Re: lookup-table thoughts (was Re: matching multip

Subject: RE: Re: lookup-table thoughts (was Re: matching multiple times, outputting once?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 12 Nov 2001 13:33:13 -0000
RE:  Re: lookup-table thoughts (was Re: matching multip
> I assume that "O(n^n)" above is a typo for "O(n^2)" = "O(n*n)", right?
yes.

> Quadratic. Let me just check that I understand this from
> Saxon's point of
> view...I'm trying to come up with a simple moral to the tale,
> something
> like "recursion inside constructors should not usually be
> made into tail
> recursions, but other recursions should be", to go along with
> "accumulations
> of associative functions can usually be made into divide-and-conquer
> templates" and other such rules that I often find helpful.

The difference between a tail-recursive linear recursion and a
non-tail-recursive one is that the latter uses less stack space. The moral
of the tail [?], I think, is that unless you're actually running out of
stack space, it's not worth changing an O(n) algorithm into an O(n*n) one in
order to achieve this goal.

But I must look again at whether I can make <xsl:copy-of>, when copying one
RTF to another, do a "virtual copy" that only actually creates a
reference...

Mike Kay


 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.