Docsity

Flow chart with examples, Summaries of Data Mining

Partial preview of the text

Download Flow chart with examples and more Summaries Data Mining in PDF only on Docsity!

Flow Charts

What are they good for?

Purpose of Flow Charts

  • (^) Visually show flow of data/process steps

within a system

  • (^) Flow Charts Will
    • (^) Define the problem
    • (^) Show sequence of steps to solve problem
    • (^) Show alternatives if problem is not solved

during the process

  • (^) Usually created at beginning stages of a project
  • (^) Used to facilitate communications between engineers and clients

Rules

  • (^) Use Standard Symbols to show various types of
    • Decisions
    • (^) Processes
    • (^) Alternative paths (if statements/loops)
    • (^) Input/Output
  • (^) Basic Geometric Symbols
    • (^) Start/End : Slots/Lozenges
    • (^) Flow: Lines w/ Arrow End Markers
    • (^) Processes: Rectangles
    • (^) Input/Output: Parallelgram
    • (^) Conditional/Decision: Rhombus

Terminal: Used to indicates the start and end of a flowchart. Single flow line. Only one “Start” and “Stop” terminal for each program. The end terminal for function/subroutine must use “Return” instead of “Stop”. Process: Used whenever data is being manipulated. One flow line enters and one flow line exits. Input/Output: Used whenever data is entered (input) or displayed (output). One flow line enters and one flow line exits.

Flowchart Symbols

Flow Chart Guidelines

  • (^) In drawing a proper flow chart, all necessary requirements should be listed out in logical order.
  • The flowchart should be clear, neat and easy to follow. There should not be any room for ambiguity in understanding the flow chart.
  • The usual direction of the flow of a procedure or system is from left to right or top to bottom.
  • (^) Only one flow line should come out from a process symbol.
  • (^) Only one flow line should enter a decision symbol, but two or three flow lines, one for each possible answer, should leave the decision symbol.
  • (^) Only one flow line is used in conjunction with terminal symbol.
  • Write within standard flow chart symbols briefly. As necessary, you can use the annotation symbol to describe data or computational steps more clearly.
  • (^) If the flowchart becomes complex, it is better to use connector symbols to reduce the number of flow lines. Avoid the intersection of flow lines if you want to make it more effective and better way of communication.
  • Ensure that the flowchart has a logical start and finish.
  • (^) It is useful to test the validity of the flowchart by passing through it with a simple test data.

Basic Flow Charts

Linear Flow Chart Decision Statements

  • (^) Yes/No
  • (^) # Times through a loop
  • (^) Variable = specific value Connecting flow between sheets

Making an Effective Flow Chart

  • (^) Define the process boundaries with starting and ending points.
  • Complete the big picture before filling in the details.
  • Clearly define each step in the process. Be accurate and honest.
  • (^) Identify time lags and non-value-adding steps.
  • Circulate the flowchart to other people involved in the process to get their comments.
  • (^) Flowcharts don't work if they're not accurate or if the team is too far removed from the process itself. Team members should be true participants in the process and feel free to describe what really happens. A thorough flowchart should provide a clear view of how a process works. With a completed flowchart, you can:
  • Identify time lags and non-value-adding steps.
  • (^) Identify responsibility for each step.
  • (^) Brainstorm for problems in the process.
  • (^) Determine major and minor inputs into the process with a cause & effect diagram.
  • Choose the most likely trouble spots with the consensus builder.

Flow Chart: Student Assignment

Submission

F unction Page 1 Page 2 End terminal must be a “Return” Start terminal for a Function is different. Do not use “Start” The detail of how the function works is put in another flowchart. This is known as Function-Definition At this point, we only focus on what to do. How to do it, it comes later. This part is known as Function-Call Body of a function is the same with normal flowchart This flowchart calculates the average of three numbers AVRG (result, n1, n2,n3) Start Stop Read n1, n2 , n Print result AVRG ( result,n1, n2,n3) Return sum = n1+ n2+n result = sum/

Connectors on the same page 1- connection on the same flowchart portion 2- connection on the different flowchart portion Start 2 1 (^1 ) Stop

Example: Input: Length <- 5 Width <- 3 Process: Area = 5 * 3 = 15 Process: Perimeter = 2* (5+3) = 16 Output Area: 15 Perimeter: 16 Start Stop Read Length, Width Print Area, Perimeter Calculate Area Area=Length * Width Calculate Perimeter Perimeter= 2 * (Width+Length)

Binary Selection In pseudocode , binary selection is expressed in the following ways:

  1. IF condition THEN process 1 ENDIF
  2. IF condition THEN process 1 ELSE process 2 ENDIF Binary Selection In flowcharts , binary selection is expressed in the following ways: Selection is used in a computer program or algorithm to determine which particular step or set of step s is to be executed

Repetition Repetition allows for a portion of an algorithm or computer program to be done any number of times dependent on some condition being met. An occurrence of repetition is usually known as a loop. An essential feature of repetition is that each loop has a termination condition to stop the repetition, or the obvious outcome is that the loop never completes execution ( an infinite loop ). The termination condition can be checked or tested

  1. at the beginning and is known as a pre-test loop or
  2. at the end of the loop and is known as a post-test loop.

Repetition

Pre-test (structure)

Repetition: Pre-Test A pre-tested loop is so named because the condition has to be met at the very beginning of the loop or the body of the loop is not executed. This construct is often called a guarded loop. The body of the loop is executed repeatedly while the termination condition is true.

Repetition

In pseudocode , pre-test repetition is expressed as: WHILE condition is true process(es) ENDWHILE Repetition In flowcharting pre-test repetition is expressed as: