@snehal 1. Both are valid. 2. see taocp's sol. The probability of selecting AB to shoot is 1/3, so is BC,AC If AB were selected, the probability of hitting the target is (1- probability of both of them missed) = (1-(1-P(A)(1-P(B)), similar with case BC and AC.
On Jan 11, 11:58 am, snehal jain <[email protected]> wrote: > 1. what is valid in cpp > char *cp; > const char* cpp; > 1. cpp=cp 2. cp=cpp > > 2 there r 3 ppl A B C > A can shoot the target 4 out of 5 times B can shoot 6 out of 7 times > and C can shoot 8 out of times. 2 people r selected at random. then > wat is the probability of hitting the target? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
