- 25
- 0
- 约1.02万字
- 约 43页
- 2018-04-30 发布于河南
- 举报
人事请假系统
Advance Data StructureReview of Chapter 1 張啟中 Chapter 1 Basic Concepts 1.1 Overview: System Life Cycle 1.2 Algorithm Specification 1.3 Data Abstraction (Chapter 2) 1.4 Performance Analysis and Measurement System Life Cycle Example Algorithm Specification 演算法是由一序列的指令所組成。依序執行這些指令可以解決給定的問題。演算法具有下列五大條件: 輸入(Input) 外界可提供零個或多個輸入資料。 輸出(Output) 必須最少有一個輸出的結果。 明確性(Definiteness) 每一個指令的功能都必須明確而不混淆。 有限性(Finiteness) 對任意的輸入資料,演算法必須在有限的時間內執行完成。 有效性(Effectiveness) 每一個指令必須非常基本:僅用紙筆即可完成。 Algorithm Describing Natural language English, Chinese Instructions must be definite and effectiveness Graphic representation Flowchart work well only if the algorithm is small and simple Pseudo language Readable Instructions must be definite and effectiveness Combining English and C In this text Example Example Performance Analysis and Measurement Criteria Is it correct? Is it readable? … Performance Analysis (machine independent) Space complexity: storage requirement Time complexity: computing time Performance Measurement (machine dependent) Performance Analysis: Space complexity S(P)=C+SP(I) Fixed Space Requirements (C)Independent of the characteristics of the inputs and outputs instruction space space for simple variables, fixed-size structured variable, constants Variable Space Requirements (SP(I))depend on the instance characteristic I number, size, values of inputs and outputs associated with I recursive stack space, formal parameters, local variables, return address Example Example *Program 1.11: Recursive function for summing a list of numbers (p.20) float rsum(float list[ ], int n) {if (n) return rsum(list, n-1) + list[n-1];return 0; } Performance Analysis: Time Complexity? Compile time (C)independent of instance characteristics run (execution) time TP Running Time(執行時間) Program Step Definition The running time of an algorithm on a particular input is the number of primitive operations or “step” executed. It is convenient to define the notion of step so that it is machine-i
您可能关注的文档
- 1964年论文目录.doc
- 2008年全国化学竞赛(第十八届天原杯)复赛试题.doc
- 9月月考优秀作文赏析.doc
- 2010经典诵读大赛暨.doc
- 中国现代文学名著精读教学大纲.doc
- 下列划线的虚词使用不恰当的一项是().doc
- 中科院研究生院远程与继续教育学院行业教育部.doc
- 余映潮教学答问录(一).doc
- 从一模看中考选择题题型及答题技巧.doc
- 基业长青项目管理俱乐部.doc
- 全过程工程管理造价咨询工程监理项目服务方案投标方案(技术部分).doc
- 招标代理服务投标技术服务方案(技术方案).doc
- AI大模型与AIGC技术在公安领域的应用解决方案(99页 PPT).pptx
- 工业4.0智能制造数字工厂规划方案.pptx
- 树立社会主义核心价值观.docx
- 三年(2023-2025)中考历史真题分类汇编(全国)专题21 科技文化与社会生活(解析版).docx
- 2025年中考道德与法治真题完全解读(吉林卷).pdf
- 2025年中考道德与法治真题完全解读(安徽卷).pdf
- 三年(2023-2025)中考历史真题分类汇编(全国)专题14 人民解放战争(解析版).pdf
- 三年(2023-2025)广东中考历史真题分类汇编:专题03 中国近代史(八年级上册)(解析版).docx
原创力文档

文档评论(0)