英语翻译Merge data from the original into the additional array at the very bottom stage,and thereafter perform the next merge from the additional into the original array,in which way merge operations are applied to the original and additional arr
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 23:00:25
英语翻译Merge data from the original into the additional array at the very bottom stage,and thereafter perform the next merge from the additional into the original array,in which way merge operations are applied to the original and additional arr
英语翻译
Merge data from the original into the additional array at the very bottom stage,and thereafter perform the next merge from the additional into the original array,in which way merge operations are applied to the original and additional array in turn as you go through each repetitive stage.Don't copy back intermediate results to the original array at the end of each stage for the purpose of always merging data from the original to the additional array
1楼灵格斯
英语翻译Merge data from the original into the additional array at the very bottom stage,and thereafter perform the next merge from the additional into the original array,in which way merge operations are applied to the original and additional arr
楼主耐下心来好好看还是很好理解的.
首先来明白一些词的意思吧:
merge.into.合并,并入,把.合并到.
at the bottom stage:编程英语书中经常出现,意思为:数组从下标0开始,也就是数组底部(bottom)
be applied to :适用于,应用于,用来表示
copy back:在编程中称为回写,就是将原来旧的数据复制过来
in turn:轮流;反过来 ;交换
go through:通过,完成
repetitive:重复性的
stage:阶段,each repetitive stage:意为每一次重复性的过程
intermediate :中间的 ,中间物,在编程术语中,意为:中间变量,临时变量
for the purpose of.:目的是,为了.目的
这样就好理解这段话了:
把原始数组(假设为数组A)中的数据合并到另外一个数组(假设为数组B)中,从数组底部开始,然后,做下一个合并操作,又把另外的那个数组(即数组B)中的数据再合并到原数组(即数组A)中.这种合并操作的方式用来表示交换两个数组,当你完成(go through)每一次这样重复的操作.不要回写到中间变量中,然后再把这个中间变量复制到原始数组中,这样做的目的是为了总是交换原始数组和另一个数组中的数据.(简单说来,就是有两个数组,不使用中间变量,交换他们的数据,)
大学编程题中经常做的事,楼主明白了么~