Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Stuck with hw

by dga (Hermit)
on Apr 02, 2003 at 21:43 UTC ( [id://247617]=note: print w/replies, xml ) Need Help??


in reply to Stuck with hw

An accurate solution is not possible from the input data unless it is known how the individual games from each match turned out.

For example in the Kasparov Karpov match the score 2.0-2.0 could be a result of.

KasparovKarpov
win 2 lose 2win 2 lose 2
win 1 draw 2 lose 1win 1 draw 2 lose 1
win 0 draw 4 lose 0win 0 draw 4 lose 0

Each of these will produce the 2.0-2.0 score from the excersize. Of course, pointing this out to your teacher may not improve your grade. I guess you could code the excersize to print out all the possible variations for each score but this will cause the summary scores at the end to vary over a wide range indeed since for this one match they could each have 0,1, or 2 wins, 0,1 or 2 losses, or 0, 2, or 4 draws with a couple these combined in the middle...

One consolation, is that the .5 scores have to have an odd number of draws and the .0 scores have to have an even number of draws.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://247617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found