itgle.com

is true regarding simple sort techniques.A.Both insertion sort and selection sort require O(n)moves.B.Exchange sort is frequently referred to as a bubble sort.C.If random data are in an array that is to be sorted, an insertion sort will give the best perf

题目

is true regarding simple sort techniques.

A.Both insertion sort and selection sort require O(n)moves.

B.Exchange sort is frequently referred to as a bubble sort.

C.If random data are in an array that is to be sorted, an insertion sort will give the best performance for large elements with small sort items.

D.Exchange sort is the least expensive.


相似考题
更多“is true regarding simple sort techniques.A.Both insertion sort and selection sort requ ”相关问题
  • 第1题:

    对文件mf分别按字典顺序、月份顺序、算术值进行排序的命令是: sort -d mf; sort -M mf; sort -n mf


    正确

  • 第2题:

    对数组data的元素从大到小排列

    A.Reverse[Sort[data]]

    B.Sort[data,#1>#2&]

    C.Sort[data,Greater]

    D.Sort[data]


    Reverse[Sort[data]];Sort[data,#1>#2&];Sort[data,Greater]

  • 第3题:

    对DataFrame进行按值排序使用什么函数?

    A.sort_values()

    B.sortvalues()

    C.sort__index()

    D.sort()


    A

  • 第4题:

    对数组data的元素从小到大排列

    A.Sort[data]

    B.Sort[data,#1<#2&]

    C.Sort[data,Less]

    D.Reverse[Sort[data]]


    Sort[data];Sort[data,#1;Sort[data,Less]

  • 第5题:

    8) 以下哪种使用std::sort算法的方式是不合法的:

    A.vector<int> a; …; sort(a.begin(), a.end());

    B.bool b[99]; …; sort(b, b + 99);

    C.string c = “2333”; …; sort(c.begin(), c.end());

    D.list<int> d; …; sort(d.begin(), d.end());


    A

  • 第6题:

    8、对数组data的元素从大到小排列

    A.Reverse[Sort[data]]

    B.Sort[data,#1>#2&]

    C.Sort[data,Greater]

    D.Sort[data]


    Reverse[Sort[data]];Sort[data,#1>#2&];Sort[data,Greater]