Engineering MathematicsVery hardGATE CS (PYQ pattern)
A fair coin is tossed repeatedly. What is the expected number of tosses until the pattern H T H T first appears as four consecutive tosses?
- A. 20
- B. 16
- C. 18
- D. 22
Correct answer: A. 20
Using overlaps with the pattern (the whole word, and the prefix HT that is also a suffix): E = 2⁴ + 2² = 20. A pattern with no self-overlap such as HHHT would need only 16, and 18 is the answer for HHTH.
Practise more Engineering Mathematics (GATE) questionsEngineering Mathematics (GATE): notes and key points
More Engineering Mathematics (GATE) questions
- A real 4×4 matrix A satisfies A⁴ = I, trace(A) = 0 and det(A) = 1. Up to similarity over the reals, how many such matrices A exist?
- Let A be the 5×5 matrix with entries aᵢⱼ = |i − j|. What is det(A)?
- What is lim (n → ∞) of [ (3n)! / (n!)³ ]^(1/n)?
- A 3×3 real matrix A has eigenvalues 1, 2 and 3. What is the determinant of B = A⁻¹ + A²?
- A box holds three coins: one fair, one two-headed, and one biased with P(Head) = 1/4. A coin is picked at random and tossed twice, giving…
- Evaluate ∫₀² ∫{x/2}^{1} e^{y²} dy dx.