using flowcharts for algorithmssites.millersville.edu/jwright/4 flowcharting 467.pdf · using...

11
Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile Robotics Millersville University

Upload: others

Post on 22-Jun-2020

17 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

UsingFlowchartsforAlgorithmsJohn R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAEITEC 467, Mobile RoboticsMillersville University

Page 2: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

Algorithms,Pseudocode&Code

• An Algorithm is your plan/idea (how to solve a problem)• May be expressed in many different ways

• Mathematical Expression• Pseudo Code (written text)

• Pseudocode is the written expression of the Algorithm• It is simply a description on how your program should work in plain

English or another language• Code – this is what you program (Syntax) to enact your algorithms• Other notes:

• Some people are great at code• Some are great at developing algorithms• Innovation really comes great algorithms!• Optimization comes from great code!

Page 3: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

Flowcharting• Flowcharts allow one to see a pictorial representation of the

process. • They make it easier to understand the process at hand!• MS Visio is a great tool for developing flowcharts as you can

easily drag and drop the symbols.

Page 4: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

FlowchartSymbols

http://www.gridgit.com/postpic/2011/12/meaning-flowchart-symbols-shape_8566.png

Page 5: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

VisioBasicFlowchartShapes

Page 6: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

MS Visio Basic Flowchart Example

http://www.sawyoo.com/postpic/2015/03/visio-flowchart-shapes_206705.png

Page 7: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

Smartdraw Flowchart Example

Page 8: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

Microsoft Word Process Flowchart Template Example

http://www.mywordtemplates.org/wp-content/uploads/2015/01/Process-Flow-Chart-Template.png

Page 9: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

FlowchartingResources• MS Visio 2016 Tutorial

• https://www.youtube.com/watch?v=b09dKHvu4-4

Page 10: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

CommonErrors• Arrows / Flow issues• Missing• Direction• Decision Symbols

• Incorrect Symbol usage• Documentation vs Process

• Think of documentation as a special type of process that has a special symbol

• Decision • Label them• Cleaner to use one line per joint

• Subprocess vs Process• Subprocess symbols will require another flowchart

• Continuation References• On or off page symbols

Page 11: Using Flowcharts for Algorithmssites.millersville.edu/jwright/4 Flowcharting 467.pdf · Using Flowcharts for Algorithms John R. Wright, Jr., PhD, CSTM, CLSSGB, F.ATMAE ITEC 467, Mobile

Oh,WhatisaFlowchart?• https://www.youtube.com/watch?v=2rZY8iX8Mdw