a**********2 发帖数: 340 | 1 We have been given a deck of cards and each combination has a rating eg 3 As
is higher than 2 As 1K etc.
Write an algorithm such that the probability of picking 3 or 5 or 7 cards
from the deck results in high rating
谁来说说这个题啊?不太明白 |
l*********8 发帖数: 4642 | 2 我开始没读懂题目。
看了一会儿,我猜题目是:
”3张A“比”两个A一个K“大。
一开始可以取三张牌,然后你可以决定是否再取两张 (共5张牌)。 在然后,可以决
定是否再加两张牌(共7张)。 要求你的算法尽可能让手里的牌大。
As
【在 a**********2 的大作中提到】 : We have been given a deck of cards and each combination has a rating eg 3 As : is higher than 2 As 1K etc. : Write an algorithm such that the probability of picking 3 or 5 or 7 cards : from the deck results in high rating : 谁来说说这个题啊?不太明白
|
c********t 发帖数: 5706 | 3 还是没懂,那直接拿7张,不是牌大的可能性大?
【在 l*********8 的大作中提到】 : 我开始没读懂题目。 : 看了一会儿,我猜题目是: : ”3张A“比”两个A一个K“大。 : 一开始可以取三张牌,然后你可以决定是否再取两张 (共5张牌)。 在然后,可以决 : 定是否再加两张牌(共7张)。 要求你的算法尽可能让手里的牌大。 : : As
|
l*********8 发帖数: 4642 | 4 我觉得, 3张牌和5、7张牌的rating, 要normalize之后才能比较。
比如 AAK 可能是 三张牌中top %5 的rating
而 AAAAK可能是 五张牌中top %1的rating.
【在 c********t 的大作中提到】 : 还是没懂,那直接拿7张,不是牌大的可能性大?
|
c********t 发帖数: 5706 | 5 那太复杂了
比如 到底AAK 大 还是 QQQ55大?
【在 l*********8 的大作中提到】 : 我觉得, 3张牌和5、7张牌的rating, 要normalize之后才能比较。 : 比如 AAK 可能是 三张牌中top %5 的rating : 而 AAAAK可能是 五张牌中top %1的rating.
|