reset password
Author Message
vnimnualrat
Posts: 6
Posted 21:51 Jan 12, 2015 |

Is there a correct approximate winning percentages for Jason, Kyle & Lenny for algorithm 1 &  2 to see if we're implementing the algorithm correctly? Thanks.

Last edited by vnimnualrat at 21:54 Jan 12, 2015.
303496263
Posts: 68
Posted 21:55 Jan 12, 2015 |

According to the instructions, the percentages are 30, 50, and 100 respectively.

jpascua
Posts: 197
Posted 21:58 Jan 12, 2015 |

I think he means the output.

vnimnualrat
Posts: 6
Posted 21:58 Jan 12, 2015 |

Sorry, I meant out their winning percentages out of 100,000 duels.

303496263
Posts: 68
Posted 22:14 Jan 12, 2015 |

Oh I see. In my my opinion, even though we all use rand() function, I do not think we will all get the same percentage. I think our percentages will be different from one another and aslo off the predicted 30 and 50 by some good amount. Hence, I do not think there is some concrete percentage number that you can compare your results to.

One way or the other, what are your output percentages?

Last edited by 303496263 at 22:14 Jan 12, 2015.
giraid
Posts: 39
Posted 22:34 Jan 12, 2015 |
303496263 wrote:

Oh I see. In my my opinion, even though we all use rand() function, I do not think we will all get the same percentage. I think our percentages will be different from one another and aslo off the predicted 30 and 50 by some good amount. Hence, I do not think there is some concrete percentage number that you can compare your results to.

One way or the other, what are your output percentages?

I think we will all get similar results if we all programmed correctly because we are running it so many times.

I'm getting a consistent ~41 ~25 ~33 regardless of which strategy I choose.

jpascua
Posts: 197
Posted 22:39 Jan 12, 2015 |

For strategy 1, I'm getting: ~36%, ~42%, ~22%

As for strategy 2, I'm getting: ~41%, ~25%, and 33%

Last edited by jpascua at 15:47 Jan 13, 2015.
303496263
Posts: 68
Posted 22:45 Jan 12, 2015 |

The third guy gotta be 100%...

giraid
Posts: 39
Posted 22:53 Jan 12, 2015 |
303496263 wrote:

The third guy gotta be 100%...

no, it's winning percentage. If you get killed before taking a shot, you cannot shoot anymore, can you?

I was able to find the culprit in my code, my final result now are:

strat 1: ~36 ~42 ~22

strat 2: ~41 ~25 ~33

303496263
Posts: 68
Posted 22:56 Jan 12, 2015 |

Yeah true. I see what you mean.

giraid
Posts: 39
Posted 22:56 Jan 12, 2015 |
jpascua wrote:

For strategy 1, I'm getting: ~36%, ~42%, ~22%

As for strategy 2, I'm getting: ~43%, ~42%, ~15%

hey, we got the same result for strat 1, guess we can pretty much assume that's the correct output. But what about strat 2?

303496263
Posts: 68
Posted 22:59 Jan 12, 2015 |
giraid wrote:
303496263 wrote:

The third guy gotta be 100%...

no, it's winning percentage. If you get killed before taking a shot, you cannot shoot anymore, can you?

I was able to find the culprit in my code, my final result now are:

strat 1: ~36 ~42 ~22

strat 2: ~41 ~25 ~33

I actually misunderstood the question. I thought it's asking for the participants hit ratio.

Will test mine and post results in a bit.

Last edited by 303496263 at 22:59 Jan 12, 2015.
303496263
Posts: 68
Posted 23:21 Jan 12, 2015 |

My results are:

First run:

Jason won: 16.71%
Kyle won: 50.04%
Lenny won: 33.25%


Second run:

Jason won: 16.55%
Kyle won: 49.89%
Lenny won: 33.60%


Third run:

Jason won: 16.71%
Kyle won: 50.00%
Lenny won: 33.29%

vnimnualrat
Posts: 6
Posted 01:32 Jan 13, 2015 |

First Strategy: Jason - 36.12%, Kyle - 41.78%, Lenny - 22.1%

Second Strategy: Jason - 41.86%, Kyle - 24.85%, Lenny - 33.29%

jpascua
Posts: 197
Posted 09:55 Jan 13, 2015 |

We're all getting different results for the 2nd strategy. lol

raywu64
Posts: 44
Posted 11:35 Jan 13, 2015 |

First strat: Jason ~36, Kyle ~41, ~22 

Second strat: Jason: ~41,~24,~33

jpascua
Posts: 197
Posted 15:46 Jan 13, 2015 |

Okay, well I just realized that my program wasn't producing the right outputs for strategy 2 (doesn't logically make sense). I misread the problem and also found a bug. So after some fixes, I'm now getting ~41%, ~25%, and 33%.

Last edited by jpascua at 15:48 Jan 13, 2015.