Re: Is There a Java Class for this Kind of Data Structure?
"Hal Vaughan" <hal@thresholddigital.com> wrote in message
news:g5qdndrDW_1tNgrbnZ2dnUVZ_sOknZ2d@comcast.com...
Oliver Wong wrote:
Just to clarify, let's say your tree structure looks like:
A
|- B
|- C
`- D
More like (and I hate to do diagrams because I know spacing is different
on
different fonts):
A
|-+-+
B C D
| |
E F
Who are the children of who in this notation?
[...]
Are you saying that in addition to this, changes to "B" affect "C"
and
"D", so that when you update "B", you must also update "C" and "D" and
vice versa?
It's more like D might provide prompt data to a Swing component that
might
effect F just like C does so I have to update C and D at the same time
before E and F are updated. It may just be a different way of drawing
the
table, so we may be saying the same thing, but I'm just trying to make
sure
we're all saying the same thing. In other words, a table 3 or 4 levels
down could be effected by not 1 but 2 tables at level 2. Theoretically
it's possible it could be effected by more than 2 tables at level 2, but
in
practice I would doubt it.
I don't have the information I'm looking for, so let me rephrase my
question:
Are tables only affected by their parents, grandparents,
great-grand-parents, etc., or is it possible that they are affected by
uncles/aunts, siblings, etc.
Or to phrase it another way, if you draw a line between a node, and
every node that might affect it, does the line always go towards the root
(which I think is drawn at the top in both our diagrams), or does it
sometimes go up, and then back down?
- Oliver