test

a] A<B, C<D
b] A>B, C<D
c] A=B, C<D,
d] A<B, C>D
e] A>B, C>D
f] A=B, C>D
g] A=B, C=D


A<B is 25% means the case could be a or d <25% in both cases C<D does not
get executed as if condition is satisfied
and C<D is 75% means case could be a or b or c. in case a foo2 will not get
executed but in b,c it will.
in worst case when A<B, C<D for 25%(as this is worst case), foo2 will not
get executed.This implies that other than this there are 50% cases where C<D
(case b,c)

I hope it is clear now. At this juncture i do not need to refresh my
fundamentals for probability, if need arise i will :)



Best Regards
Ashish Goel
Principle Architect, PMP

"Think positive and find fuel in failure"
+919985813081
+919966006652


On Tue, Dec 21, 2010 at 7:00 PM, Ankur Khurana <ankur.kkhur...@gmail.com>wrote:

> can you provide the test cases ?
> between ,
> btw answer my question abt the tosses. plus closed mind argument goes
> both ways. i have tried to explain.
> if you dont want to understand , it is nobody's prob.wont comment
> further on this topic.
>
> On Tue, Dec 21, 2010 at 6:55 PM, Ashish Goel <ashg...@gmail.com> wrote:
> > this is not probability purely...there is an "else" in between :)
> > why don't you write the program and test it out yourself :)
> >
> >
> >
> > Best Regards
> > Ashish Goel
> > "Think positive and find fuel in failure"
> > +919985813081
> > +919966006652
> >
> >
> > On Tue, Dec 21, 2010 at 6:52 PM, Ankur Khurana <ankur.kkhur...@gmail.com
> >
> > wrote:
> >>
> >> ashish , nobody is fighting here , but are u sure you are clear on
> >> your probability concepts ? independent events do multiply .
> >> what is the probability that when we toss three coins , we get all three
> >> heads ?
> >>
> >> On Tue, Dec 21, 2010 at 6:45 PM, Ashish Goel <ashg...@gmail.com> wrote:
> >> > Dear Shashank
> >> >
> >> > What will get executed if A<B and C<D, then will foo2 get executed? NO
> >> > In worst cast(when A<B and C<D happens at same time i.e.25%), the foo2
> >> > fn
> >> > will get executed 50% i.e. 2500 times
> >> > Don't get me wrong, but closed mind is one of the reason people get
> >> > rejected.
> >> > Best Regards
> >> > Ashish Goel
> >> > "Think positive and find fuel in failure"
> >> > +919985813081
> >> > +919966006652
> >> >
> >> >
> >> > On Tue, Dec 21, 2010 at 5:31 PM, bittu <shashank7andr...@gmail.com>
> >> > wrote:
> >> >>
> >> >> @ashish..... u r getting wrong if & else makes complete unit so if 1
> >> >> fails other executes..no doubt in these..its not tough as much as u
> >> >> taking it....
> >> >>
> >> >>
> >> >> what ii think some guys r right & i got same solution..i don't thinsg
> >> >> to xplain  becoz, kathir,ankur has xplained same... & answer will be
> >> >>
> >> >> 2812
> >> >>
> >> >>
> >> >> Thanks & Regards
> >> >> Shashank Mani Narayan  "Don't B Evil U can Earn While U Learn"
> >> >> Birla Institue of Technology,Mesra
> >> >> Computer Science & Engineering
> >> >> Cell +91-9740852296
> >> >>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups
> >> >> "Algorithm Geeks" group.
> >> >> To post to this group, send email to algoge...@googlegroups.com.
> >> >> To unsubscribe from this group, send email to
> >> >> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> >> >> For more options, visit this group at
> >> >> http://groups.google.com/group/algogeeks?hl=en.
> >> >>
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "Algorithm Geeks" group.
> >> > To post to this group, send email to algoge...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/algogeeks?hl=en.
> >> >
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Algorithm Geeks" group.
> >> To post to this group, send email to algoge...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/algogeeks?hl=en.
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algoge...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/algogeeks?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to