Thread View: news.software.nntp
6 messages
6 total messages
Started by Anand Gupta
Thu, 07 Dec 2000 00:00
Algorithm for threading
Author: Anand Gupta
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
15 lines
1153 bytes
1153 bytes
I wish to write a script which will display articles in a threaded fashion. I wish to retrieve the header information for the valid articles available currently in a particular group from the server, and then use my internal script to sort the order and display them. I plan to use the HEAD command and then store the data in a SQL server and run a sort script through the data. What are the most efficient RFC commands to use ? Are there any standard sorting algorithms available ? thanks.
Re: Algorithm for threading
Author: Alan Mackenzie
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
31 lines
1680 bytes
1680 bytes
Jan Schaumann <jschauma@netmeister.org> wrote on Thu, 07 Dec 2000 09:45:23 -0500: > * "Anand Gupta" <prence@aclindia.net> wrote: > [sorting/threading] >> What are the most efficient RFC commands to use ? Are there any >> standard sorting algorithms available ? > Why don't you download a few newsreaders and ..... so far so good! > ..... schaust dir an wie die das geregelt haben? .... which is better rendered as "look at how they go about it". :-) > -Jan > P.S.: fup2 news.software.misc Warum? nsr seems to be appropriate for the topic. > Jan Schaumann -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove one of them (leaving, say, "a").
Re: Algorithm for threading
Author: Jan Schaumann
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
22 lines
1470 bytes
1470 bytes
* "Anand Gupta" <prence@aclindia.net> wrote: [sorting/threading] > What are the most efficient RFC commands to use ? Are there any standard > sorting algorithms available ? Why don't you download a few newsreaders and schaust dir an wie die das geregelt haben? -Jan P.S.: fup2 news.software.misc -- Jan Schaumann <http://www.netmeister.org> Microsoft is not the Borg collective - the Borg collective has proper networking.
Re: Algorithm for threading
Author: bill davidsen
Date: Thu, 07 Dec 2000 16:29
Date: Thu, 07 Dec 2000 16:29
27 lines
2417 bytes
2417 bytes
In article <3a2f5628.16335418@news.alt.net>, Anand Gupta <prence@aclindia.net> wrote: | I wish to write a script which will display articles in a threaded | fashion. I wish to retrieve the header information for the valid | articles available currently in a particular group from the server, | and then use my internal script to sort the order and display them. I | plan to use the HEAD command and then store the data in a SQL server | and run a sort script through the data. | | What are the most efficient RFC commands to use ? | Are there any standard sorting algorithms available ? You can't sort it, it's not always a linear list. You need to use a linked list, one entry per article with a pointer back to the predecessor. If you insist on doing some database thing you will have to have one reply-to entry for each article, and N replies entries, not to mention some flagging when there is a reply but the subject changes... -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc The line from the immutable past to the desired future is useful to justify continuing to tack into the wind, making a major change in course, or coasting into safe harbor. It is not a map of where you are going, just how to get where you want to go.
Re: Algorithm for threading
Author: Erno Kuusela
Date: Fri, 08 Dec 2000 00:00
Date: Fri, 08 Dec 2000 00:00
13 lines
1086 bytes
1086 bytes
In article <3a2f5628.16335418@news.alt.net>, prence@aclindia.net (Anand Gupta) writes: | I wish to write a script which will display articles in a threaded | fashion. [...] | Are there any standard sorting algorithms available ? one is at <URL:http://www.jwz.org/doc/threading.html>. -- erno
Re: Algorithm for threading
Author: aclexports
Date: Sat, 09 Dec 2000 03:04
Date: Sat, 09 Dec 2000 03:04
15 lines
1132 bytes
1132 bytes
Thanks a ton !!!! In article <3a2f5628.16335418@news.alt.net>, prence@aclindia.net (Anand Gupta) writes: | I wish to write a script which will display articles in a threaded | fashion. [...] | Are there any standard sorting algorithms available ? one is at <URL:http://www.jwz.org/doc/threading.html>. -- erno
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads