It takes advantage of the fact that performing a swap can introduce a new out-of-order adjacent pair only right before or after the two swapped elements.
原理是,交换一对乱序元素后,会产生一对新的无序相邻元素,而这两个元素要么交换前有序,要么交换后有序。
Two charts were swapped by mistake, so the text refers in two places to the wrong charts.
两个图表错误地交换,所以两处参考的文本对应着错误的图表。
The fish that learned to prefer the rich feeder were then allowed to watch their fellow fish feeding in a separate test but, this time, the two feeders had been swapped.
将那些已习得偏好“高量喂食器”的九刺鱼放在一边,让它们看着同伴九刺鱼进行另一项测试,不过,这一次两个喂食器位置互换了。
应用推荐