【判断题】【消耗次数:1】
求两个n阶矩阵的乘积,算法的基本操作为乘法 ,时间复杂度为 O(n3) 。
正确
错误
参考答案:
复制
纠错
相关题目
【判断题】 希尔排序算法的时间复杂度为O(n2)。()
①  正确
②  错误
【单选题】 在n个结点的顺序表中,算法的时间复杂度是O(1)的操作是
①  访问第i个结点(1≤i≤n)
②  在第i个结点后插入一个新结点(1≤i≤n)
③  删除第i个结点(1≤i≤n)
④  将n个结点从小到大排序
【单选题】 下列各种排序算法中平均时间复杂度为O(n2)是()。
①  快速排序
②  堆排序
③  归并排序
④  冒泡排序
【单选题】 对具有n个结点的线性表进行插入或删除操作,所需的算法时间复杂度为( )。
①  O(n2)
②  O(nlog2n)
③  O(log2n)
④  O(n)
【单选题】 对具有n个元素的有序表采用折半查找,则算法的时间复杂度为( )。
①  O(n)
②  O(n的平方)
③  O(1)
④  O(log2(n))
【判断题】 设初始记录关键字基本有序,则快速排序算法的时间复杂度为O(nlog2n)。()
①  正确
②  错误
【单选题】 下列排序算法中时间复杂度不受数据初始状态影响,恒为O(n2)的是
①  堆排序
②  冒泡排序
③  直接选择排序
④  快速排序
【单选题】 在对n个元素进行堆排序的过程中,时间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【单选题】 把长度为m的单链表接在长度为n的单链表之后的算法的时间复杂度为
①  O(m)
②  O(n)
③  O(m+n)
④  O(1)
【单选题】 对n个元素进行直接插入排序时间复杂度为( )。
①  O(1)
②  O(n)
③  n+1
④  n/2
随机题目
【单选题】 19.Never____ realised that water is so precious
①  hadI
②  I
③  haveI
④  didI
【单选题】 15.—Have you finished your report ? ---No, I will finish it in _____20 minutes.
①  other
②  another
③  more
④  less
【单选题】 13.______, a form must be filled in first.
①  Toaskforthisjob
②  Inordertogethisjob
③  Makingrequestforthisjob
④  Ifyouwanttogetthisjob.
【单选题】 20.She looks forward every spring to ___the flower-lined garden.
①  payingavisit
②  visit
③  walking
④  walkingin
【单选题】 17.We`d rather stay at home than go to the cinema, _____?.
①  hadwe
②  hadn`twe
③  wouldn`twe
④  wouldwe
【单选题】 11._______the new policy, we`re now having a happy life.
①  Thanksto
②  Because
③  Becauseof
④  Thankfor
【单选题】 12._____is no possibility ____Bob will win the first prize in the match.
①  That;that
②  There;that
③  There;whether
④  It;whether
【单选题】 14.____in a mountain village, Zhang ming has now become a famous writer.
①  Beforeaschoolteacher
②  Onceaschoolteacher
③  Hewasaschoolteacher
④  Heworkedasaschoolteacher.
【单选题】 16.—What made more than 100 passengers die. --- ________the air crash in Russia.
①  Itwas
②  Therewas
③  Thatwas
④  Thiswas
【单选题】 18.What do you think it is ____made them realize the importance of mastering a second language?
①  what
②  who
③  which
④  that