Article View: news.software.readers
Article #50054Re: Threading algorithm
From: alex
Date: Thu, 22 Jul 1999 00:00
Date: Thu, 22 Jul 1999 00:00
23 lines
1337 bytes
1337 bytes
>Hi, folks! > >I�m working on a newsreader for PalmPilots (GPL project, BTW). At the >moment it works really great so I decided to implement threading. I >hacked a quick-and-dirty algorithm together but it has complexity >O(n^2) (where n is the number of articles already in the newsgroup). >As I said, the newsreader runs on a palmtop so performance is really >an issue. >Because I didn�t find a better algorithm I wanted to ask if someone >could give me a hint for a better one. > >Bye! >Matthias > > You can store information about references in hash table, so the overall time will be proportional to the number of references in the group and we'll end with O(n). Alex
Technical Details
Message-ID:
<7n742d$gpc$1@news.ibm.net.il>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>Show Full Headers
Complete Article Headers
Message-ID: <7n742d$gpc$1@news.ibm.net.il> Subject: Re: Threading algorithm Date: Thu, 22 Jul 1999 00:00:00 +0000 From: alex <alebi@gmx.net> References: <3796119b$0$216@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-mail X-Deja-AN: 503990817 X-Trace: news.ibm.net.il!ibm.net 932647821 17196 (none) 192.115.74.152 Organization: Unspecified Organization Newsgroups: news.software.readers X-Complaints-To: postmaster@ibm.net