- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
pseudocode伪代码-天津大学计算机科学与技术学院
8.1 CONCEPT INFORMAL DEFINITION Algorithm(算法): a step-by-step method for solving a problem or doing a task.(逐步解决问题或完成任务的方法) In this definition, an algorithm is independent of the computer system(独立于计算机系统). More specifically, we should also note that the algorithm accepts a list of input data and creates a list of output data.(输入一组数据,产生一组输出数据) Input The algorithm accepts the list of five integer as input. Processing The algorithm uses five steps to find the largest integer. Output Because there are no more integers to be processed, the algorithm outputs the value of Largest, which is 13. DEFINING ACTIONS REFINEMENT GENERALIZATION 8.2 THREE CONSTRUCTS 8.3 ALGORITHM REPRESENTATION FLOWCHART(流程图) A flowchart is a pictorial representation of an algorithm. It shows how the algorithm flows from beginning to end. PSEUDOCODE(伪代码) Pseudocode is an Englishlike representation of an algorithm. It is part English and part structured code.(类似英语的表示方法) 8.4 MORE FORMAL DEFINITION Algorithm: an ordered set of unambiguous steps that produces a result and terminates in a finite time(一组明确步骤的有序集合,它产生结果并在有限时间内终止). ORDERED SET(有序集合) An algorithm must be a well-defined, ordered set of instruction. UNAMBIGUOUS STEPS (明确步骤) Each algorithm must be clearly and unambiguously defined. PRODUCE A RESULT (产生结果) An algorithm must produce a result; otherwise, it is useless. The result can be data that are returned to the calling algorithm or same other effect (e.g., printing). TERMINATE IN A FINITE TIME(在有限时间内终止)An algorithm must terminate (halt). If it does not (e.g., has an infinite loop), you have not created an algorithm. 8.5 SUBALGORITHMS(子算法) The principles of structured programming, require that an algorithm be broken into small units called subalgorithms (the terms subprograms, subroutines, procedures, function, methods, and modules are also used). Each subalgorithm is in turn divided into smaller subalgorit
您可能关注的文档
- 2016年物流招标书-君乐宝.doc
- 2016年增列硕士专业学位授权点申请表-武汉科技大学研究生院.pdf
- 2016年11期-中国国际货运代理协会.pdf
- 2017教育部人文社会科学研究一般项目申报常见问题释疑.doc
- 2017年单独招生计划-辽宁现代服务职业技术学院.pdf
- 2017年下半年区金融发展专项资金-黄埔区.doc
- 2017年新州中文教师联合会复活节蓝山聚会-sinofield.pdf
- 2017中华中医药学会科技成果.doc
- 2018河北社会科学发展研究-河北委党校.doc
- 2018-1260603第十三节地球的形状和大小.ppt
- 中国国家标准 GB/T 31270.16-2025化学农药环境安全评价试验准则 第16部分:土壤微生物毒性试验.pdf
- 中国国家标准 GB/T 31270.17-2025化学农药环境安全评价试验准则 第17部分:天敌赤眼蜂急性毒性试验.pdf
- GB/T 31270.17-2025化学农药环境安全评价试验准则 第17部分:天敌赤眼蜂急性毒性试验.pdf
- 《GB/T 31270.17-2025化学农药环境安全评价试验准则 第17部分:天敌赤眼蜂急性毒性试验》.pdf
- GB/T 31270.15-2025化学农药环境安全评价试验准则 第15部分:蚯蚓急性毒性试验.pdf
- 一级建造师《民航机场实务》河北省张家口市下花园区2026年高分冲刺试卷含解析.doc
- 2026年河南省信阳市商城县一级建造师《市政工程》高分冲刺试卷含解析.doc
- 一级建造师《矿业工程管理与实务》浙江省绍兴市上虞市2026年押题密卷含解析.doc
- 机动车转让简单版的协议书范本.docx
- 有关和解简单版协议书范本.docx
最近下载
- 党建文化墙制作安装合同协议书范本[共3页].docx VIP
- WHODASII精神残疾评定量表完整.pdf VIP
- 企业工会助推企业高质量发展.docx VIP
- 2024辽宁沈阳市和平区面向退役士兵定向招录社区工作者32人笔试备考题库及答案解析.docx VIP
- AMS 2750H -2024 高温测量(中文版).docx VIP
- 二年级心理健康主题班会 做勇敢的自己(课件)(共23张PPT).pptx VIP
- 2025信息化项目验收工作规范.docx VIP
- 铁路外部环境安全隐患排查整治指导手册(3).docx
- 四年级上册语文期末全册重点知识点高频考点汇总.pdf VIP
- 基于Sap2000的双格混凝土矩形水池壁板受力分析.pdf VIP
原创力文档


文档评论(0)