Data structure(SSD5) Review Chapter1 Introduction Concepts about data structure Review of C++ Algorithm Performance and analysis of algorithm 1.( )For the following program fragment the running time(Big-Oh) is . i = 0; s = 0; while(s ( 5*n*n + 2)) { i++; s = s + i;} a. O(n) b. O(n2) c. O(n1/2) d. O(n3) 2. For the following program fragment the running time(Big-Oh) is . for ( int i = 0; i n; i++ ) for ( int j = 0; j i; j++) s; //s为某种基本操作 O(n) b. O(n2) c. O(n1/2) d. O(n3) 3. Which is non-linear data structure_____. A queue B stack C tree D sequence list Chapter 2 Array ADT of Array Sequential access, address computing of elements in the array Sequence List Operation of sequence list: Access, insert, delete, find, successor and predecessor. Time complexity of these operations. ADT of Polynomial Representation of polynomial and Addition Special Array and Sparse Array: storage and compression STL vector, deque,list and string 1. We store a 4×4 symmetric matrix A into an array B (index start from 0)with row major order Store the lower triangle only, the index of element a[2][3] in B is . 2. ( )The worst-time for removing an element from a sequence list (Big-Oh) is . a. O(1) b. O(n) c. O(n2) d. O(n3) 3. We can use 3 vector type to store value and of non-zero elements in a sparse matrix. Chapter 3 Linked Lists ADT of linked lists Insertion and deletion of single linked list ( header, tail) Static linked list, Circularly Linked Lists, Doubly Linked Lists. Linked list Implementation of Polynomial and Sparse Matrix 1. Which of the following is true ① we can random access an element in array. ② we can random access an element in linked list. ③we cant random access both in array and linked list. ④all above is
您可能关注的文档
- 安徽工程大学 微型单片计算机和接口技术 第二章.ppt
- 0905020安志强开题报告.doc
- 20121011-张祥云-阅读教学和高考检测面面观.ppt
- 20121101普通水文气象学期中试卷.doc
- 20130317高二物理电路分析和闭合电路欧姆定律(张老师).ppt
- 20131202-中级职业技能鉴定实作考核002--导线测量.doc
- 777777777讲课用的《高考语文论述类文本阅读》1.ppt
- 1110011001塘沽一中为陕西儿童捐书名.doc
- 080502050120-方竹林-文献综述.doc
- -120老泵房自动化改造.doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- ISO9001-2026质量管理体系标准版中英文及变化点解析.pdf VIP
- HGT 21629-1999 管架标准图(四).docx VIP
- 广州市民办学校申办审批表.doc VIP
- 无人机测绘技术与应用课件21--无人机驾驶员职业规划.ppt
- 2025年袋鼠数学LevelB试卷及答案.pdf VIP
- 《重症凝血病标准化评估中国专家共识(2025)》解读PPT课件.pptx VIP
- 《动物防疫法》培训解读课件.pptx VIP
- 无人机测绘技术与应用课件20--无人机飞行原理.ppt
- 先进控制技术及其应用.docx VIP
- 2025-2026学年济南版(2024)初中生物八年级上册《血液是物质运输的载体》教学设计.docx
原创力文档

文档评论(0)