[Cs5500] question in the gen.hsr.HSRSolution.java

Anush Prabhu Ramachandran ramachandran.a at husky.neu.edu
Mon Mar 28 14:47:31 EDT 2011


Hi Yu,

Sorry for the mistake, it should be
"depth = Math.max(((Compound)this).getYes().findDepth(),

                ((Compound)this).getNo().findDepth()) +1;"


I have updated the changes in our svn.

Please let me know if there is any issue.

Thanks,
AnushRashmi Team.

On Mon, Mar 28, 2011 at 2:36 PM, Liang Yu <yu.lia at husky.neu.edu> wrote:

> hi,
>
> when I tested the solve function for the HSRAvatar,
> I tried to use the findDepth() function, however I cannot get the
> answer I expected.
>
> so I turned to the source code (gen.hsr.HSRSolution.java),
> and I found
>
> line 38: "depth = Math.max(((Compound)this).getYes().findDepth(),
>
>                   ((Compound)this).getYes().findDepth()) +1;"
>
>
> do you guys think the parameters in the Math.max function are right?
>
> they are the same. so why put the same parameters in the max function?
>
> --
> --
> Regards,
> *Liang*
> College of Computer and Information Science,
> Northeastern University
> Tel: 718-501-0145
> MSN: yuliang.name at gmail.com (this is my primary email)
>
>
>
> _______________________________________________
> Cs5500 mailing list
> Cs5500 at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/cs5500
>
>
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the Cs5500 mailing list