题目描述
Farmer John owns N cows with spots and N cows without spots. Having just completed a course in bovine genetics, he is convinced that the spots on his cows are caused by mutations at a single location in the bovine genome.
At great expense, Farmer John sequences the genomes of his cows. Each genome is a string of length Mbuilt from the four characters A, C, G, and T. When he lines up the genomes of his cows, he gets a table like the following, shown here for N=3:
Positions: 1 2 3 4 5 6 7 … M
Spotty Cow 1: A A T C C C A … T
Spotty Cow 2: G A T T G C A … A
Spotty Cow 3: G G T C G C A … A
Plain Cow 1: A C T C C C A … G
Plain Cow 2: A C T C G C A … T
Plain Cow 3: A C T T C C A … T
Looking carefully at this table, he surmises that position 2 is a potential location in the genome that could explain spottiness. That is, by looking at the character in just this position, Farmer John can

该博客介绍了USACO2017比赛中关于斑点牛基因组的问题,讨论如何通过牛的基因序列来确定斑点特征的位置。博主解释了问题背景,给出了输入输出格式,并分享了解题思路,包括使用集合来筛选只存在于斑点牛基因中的字符位置,从而计算可能解释斑点的基因位置数量。
最低0.47元/天 解锁文章
352

被折叠的 条评论
为什么被折叠?



