Article View: news.software.readers
Article #50090Re: Threading algorithm
From: Matthias Jordan
Date: Fri, 23 Jul 1999 00:00
Date: Fri, 23 Jul 1999 00:00
33 lines
1692 bytes
1692 bytes
Hi, Curt! >Threading is a bit more complex than that. You have to deal with missing Sure it is. But the simple algorithm is alread at O(n^2). If it should deal with missing articles and stuff like that, it would be even slower. >You either build a big list of message IDs and sort it with a real >sort algorithm (n log n instead of n^2), or you build some type of I thought about this idea but this is also at complexity O(n^2) - just not in speed but in space consumption. Because I develop a newsreader for PalmPilots (average RAM at about 2 MB), quadratic space consumption is a /very/ bad idea. (And: How much time would it take to build up the data structure? I guess O(n^2).) >(internally and externally), and those are a bunch of standard n log n >sorts. How many? n? (Just kidding...) Bye! Matthias
Technical Details
Message-ID:
<3798b4ad$0$208@nntp.ruhr.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<3796119b$0$216@nntp.ruhr.de> <19990721144534.708$be@newsreader.com> <37964124$0$217@nntp.ruhr.de> <19990721185421.427$Xb@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <3798b4ad$0$208@nntp.ruhr.de> Subject: Re: Threading algorithm Date: Fri, 23 Jul 1999 00:00:00 +0000 From: "Matthias Jordan" <mjordan@sensenet.wirepool.free.de> References: <3796119b$0$216@nntp.ruhr.de> <19990721144534.708$be@newsreader.com> <37964124$0$217@nntp.ruhr.de> <19990721185421.427$Xb@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 504492950 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Trace: nntp-reader.ruhr.de 932754605 208 141.39.227.51 MIME-Version: 1.0 Newsgroups: news.software.readers