上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture09 SIMULATION AND DESIGN Real-world problem

上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Computational Thinking and Approach Lecture 9 Dr.Jialiang LU Jialiang.lu@situ.edu.cn
Computational Thinking and Approach Lecture 9 Dr. Jialiang LU Jialiang.lu@sjtu.edu.cn

上海充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Real-world problem SIMULATION AND DESIGN
SIMULATION AND DESIGN Real-world problem

上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Computer simulation o Simulation can solve real-world problems by modeling real-world processes to provide otherwise unobtainable information. Computer simulation is used to predict the weather,design aircraft,create special effects for movies,etc. 3
3 Computer simulation • Simulation can solve real-world problems by modeling real-world processes to provide otherwise unobtainable information. • Computer simulation is used to predict the weather, design aircraft, create special effects for movies, etc

上游通大¥ ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Software Development Process ·Analyze the problem Determine specifications ·Create a design ·Implement the design Test/Debug the program ·Maintain the program 4
Software Development Process • Analyze the problem • Determine specifications • Create a design • Implement the design • Test/Debug the program • Maintain the program 4

上游充通大学 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Example:Maze 7 Vaze 口回☒ ·How to represent the problem and the solutions Maze? -A path? Need of data structure Stack or Queue Reset Repair Next Import Export Auto Quit 5
Example: Maze • How to represent the problem and the solutions – Maze? – A path? • Need of data structure – Stack or Queue 5

上游充通大学 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY %4 Mining... 可☒ Example:Mining Click some grid please .. 1 1 1 ·Same questions 2 -Field 1 1 2 1 1 Mines 1 1 Flags 1 2 3 3 How to open a field 1 2 1 3 3 1 2 2 1 Set-F Clear 10 Quit U
Example: Mining • Same questions – Field – Mines – Flags – How to open a field 6

上游充通大粤 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Top-Down Design In top-down design,a complex problem is expressed as a solution in terms of smaller, simpler problems. These smaller problems are then solved by expressing them in terms of smaller,simpler problems. This continues until the problems are trivial to solve.The little pieces are then put back together as a solution to the original problem!
7 Top-Down Design • In top-down design, a complex problem is expressed as a solution in terms of smaller, simpler problems. • These smaller problems are then solved by expressing them in terms of smaller, simpler problems. • This continues until the problems are trivial to solve. The little pieces are then put back together as a solution to the original problem!

上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Top-Level Design Typically a program uses the input,process, output pattern. Is this design too high level?Whatever we don't know how to do,we'll ignore for now. Assume that all the components needed to implement the algorithm have been written already,and that your task is to finish this top- level algorithm using those components. 8
8 Top-Level Design • Typically a program uses the input, process, output pattern. • Is this design too high level? Whatever we don’t know how to do, we’ll ignore for now. • Assume that all the components needed to implement the algorithm have been written already, and that your task is to finish this toplevel algorithm using those components

上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Separation of Concerns At each level of design,the interface tells us which details of the lower level are important. The general process of determining the important characteristics of something and ignoring other details is called abstraction. The top-down design process is a systematic method for discovering useful abstractions. 9
9 Separation of Concerns • At each level of design, the interface tells us which details of the lower level are important. • The general process of determining the important characteristics of something and ignoring other details is called abstraction. • The top-down design process is a systematic method for discovering useful abstractions

上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Summary of the Design Process 1.Express the algorithm as a series of smaller problems. 2.Develop an interface for each of the small problems. 3.Detail the algorithm by expressing it in terms of its interfaces with the smaller problems. 4.Repeat the process for each smaller problem. 10
10 Summary of the Design Process 1. Express the algorithm as a series of smaller problems. 2. Develop an interface for each of the small problems. 3. Detail the algorithm by expressing it in terms of its interfaces with the smaller problems. 4. Repeat the process for each smaller problem
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture08 DATA COLLECTION Massive data representation and processing.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture07 OBJECT ORIENTED DEVELOPMENT Class and Object.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture06 OBJECTS AND GRAPHICS GUI.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture05 ITERATION Control Structure.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture04 MODULAR PROGRAMMING Functions.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture03 CONDITIONALS AND SEQUENCES Strings, lists and file objects.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture02.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture01.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资料_往年试卷.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资料_管程.docx
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)Java学习笔记(JAVA的面向对象编程——课堂笔记).doc
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)JAVA多线程编程详解(详细操作例子).doc
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)Java多线程编程.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)Java多线程应用实例(制作烟花效果).doc
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)Java Primer.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec5.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec4.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec3.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec2.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec1.ppt
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Lecture10 ALGORITHM DESIGN AND ANALYSIS To the Classic.pdf
- 上海交通大学:《Computational Thinking and Approach》教学资源(课件讲稿)Something You Should Know.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(学习资料)C++练习(题目).pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(学习资料)C++练习(答案).pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(学习资料)基于MFC的对话框程序.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(课件讲稿)总复习(共八讲).pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第1讲 C++语言概述及数据类型(何其昌).pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第2讲 C++程序的流程控制.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第3讲 函数与结构化程序设计.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第4讲 数组与结构.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第5讲 指针与引用.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第6讲 C++类(1/2).pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第7讲 C++类(2/2).pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲稿)第8讲 Windows应用程序设计.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(讲义)方波生成器项目报告书.doc
- 《中文信息学报》:中文组织机构名称与简称的识别.pdf
- 《计算机系统结构》课程教学资源(电子书籍)《Computer Organization and Design》THE HARDWARE / SOFTWARE INTERFACE(DAVID A. PATTERSON JOHN L. HENNESSY,Fourth Edtion,彩色版).pdf
- 《计算机系统结构》课程教学资源(电子书籍)《Computer Systems》A Programmer's Perspective(Randal E. Bryant、David R. O'Hallaron,THIRD EDITION).pdf
- 机械工业出版社:计算机科学丛书《计算机组成与设计:硬件、软件接口》电子教材(中文第4版).pdf
- 上海交通大学:《C程序与算法设计》课程教学资源(课件讲稿)Lecture 01 课程简介及编程基础(绳伟光).pdf