作业帮 > 英语 > 作业

英语翻译linear cellular automataA biologist is experimenting wit

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:英语作业 时间:2024/06/18 06:15:08
英语翻译
linear cellular automata
A biologist is experimenting with DNA modification of bacterial colonies being grown in a linear array of culture dishes.By changing the DNA,he is able "program" the bacteria to respond to the population density of the neighboring dishes.Population is measured on a four point scale (from 0 to 3).The DNA information is represented as an array DNA,indexed from 0 to 9,of population density values and is interpreted as follows:
In any given culture dish,let K be the sum of that culture dish's density and the densities of the dish immediately to the left and the dish immediately to the right.Then,by the next day,that dish will have a population of density of DNA[K].
The dish at the far right of the line is considered to have a right neighbor with population density 0.
Now,clearly,some DNA programs cause all the bacteria to die off(e.g.,[0,0,0,0,0,0,0,0,0,0]).Others result in immediate population explosions(e.g.,[3,3,3,3,3,3,3,3,3,3,3]).The biologist is interested in how some of the less obvious intermediate DNA programs might behave.
Write a program to simulate the culture growth in a line of 40 dishes assuming that dish 20 starts with a population density of 1 and all other dishes start with a population density of 0.
Input
Your program will read in the DNA program(10 integer values)on one line
Output
It should print the densities of the 40 dishes for each of the next 50 days.Each day's printout should occupy one line of 40 characters.Each dish is represented by a single character on that line.Zero population densities are to be printed as the character ` '.Population density 1 will be printed as the character `.'.Population density 2 will be printed as the character `x'.Population density 3 will be printed as the character `W'.
Note:
Whe show only the first ten lines of output and the spaces have been replaced with the character "b" for ease of reading.The actual output file will use the ASCII-space character,not "b".
请不要使用翻译工具.
请人工翻译.>_
都说了不要用翻译工具了..
用Google翻我自己不会吗?= =
英语翻译linear cellular automataA biologist is experimenting wit
有一个生物学家正在试验用被修改的细菌的DNA培养在一个培养皿中.通过DNA的改变,他能够“编辑(计算,计划"这个词我不确定")”细菌,以回应周边的人口密度.人口是4分制(从0到3).这个DNA的信息被表示为一组数据,索引(←这个我不清楚啥意思)从0到9,人口密度值,并解释如下:
在任何特定的培养皿中,让K是该培养皿的密度之和的凹盘的密度立即向左和向右立即下陷.然后,由第二天,然后培养皿中就会有人口密度的DNA [K].
在该行的最右侧的器皿中被认为是有一个与0个特定人口的密集度
现在,很明显,一些DNA程序导致所有的细菌都死光了(例如,[0,0,0,0,0,0,0,0,0,0]).其他导致立即人口爆炸(例如,[3,3,3,3,3,3,3,3,3,3,3]).有兴趣的生物学家如何一些不太明显的中间DNA的程序可能表现.
编写一个程序来模拟在40行培养皿的发展假设器皿是20 1 1人口密度和所有其他器皿中为0开始的人口密度.
输入
你的程序将读取DNA程序(10个数字在同一行)
输出
它应为打印在未来50天,每年40菜的密度.每天的打印应占1行40个字符.每一道菜的代表是该行对单个字符.人口密度是零要打印的字符`'.人口密度1将打印的字符`.'.人口密度2将打印的字符X的.人口密度3将打印的字符`W字.
注:
磨片只显示前10个输出线和空间已与字符“B便于阅读”所取代.实际的输出文件将使用ASCII空格字符,而不是“B”的.
大姐...你是学生物专业的吧- -!俺才高二..看不明白的啊...先写到这,要是不对了我再改哦..