[algogeeks] not recieving mails

2012-02-01 Thread arpit.gupta
HI,
i am not recieving any mails since 20 jan , plz chk
thank you

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: Probability Puzzle

2011-08-09 Thread arpit.gupta
it is (1/5)/( (4/5 *(1/2)^6) + (1/5 * 1)) = 80/85 = 16/17

On Aug 7, 10:54 pm, Nitish Garg nitishgarg1...@gmail.com wrote:
 Should be (4/5 *(1/2)^6) + (1/5 * 1) = 17/80

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: Probability Puzzle

2011-08-09 Thread arpit.gupta
ans is 16/17 + 1/2*1/17 = 33/34

On Aug 7, 10:34 pm, Algo Lover algolear...@gmail.com wrote:
 A bag contains 5 coins. Four of them are fair and one has heads on
 both sides. You randomly pulled one coin from the bag and tossed it 5
 times, heads turned up all five times. What is the probability that
 you toss next time, heads turns up. (All this time you don't know you
 were tossing a fair coin or not).

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: Probability Puzzle

2011-08-09 Thread arpit.gupta
@dave- calculation mistake on my part - method is right.

getting 17/18 only thanks anyways.

On Aug 9, 6:26 pm, Dave dave_and_da...@juno.com wrote:
 @Arun: The probability of getting a head on the first toss is
 1/5 * 1 + 4/5 * (1/2) ) = 3/5,
 while the probability of getting 2 consecutive heads is
 1/5 * 1 + 4/5 * (1/2)^2 ) = 2/5.
 Thus, the probability of getting a head on the second roll given that
 you have gotten a head on the first roll is (2/5) / (3/5), which is
 2/3.

 If you didn't know the outcome of the first roll, the probability of
 heads on the second roll would still be 3/5.

 Dave

 On Aug 9, 2:57 am, Arun Vishwanathan aaron.nar...@gmail.com wrote:







  @dave: yes it seems so that 17/18 is correct...I deduced it from the cond
  prob formula..

  I have a minor doubt in general why  prob( 2nd toss is a head given that
  a head occurred in the first toss ) doesnt seem same as p( head in first
  toss and head in second toss with fair coin) +p(head in first toss and head
  in second toss with unfair coin)? is it due to the fact that we are not
  looking at the same sample space in both cases?i am not able to visualise
  the difference in general..this is also the reason why most of the people
  said earlier 17/80 as the answer

  moreover, if the question was exactly the same except in that it was NOT
  mentioned that heads occurred previously , what would the prob of getting a
  head in the second toss?

  would it be P( of getting tail in first toss and head in second toss given
  that fair coin is chosen) +P( of getting head in first toss and head in
  second toss given that fair coin is chosen) +P( getting heads in first toss
  and heads in second toss given that unfair coin is chosen) ? this for any
  toss turns out to be 3/5 can u explain the logic abt why it always gives
  3/5?

  On Tue, Aug 9, 2011 at 7:37 AM, raj kumar megamonste...@gmail.com wrote:
   plz reply am i right or wrong

   --
   You received this message because you are subscribed to the Google Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@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.

  --
   People often say that motivation doesn't last. Well, neither does bathing
  - that's why we recommend it daily.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: Probability Puzzle

2011-08-09 Thread arpit.gupta
@dave - method is right, calculation mistake on my part, getting 17/18
only. thanks anyways.

On Aug 9, 6:26 pm, Dave dave_and_da...@juno.com wrote:
 @Arun: The probability of getting a head on the first toss is
 1/5 * 1 + 4/5 * (1/2) ) = 3/5,
 while the probability of getting 2 consecutive heads is
 1/5 * 1 + 4/5 * (1/2)^2 ) = 2/5.
 Thus, the probability of getting a head on the second roll given that
 you have gotten a head on the first roll is (2/5) / (3/5), which is
 2/3.

 If you didn't know the outcome of the first roll, the probability of
 heads on the second roll would still be 3/5.

 Dave

 On Aug 9, 2:57 am, Arun Vishwanathan aaron.nar...@gmail.com wrote:







  @dave: yes it seems so that 17/18 is correct...I deduced it from the cond
  prob formula..

  I have a minor doubt in general why  prob( 2nd toss is a head given that
  a head occurred in the first toss ) doesnt seem same as p( head in first
  toss and head in second toss with fair coin) +p(head in first toss and head
  in second toss with unfair coin)? is it due to the fact that we are not
  looking at the same sample space in both cases?i am not able to visualise
  the difference in general..this is also the reason why most of the people
  said earlier 17/80 as the answer

  moreover, if the question was exactly the same except in that it was NOT
  mentioned that heads occurred previously , what would the prob of getting a
  head in the second toss?

  would it be P( of getting tail in first toss and head in second toss given
  that fair coin is chosen) +P( of getting head in first toss and head in
  second toss given that fair coin is chosen) +P( getting heads in first toss
  and heads in second toss given that unfair coin is chosen) ? this for any
  toss turns out to be 3/5 can u explain the logic abt why it always gives
  3/5?

  On Tue, Aug 9, 2011 at 7:37 AM, raj kumar megamonste...@gmail.com wrote:
   plz reply am i right or wrong

   --
   You received this message because you are subscribed to the Google Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@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.

  --
   People often say that motivation doesn't last. Well, neither does bathing
  - that's why we recommend it daily.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: Sequence Puzzle 13april

2011-04-14 Thread arpit.gupta
3 1 2 2 1 1
1 3 1 1 2 2 2 1

On Apr 13, 12:32 pm, Lavesh Rawat lavesh.ra...@gmail.com wrote:
 * Sequence Puzzle

 The below is a number puzzle. It should be read left to right, top to
 bottom.
 Question 1 What is the next two rows of numbers.
 Question 2 How was this reached.
 1 1
 2 1
 1 2 1 1
 1 1 1 2 2 1
 *
 *Update Your Answers at* : Click
 Herehttp://dailybrainteaser.blogspot.com/2011/04/sequence-puzzle-13april

 Solution:
 Will be updated after 1 day

 --

                     Never explain yourself. Your friends don’t need it and
 your enemies won’t believe it .

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: 11april

2011-04-11 Thread arpit.gupta
one word

On Apr 11, 12:58 pm, Lavesh Rawat lavesh.ra...@gmail.com wrote:
 * New Door Puzzle

 Rearrange the letters in 'new door' to make one word. I will only accept 1
 answer.
 *
 *Update Your Answers at* : Click
 Herehttp://dailybrainteaser.blogspot.com/2011/04/11april.html?lavesh=lavesh

 Solution:
 Will be updated after 1 day

 --

                     Never explain yourself. Your friends don’t need it and
 your enemies won’t believe it .

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: 30march

2011-04-01 Thread arpit.gupta
Very Very simple problem !!!

On Mar 30, 1:22 pm, Lavesh Rawat lavesh.ra...@gmail.com wrote:
 *Fishing Problem *
 *
 *Two fathers and two sons went for fishing. Each of them caught a fish, and
 none of them caught the same fish. However, they caught a total of only
 three fish. How is this possible?

 Update Your Answers at : Click
 Herehttp://dailybrainteaser.blogspot.com/2011/03/30march.html?lavesh=lavesh

 Solution:
 Will be updated after 1 day

 --

                     Never explain yourself. Your friends don’t need it and
 your enemies won’t believe it .

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] Re: A Billion Number Question

2011-03-17 Thread arpit.gupta
read the first no. .
now ans= first no +1;
if now ans is encountered while reading the next nos. add 1 to ans.
i.e. ans++;



On Mar 17, 2:18 am, bittu shashank7andr...@gmail.com wrote:
 Given an input file with four billion integers, provide an algorithm
 to generate an integer which is not contained in the file. Assume you
 have 1 GB of memory.

 2nd Part
 What if you have only 10 MB of memory?

 Thank
 Shashank

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.



[algogeeks] ONLINE CODING COMPETITION

2011-02-19 Thread arpit.gupta
DELHI COLLEGE of ENGINEERING , online coding competition

Bytes-The Online Coding Competition will be on 19 Feb 2011.
The event will be of 2 rounds:

* First Time slot: 6pm - 8pm
* Second Time slot: 9pm - 11pm


Every participant should have an id at www.spoj.pl
The winner will be decided from the combined result of both the
rounds.

http://www.spoj.pl/BYTES11A

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@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.