Find Jobs
Hire Freelancers

Heads or Tails(Coin Toss)

$20-25 USD

Completed
Posted over 20 years ago

$20-25 USD

Paid on delivery
When a fair coin is tossed, the only posssible outcomes are Heads (H) and Tails (T). When a coin is tossed many times, the outcomes can be represented as a sequence of Hs and Ts. In this project, we will analyze the sequence of outcomes from tossing a fair coin. You should note that this analysis applies to computer data as well since we could denote Heads using 1 and Tails using 0 rather than H and T. Such analysis can be applied to message encoding and compression. One important aspect of analyzing such a sequence is the number and lengths of the embedded "runs". A "run" is a sequence of consecutive Heads or Tails. For example, in the sequence HHHHTTHHTTTHT, there is a run of 4 Hs, a run of 2 Ts, a run of 2 Hs, a run of 3 Ts, a run of 1 H and finally a run of 1 T. We will count the number of runs of each length for both Heads and Tails. In theory, if we toss a fair coin N times, there is a (very small, teeny, tiny) non-zero probability that all N tosses will be Heads or all N tosses will be Tails. Therefore, in theory the longest possible run for N tosses is N. In an award-winning paper (College Math Journal, Vol 21, 1990), Mark Schilling calculates that the expected longest run for N tosses is the integer closest to log2(N / 2) plus or minus 3, which is much less than N. Our program will help validate Mark's theory. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site). 4) Please Take a look at the Attached File for the Description. ## Platform Unix, C++, Using a Makefile...Read the attached Document.
Project ID: 2980051

About the project

17 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 3 days
4.9 (25 reviews)
4.0
4.0
17 freelancers are bidding on average $14 USD for this job
User Avatar
See private message.
$12.75 USD in 3 days
5.0 (29 reviews)
5.3
5.3
User Avatar
See private message.
$8.50 USD in 3 days
4.9 (37 reviews)
4.6
4.6
User Avatar
See private message.
$17 USD in 3 days
4.9 (48 reviews)
3.8
3.8
User Avatar
See private message.
$17 USD in 3 days
4.9 (36 reviews)
3.8
3.8
User Avatar
See private message.
$17 USD in 3 days
5.0 (19 reviews)
3.6
3.6
User Avatar
See private message.
$18.70 USD in 3 days
4.7 (15 reviews)
3.8
3.8
User Avatar
See private message.
$4.25 USD in 3 days
5.0 (16 reviews)
3.5
3.5
User Avatar
See private message.
$21.25 USD in 3 days
3.4 (12 reviews)
4.0
4.0
User Avatar
See private message.
$21.25 USD in 3 days
4.6 (12 reviews)
2.4
2.4
User Avatar
See private message.
$11.05 USD in 3 days
3.8 (16 reviews)
2.7
2.7
User Avatar
See private message.
$4.25 USD in 3 days
5.0 (3 reviews)
1.3
1.3
User Avatar
See private message.
$6.80 USD in 3 days
3.5 (1 review)
0.8
0.8
User Avatar
See private message.
$17 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$21.25 USD in 3 days
5.0 (2 reviews)
0.0
0.0
User Avatar
See private message.
$17 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$3.40 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Baltimore, United States
4.9
5
Member since Mar 7, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.