|
|||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
A flowchart is common type of chart, that represents an algorithm or process, showing the steps as boxes of various kinds, and their order by connecting these with arrows. Flowcharts are used in designing or documenting a process or program in various fields.1
OverviewThe two most common types of boxes in a flowchart are:
There are many different types of flowchart, and each type has its own repertoire of boxes and notational conventions. A flowchart is described as "cross-functional" when the page is divided into different swimlanes describing the control of different organizational units. A symbol appearing in a particular "lane" is within the control of that organizational unit. This technique allows the author to locate the responsibility for performing an action or making a decision correctly, showing the responsibility of each organizational unit for different parts of a single process. Flowcharts are used in designing and documenting complex processes. Like other types of diagram, they help visualize what is going on and thereby help the viewer to understand a process, and perhaps also find flaws, bottlenecks, and other less-obvious features within it. Flowcharts depict certain aspects of processes and they are usually complemented by other types of diagram. For instance, Kaoru Ishikawa defined the flowchart as one of the seven basic tools of quality control, next to the histogram, Pareto chart, check sheet, control chart, cause-and-effect diagram, and the scatter diagram2. Similarly, in UML, a standard concept-modeling notation used in software development, the activity diagram, which is a type of flowchart, is just one of many different diagram types. Nassi-Shneiderman diagrams are an alternative notation for process flow. HistoryThe first structured method for documenting process flow, the "flow process chart", was introduced by Frank Gilbreth to members of ASME in 1921 as the presentation “Process Charts—First Steps in Finding the One Best Way”. Gilbreth's tools quickly found their way into industrial engineering curricula. In the early 1930s, an industrial engineer, Allan H. Mogensen began training business people in the use of some of the tools of industrial engineering at his Work Simplification Conferences in Lake Placid, New York. A 1944 graduate of Mogensen's class, Art Spinanger, took the tools back to Procter and Gamble where he developed their Deliberate Methods Change Program. Another 1944 graduate, Ben S. Graham, Director of Formcraft Engineering at Standard Register Corporation, adapted the flow process chart to information processing with his development of the multi-flow process chart to displays multiple documents and their relationships. In 1947, ASME adopted a symbol set derived from Gilbreth's original work as the ASME Standard for Process Charts. According to Herman Goldstine, he developed flowcharts with John von Neumann at Princeton University in late 1946 and early 1947.3 Flowcharts used to be a popular means for describing computer algorithms. They are still used for this purpose; modern techniques such as UML activity diagrams can be considered to be extensions of the flowchart. However, their popularity decreased when, in the 1970s, interactive computer terminals and third-generation programming languages became the common tools of the trade, since algorithms can be expressed much more concisely and readably as source code in such a language. Often, pseudo-code is used, which uses the common idioms of such languages without strictly adhering to the details of a particular one. Flow chart building blocksSymbolsA typical flowchart from older Computer Science textbooks may have the following kinds of symbols:
A number of other symbols that have less universal currency, such as:
Flowcharts may contain other symbols, such as connectors, usually represented as circles, to represent converging paths in the flow chart. Circles will have more than one arrow coming into them but only one going out. Some flow charts may just have an arrow point to another arrow instead. These are useful to represent an iterative process (what in Computer Science is called a loop). A loop may, for example, consist of a connector where control first enters, processing steps, a conditional with one arrow exiting the loop, and one going back to the connector. Off-page connectors are often used to signify a connection to a (part of another) process held on another sheet or screen. It is important to remember to keep these connections logical in order. All processes should flow from top to bottom and left to right. ExamplesA flowchart for computing factorial N (N!) Where N! = 1 * 2 * 3 *...* N. This flowchart represents a "loop and a half" — a situation discussed in introductory programming textbooks that requires either a duplication of a component (to be both inside and outside the loop) or the component to be put inside a branch in the loop. SoftwareManualAny vector-based drawing program can be used to create flowchart diagrams, but these will have no underlying data model to share data with databases or other programs such as project management systems or spreadsheets. Some tools offer special support for flowchart drawing, e.g., OpenOffice.org Draw, ConceptDraw, SmartDraw, EDraw Flowchart, Visio, Dia, and OmniGraffle. AutomaticMany software packages exist that can create flowcharts automatically, either directly from source code, or from a flowchart description language: For example, Graph::Easy, a Perl package, takes a textual description of the graph, and uses the description to generate various output formats including HTML, ASCII or SVG. The example graph listed below was generated from the script shown below. The automatically generated SVG output is shown on the right: use Graph::Easy; my $graph = Graph::Easy->new( " graph { flow: south; } node.start { shape: rounded; fill: #ff8a8a; } node.question { shape: diamond; fill: #ffff8a; } node.action { shape: rounded; fill: #8bef91; } [ Lamp doesn't work ] { class: start } --> [ Lamp\\n plugged in? ] { class: question; } -- No --> [ Plug in lamp ] { class: action; } [ Lamp\\n plugged in? ] --> [ Bulb\\n burned out? ] { class: question; } -- Yes --> [ Replace bulb ] { class: action; } [ Bulb\\n burned out? ] -- No --> [ Buy new lamp ] { class: action; } " ); # Switch to file stream open MYFILE, ">myChart.svg"; select MYFILE; # Save in SVG Format # Requires Graph::Easy::As_svg to be installed print $graph->as_svg_file( ); See also
References
Further reading
External linksWikimedia Commons has media related to:
|
| All Right Reserved © 2007, Designed by Stylish Blog. |