[algogeeks] Re: function problem

2009-09-18 Thread Dave
Minor correction: 3/4 * 3/4 = 9/16, not 9/8. 110% probabilities occur only in politics. Dave On Sep 17, 3:08 pm, "v...@ibh@V singhal" wrote: > yeah!!! arun is right > we can see same by probability!! > AB will be in 3/4 probability.. > C to call foo2 probabiliy will be by production ru

[algogeeks] Re: function problem

2009-09-18 Thread v...@ibh@V singhal
yeah!!! arun is right we can see same by probability!! AB will be in 3/4 probability.. C>>3/4*3/4=9/8 ans=9/8*5000 On Thu, Sep 17, 2009 at 12:50 PM, Arun wrote: > else condition wud be called 75% times. of that 75% times c so foo2 wud be called (0.75)*(0.75)*5000 times. > > > On Thu, Sep

[algogeeks] Re: function problem

2009-09-18 Thread ashish gupta
actually it depends upon whether condition (Awrote: > > 5. void foo1() > { > if(A Then {_/* */} > else > if(C then foo2() > } > How many time foo2() would get called given > A foo1() is called 5000 times > > > > --~--~-~--~~~---~--~~ You received this message b

[algogeeks] Re: function problem

2009-09-17 Thread Arun
else condition wud be called 75% times. of that 75% times cwrote: > > 5. void foo1() > { > if(A Then {_/* */} > else > if(C then foo2() > } > How many time foo2() would get called given > A foo1() is called 5000 times > > > > --~--~-~--~~~---~--~~ You received