# Brain Teaser Solver (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

See full specifications

## Brain Teaser Solver (Scripts) Publisher's description

### You toss a coin, what is the expected number of tosses for you to get the sequence 'Tails-Heads-Tails'

The function OutcomeSequence.m solve brain teasers such as:

1. You toss a coin, what is the expected number of tosses for you to get the sequence 'Tails-Heads-Tails' ?

2. You throw a dice, what is the expected number of throws for you to get the sequence '1, 2, 3, 2, 1' ?

3. You randomly hit your keyboard, what is the expected number of keys you have to hit to get the sequence 'ABRACADABRA' ?

4. You play one poker game everyday. Assume you are likely to win 1 out of 4 games you play. What is the expected number of days you have to play to win 3 times in a row ?

Function details:
OutcomeSequence(Sequence, N_Outcomes)

Inputs:
- Sequence: sequence (row vector) of numbers representing the different possible outcomes. The occurrence times of those outcomes are assumed to be I.I.D. random variables, i.e. the outcomes occur independently of each other and are equally likely to happen.
- N_Outcomes: number of different possible (independent) outcomes.

Output:
- Expected_Time: expected time to get the input sequence of outcomes. This time would correspond to a number of tosses of a coin, throws of a dice and so on depending on the problem considered.

#### System Requirements:

MATLAB 7.5 (R2007b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### Brain Teaser Solver (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation