🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #815

Re: The References header

#815
From: Rich Braun
Date: Thu, 31 Oct 1991 20:29
84 lines
4091 bytes
For the example, I'll also map out what the References header would be
for the tree given:

>>Predecessors header:		References header:
>>	A:  none		A: none
>>	B:  <A>			B: <A>
>>	C:  <A>			C: <A>
>>	D:  <A> <B>		D: <A> <B>
>>	E:  <A> <B>		E: <A> <B>
>>	F:  <A> <C>		F: <A> <C>
>>	G:  <A> <F>		G: <A> <C> <F>

phillips@syrinx.umd.edu (Felan shena Thoron'edras) writes:
>My problem is when you have A arrive, then G.  Neither C nor F has
>gotten here yet.  You have A, and you have G.  G belongs under F.
>Where do you put F?

In my case, the tree would then be as follows (with <C> missing between
<A> and <F>):
	A
	|
       {F}
	|
	G

>  Correctly, it should have another node in the
>tree before it; however, with only knowing root and parent, your
>solution doesn't know that.  I'm asking you:
>  1. What will you do, given A and G?

See above.
>  2. If F comes in next, what will you do?  Put F after A, between A
>and G?  That is, of course, correct.  But it may necessitate changing
>the tree, based on how you answered question 1.

Yep, I'd have to insert a slot for C when I saw the back-pointer to it.
I don't consider this a big deal.

>  3. If C comes in before F, you attach C to A, of course.  What do you
>do now when F arrives?  It will take G from wherever you put it before,
>ie it will still mean changing the tree if you assumed that G's parent
>was a child of A.

Let's draw another picture for this one:

	A
      /   \
    {F}     C
     |
     G

So now when the real F comes in, we "break" the left link and move it
down to C.  In the meantime, the order of presentation might be backwards:
a 'trn' user might be given the messages in order A-G-C, depending on what
assumption was made when C arrived (to put it to the right or left of {F};
C-news might decide to base this decision on the Date headers of C and
G, which would usually cause the 'right' thing to happen).  I still don't
see how this is a big deal.

>The References: header does contain sufficient information to tell exactly
>where G goes in the tree, given only A and G and not having C or F yet.

Point granted.  If this example can be applied to all larger examples, and
it would be quite a mental exercise for me to convince myself of that,
then it's true:  the tree would never change shape.

>My point is that your Predecessors: doesn't, and I want to know what you
>intend to have C news do with it in that case.  If it's a reasonable
>solution, I have no objection to it, but as is, I'd have to say, it's
>easier with the References: header, you can at least have all the entries
>in the database of what the Message-Id: is, even if you don't have
>author/subject.

I still don't see the advantage of reserving the slot for both {C} and
{F} in advance.  These are dynamic data structures which can be
rapidly expanded and contracted at whim.  And until the referenced
articles arrive, you still wind up presenting them to the user in the
nearly the same logical order.  Or do you?  Can you convince me that
this won't be true?  Will this logical order sometimes become chaotic?
(It's definitely true that once the referenced articles are in place,
my solution yields the same fundamental result.)

-rich
Technical Details
Message-ID: <1991Oct31.202956.17665@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!dimacs.rutgers.edu!mips!swrinde!elroy.jpl.nasa.gov!ncar!hsdndev!spdcc!kronos!richb
References: <10119@umd5.umd.edu> <1991Oct29.211903.6380@kronos.com> <10155@umd5.umd.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1991Oct31.202956.17665@kronos.com>
Subject: Re: The References header
Date: Thu, 31 Oct 1991 20:29:56 +0000
From: richb@kronos.com (Rich Braun)
References: <10119@umd5.umd.edu> <1991Oct29.211903.6380@kronos.com> <10155@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!dimacs.rutgers.edu!mips!swrinde!elroy.jpl.nasa.gov!ncar!hsdndev!spdcc!kronos!richb
Newsgroups: news.admin,news.misc,news.sysadmin,news.software.b,news.software.readers
Organization: Kronos Inc. / Waltham, MA
Lines: 83