网站大量收购独家精品文档,联系QQ:2885784924

数据结构专科辅导八(Data structure tutorial eight).doc

数据结构专科辅导八(Data structure tutorial eight).doc

  1. 1、本文档共21页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数据结构专科辅导八(Data structure tutorial eight) Never sigh for the years that have gone, but must face the time that slips away. - Bly Hitt Data structure tutorial eight Sort of coaching exercises and answers (1) individual choice questions 1. if the n elements are directly inserted into the sorting, the number of elements in the ordered table is () before the I sort procedure is performed. A, N, B, n+1, C, n-1, D, 1 2. if the n elements are direct insertion sort, in the I Times Ranking, in order to find the most need to insert position (time) between elements, zeroth elements are assumed unknown key. A, N, B, n-1, C, n+1, D, 1 3. if the N element is directly inserted and sorted, in the case of sorting I, assuming that the insertion position of the element r[i+1] is r[j], the number of times the element is moved is (). A, J-I, B, i-j-1, C, I-J, D, i-j+1 4. if the N element is directly inserted and sorted, then the time complexity required to locate the insertion location is (). A, O (1), B, O (n), C, O (N2), D, O (log2n) 5. in the process of direct insertion of n elements, you need to go through (). A, N, B, n+1, C, n-1, D, 2n 6. direct insertion of n elements with a sorting time complexity of. A, O (1), B, O (n), C, O (N2), D, O (log2n) 7. in the process of bubble sorting of n elements, the first sort of sorting requires at most () the exchange between adjacent elements. A, N, B, n-1, C, n+1, D, n/2 8., in the process of bubbling n elements, the best time complexity is (). A, O (1), B, O (log2n), C, O (N2), D, O (n) 9. in the process of bubbling n elements, you need at least () to complete. A 1, B, N, C, n-1, D, n/2 In 10. of the n elements in the process of quick sort, if every time has been divided into the left, the number of elements in the two subintervals right of equal or only one, interval number with two or two elements of the sorting process is roughly (for). A, N, B, n/2, C, log2n, D, 2n 11. in the quick sorting of n elements, the first division requires the mo

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档