Article View: news.software.readers
Article #796Re: The References header
From: Rich Braun
Date: Tue, 29 Oct 1991 21:19
Date: Tue, 29 Oct 1991 21:19
70 lines
3730 bytes
3730 bytes
phillips@syrinx.umd.edu (Felan shena Thoron'edras) writes:
>No... Your proposal, as far as I can tell, doesn't take net lag into account.
> Then, when the batches come in, those 'holes'
>
>What do you propose trn do when the 4 missing articles come in and need
>to be put into their proper places in the tree?
>
>(Sorry if I've a) been more unclear b) misunderstood your proposal c)
>missed an explanation of what you would do in this case...)
I think the answer is (b). My proposal calls for using (up to) two
message-IDs in the header. It's awfully hard to draw in a USENET posting
so that's why this discussion has been difficult, and probably has bored
a whole lot of net.readers.
There is no problem with building the tree if there are missing slots.
Let's draw an example:
A
/ \
B C
/ \ |
D E F
|
G
(I'm drawing the tree in CS-101 format rather than in trn's obscure format,
for the simple reason that I never did quite figure it out.) So the
Predecessors header would be as follows:
A: none
B: <A>
C: <A>
D: <A> <B>
E: <A> <B>
F: <A> <C>
G: <A> <F>
The tree, as you can see, need not be "binary"; a node can have several
direct descendants. But all you need to define a tree, as I remember from
CS classes ages ago, is the immediate ancestor node for any given node.
You can then derive the rest at will. The reason for putting the
original-ancestor (<A> in each of the above) into the header is simply
to identify _which tree_ needs to get the new node, optimizing the
insertion process if the history file is large. It also helps keep
related postings together when there are gaps, because each has a common
reference point (the initial ancestor) even if that message has yet to
arrive.
So let's take your scenario (by now we've for sure left lots of readers
lost in these technical details) and assume that, say, message B
arrives after all the others. You then have two messages, D and E,
which point back at something that isn't there. But you do know that
they both point back to message A. So it's easy enough to say that
there's a node "somewhere in the tree" which ties D and E together.
In the meantime the only info you have is that they're in tree A.
All that needs to be done when B arrives is to link it in the appropriate
point in the tree and tie D and E into that point. If someone wants to
read news in "root first" order (or whatever the long-forgotten buzzword
is) in the interim, the sequence is thus A-D-E-C-F-G or perhaps
A-C-F-G-D-E.
Now, does this fail to do something that the References header currently
accomplishes? I think not. Out-of-sequence messages are always going
to leave some ambiquity as to where new ones go in the tree. But they
shouldn't create any difficulty either for the software or for the
reader.
-rich
Technical Details
Message-ID:
<1991Oct29.211903.6380@kronos.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.sysadmin.mbox.zip!gmdzi!zeus.ieee.org!dorm.rutgers.edu!rutgers!cs.utexas.edu!uwm.edu!news.bbn.com!noc.near.net!eclectic.com!kronos!richbReferences:
<ygadkxg@smurf.sub.org> <1991Oct27.183828.3009@kronos.com> <10119@umd5.umd.edu>Show Full Headers
Complete Article Headers
Message-ID: <1991Oct29.211903.6380@kronos.com> Subject: Re: The References header Date: Tue, 29 Oct 1991 21:19:03 +0000 From: richb@kronos.com (Rich Braun) References: <ygadkxg@smurf.sub.org> <1991Oct27.183828.3009@kronos.com> <10119@umd5.umd.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.sysadmin.mbox.zip!gmdzi!zeus.ieee.org!dorm.rutgers.edu!rutgers!cs.utexas.edu!uwm.edu!news.bbn.com!noc.near.net!eclectic.com!kronos!richb Newsgroups: news.admin,news.misc,news.sysadmin,news.software.b,news.software.readers Organization: Kronos Inc. / Waltham, MA Lines: 69