Re: order of a node



On Nov 6, 7:31 pm, George <geo...@xxxxxxxxxxxxxxx> wrote:
On Thu, 6 Nov 2008 17:10:45 -0800 (PST), user923005 wrote:
On Nov 6, 4:42 pm, George <geo...@xxxxxxxxxxxxxxx> wrote:
If the following were part of a standard C program in which this node was
used meaningfully,

25 typedef struct pNode {
26 char *nodeId;
27 struct pSimple *semStats;
28 struct pComplex *sysStats;
29 } pNode, *pNode_ptr;

how many connections to other nodes and to itself would it have?

Zero. The pNode struct has no pointers to type pNode in it.
There will be some other container for the pointers. This is not
enough to establish a list or tree or other useful node structure.

What good is a node of order zero?

Providing trick questions on exams ;)
.



Relevant Pages