-- Feb 6 In-Class Exercise Thread
How many distinct strings of head and tails of length `\ceil{\log n}` are there?
``
Solution:
With 2 options for each position, there are `2^{\ceil{\log n}} \approx n` possibilities.
Upper bound the number of coin tosses you would need to make to expect to see them all.
``
Solution:
Considering this as a coupon collector problem, an upper bound given `n` possibilities, the expected number of tosses necessary to "hit" all the `n` possibilities would be would be `O(n(\ln n + O(1))`.
General solution without approximation `2^\ceil{\log n} \approx n`,
- Distinct strings of heads and tails: `2^\ceil{\log n}` possibilities
- Upper Bound: `O(2^\ceil{\log n}(\ln (2^\ceil{\log n}) + O(1))`
(
Edited: 2019-02-06)
''How many distinct strings of head and tails of length @BT@\ceil{\log n}@BT@ are there?''
@BT@@BT@
'''Solution:'''
With 2 options for each position, there are @BT@2^{\ceil{\log n}} \approx n@BT@ possibilities.
----
''Upper bound the number of coin tosses you would need to make to expect to see them all.''
@BT@@BT@
'''Solution:'''
Considering this as a coupon collector problem, an upper bound given @BT@n@BT@ possibilities, the expected number of tosses necessary to "hit" all the @BT@n@BT@ possibilities would be would be @BT@O(n(\ln n + O(1))@BT@.
----
General solution without approximation @BT@2^\ceil{\log n} \approx n@BT@,
* Distinct strings of heads and tails: @BT@2^\ceil{\log n}@BT@ possibilities
* Upper Bound: @BT@O(2^\ceil{\log n}(\ln (2^\ceil{\log n}) + O(1))@BT@