15.1.2

9 views
Skip to first unread message

mike

unread,
Jan 26, 2011, 12:54:29 AM1/26/11
to Study-HTDP
Hi; if any body still checks this site ; i have a clarification
question (could not post on plt-scheme site)
does how-far-removed suppose to return the most shallow descendant
with blue eyes? If i make dave for instance
have a child with blue eyes (blue-eyed-descendants carl) returns 2;
but eva is ignored. So the function is correct
if we check oldest child first but incorrect if the desired output is
the most shallow descendant.
mike

Luke Jordan

unread,
Jan 26, 2011, 11:55:51 PM1/26/11
to study...@googlegroups.com
It's not clear what you mean from the way the question is written.  Also it would help to include code.  There isn't enough information for anyone to be helpful.  When in doubt return to the problem statement.  According to that, how-far-removed returns the first instance of blue eyes it identifies, not the instance farthest descended from the parent that is given as an argument (which is what I think you mean by "most shallow").

-Luke

mike

unread,
Jan 27, 2011, 1:27:59 PM1/27/11
to Study-HTDP
I see your point Luke
; thanks for your input
mike

Luke Jordan

unread,
Jan 27, 2011, 2:39:20 PM1/27/11
to study...@googlegroups.com

Anytime. I wish this group was more active!

On Jan 27, 2011 12:28 PM, "mike" <anes...@mac.com> wrote:

I see your point Luke
; thanks for your input
mike


On Jan 26, 8:55 pm, Luke Jordan <luke.jor...@gmail.com> wrote:

> It's not clear what you mean from ...

> On Tue, Jan 25, 2011 at 23:54, mike <anesw...@mac.com> wrote:

> > Hi; if any body still checks thi...

Grant Rettke

unread,
Jan 27, 2011, 3:22:31 PM1/27/11
to study...@googlegroups.com
On Thu, Jan 27, 2011 at 1:39 PM, Luke Jordan <luke....@gmail.com> wrote:
> Anytime. I wish this group was more active!

I'm guessing that people just post to the Racket-Users list these days.

Grant Rettke

unread,
Jan 27, 2011, 3:46:42 PM1/27/11
to study...@googlegroups.com
On Thu, Jan 27, 2011 at 2:41 PM, Luke Jordan <luke....@gmail.com> wrote:
> They do but if you follow that list most of the (considerable) traffic is
> related to pretty arcane matters of the language itself that hold little
> interest to us mortals.

Indeed.

Luke Jordan

unread,
Jan 27, 2011, 3:41:26 PM1/27/11
to study...@googlegroups.com
They do but if you follow that list most of the (considerable) traffic is related to pretty arcane matters of the language itself that hold little interest to us mortals.

Reply all
Reply to author
Forward
0 new messages