请输入您要查询的字词:

 

单词 shuttle sort
释义
shuttle sort

Statistics
  • A simple, but not very efficient, algorithm for arranging a set of n numbers in order of magnitude. The method starts with the left-hand pair of numbers, swapping them if necessary. The second and third numbers are now considered. If they are swapped then the first pair are reconsidered. Next the third and fourth numbers are considered. If swapped then previous pairs are again reconsidered, working from right to left. As with the bubble sort, ½n(n−1) comparisons may be required.

    shuttle sort

    Shuttle sort. A sorting method based on swaps of pairs of numbers. In the example, × indicates a swap and ◯ that no swap is required. The sort works from left to right, reconsidering earlier pairs when a swap is made.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2025/2/6 1:53:32