搜索资源列表
sorting
- Sorts countries by different atributes, with 11 different sorting alghoritems (1)straightInsertion 2)binaryInsertion 3)straightSelection 4)bubbleSort1 5)bubbleSort2 6)shakerSort 7)shellSort1\n8)heapSort 9)quickSort R 10)quickSort I 11)mergeSort)-Sort
Josephus
- 约瑟夫环,设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,…,如此反复直到所有的人全部出列为止。以n=8,s=1,m=4为例,若初始的顺序为 n1,n2,n3,n4,n5,n6,n7,n8。则问题的解为n4,n8,n5,n2,n1,n3,n7,n6。-Joseph Wan, with n individuals sitting around a round table, is reported starting from