Thread View: news.software.misc
10 messages
10 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
1054 bytes
1054 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
1581 bytes
1581 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
1371 bytes
1371 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: Andr�
Date: Thu, 07 Dec 2000 15:27
Date: Thu, 07 Dec 2000 15:27
17 lines
1399 bytes
1399 bytes
> [Author: Jan Schaumann > [Date: 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 schaust dir an wie die das >geregelt haben? What?!? -- � Andr� <a.wg@terra.com.br>
Re: Algorithm for threading
Author: bill davidsen
Date: Thu, 07 Dec 2000 16:29
Date: Thu, 07 Dec 2000 16:29
27 lines
2318 bytes
2318 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
987 bytes
987 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: J.B. Nicholson-Owens
Date: Fri, 08 Dec 2000 00:00
Date: Fri, 08 Dec 2000 00:00
8 lines
947 bytes
947 bytes
Jan Schaumann wrote: > Why don't you download a few newsreaders and schaust dir an wie die das > geregelt haben? I don't understand the second half of that sentence. Is switching languages in the middle of a sentence a good idea?
Re: Algorithm for threading
Author: Jan Schaumann
Date: Fri, 08 Dec 2000 15:07
Date: Fri, 08 Dec 2000 15:07
30 lines
2329 bytes
2329 bytes
* "J.B. Nicholson-Owens" <jbn@forestfield.org> wrote: > Jan Schaumann wrote: >> Why don't you download a few newsreaders and schaust dir an wie die das >> geregelt haben? > > I don't understand the second half of that sentence. Is switching > languages in the middle of a sentence a good idea? Haha! Oooops. ;-) That's what I get when I read newsgroups in German and in English - it just so happened that a German news-related NG is right before this NG, so I got confused, it seemed. What I ment is, of course, " ...and take a look at how they did it". -Jan P.S: I though this posting was OT in nsr, since they usually discuss, how to /use/ a certain newsreader, not how to build it, or how to implement certain algorithms. Maybe even ask in some algorithms-NG? After all, it's just sorting... -- Jan Schaumann <http://www.netmeister.org> "That's one small step for Fry..." -Fry "...and one giant line for admission." -stranger in line
Re: Algorithm for threading
Author: J.B. Moreno
Date: Sat, 09 Dec 2000 00:59
Date: Sat, 09 Dec 2000 00:59
16 lines
1618 bytes
1618 bytes
In article <fP6Y5.107832$DG3.2103751@news2.giganews.com>, Jan Schaumann <jschauma@netmeister.org> wrote: > P.S: I though this posting was OT in nsr, since they usually discuss, > how to /use/ a certain newsreader, not how to build it, or how to > implement certain algorithms. Maybe even ask in some algorithms-NG? After > all, it's just sorting... nsr is fine for discussing a threading algorithm, it's not just customer support (although with all of the recent xnews stuff it's easy to make that mistake), technical subjects like this are just as on topic (in fact it's more what the group is for IMO). -- J.B. Moreno
Re: Algorithm for threading
Author: aclexports
Date: Sat, 09 Dec 2000 03:04
Date: Sat, 09 Dec 2000 03:04
15 lines
1033 bytes
1033 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