There was a pot on the fire, and now and then you could hear it bubble and chunk.
火上有一口锅,不时可以听到锅里噗噗冒泡声。
They say it would take one of the Voyagers weeks to cross just one bubble.
VOA: special.2011.06.22
OK. The next largest element has to end up in the second last spot. Et cetera. All right, so it's called bubble sort because it does this bubbling up until it gets there.
好的,下一个最大元素又,能跑到倒数第二的位置,等等如此,好的,这称为冒泡排序,因为这个泡泡一直冒到他自己的位置。
So Selection Sort, while it might be easier perhaps to think through than Bubble Sort, or maybe it's pretty much equivalent, it's just a different approach to the same problem.
因此,仔细想想,选择排序也许比,冒泡排序更简单,或者这两者都差不多,只是对同一问题的不同方法而已。
应用推荐