# FW: Question 2 - unknowns (fwd)

Subject: FW: Question 2 - unknowns (fwd)
From: Pengcheng Wu (wupc@ccs.neu.edu)
Date: Tue Jan 28 2003 - 17:27:21 EST

Yesterday, I had a discussion with some students about this issue during
my office hour. Now I have got the official answer about it.
I thought it was some sort of 'bug', now I would like to correct it. It
is not a 'bug'!

--Pengcheng Wu

---------- Forwarded message ----------
Date: Tue, 28 Jan 2003 16:19:13 -0500
From: Karl Lieberherr <lieber@ccs.neu.edu>
To: Yi Qian <qianyi@ccs.neu.edu>, Elif Ozturk Ozcelik <ozturkel@ccs.neu.edu>,
Doug Orleans <dougo@ccs.neu.edu>, Johan Ovlinger <johan@ccs.neu.edu>,
"Lieber@Ccs.Neu.Edu" <lieber@ccs.neu.edu>, Pengcheng Wu <wupc@ccs.neu.edu>,
Sergei Kojarski <kojarski@ccs.neu.edu>,
Therapon Skotiniotis <skotthe@ccs.neu.edu>
Subject: FW: Question 2 - unknowns

An interesting detail of strategies.

-- Karl

-----Original Message-----
From: Doug Orleans [mailto:dougo@ccs.neu.edu]
Sent: Tuesday, January 28, 2003 2:07 PM
To: Manali R. Bhole
Cc: Johan Ovlinger; com3360@ccs.neu.edu
Subject: Re: Question 2 - unknowns

Manali R. Bhole writes:
> It looks like the output ( and also the traversal graph) produced by
> gather
> function with input "from A through X to F" and "{A -> X X-> F}" are
> different.
> The no of lists are also 1 and 2 respectively. Why is it so? I thought
> that they are "same"

The strategy

"from A through X to F"

is the same as

"{ source: A -> X X -> target: F }",

but if you leave out the "source:" and "target:" markers, it considers
all nodes in the strategy graph to be both sources and targets of the
strategy. The "gather" method collects all objects corresponding to
the target(s) of the strategy, so in the latter case, it will collect
all A-objects, X-objects, and F-objects, while in the former case it
will only collect F-objects.

This archive was generated by hypermail 2b28 : Tue Jan 28 2003 - 17:27:22 EST