0% found this document useful (0 votes)
10 views

Big Data Algoritm PowerPoint Templates

This document discusses algorithms, flowcharts, and pseudocode. It defines an algorithm as a set of instructions to achieve an outcome. An algorithm contains inputs, processes, variables, and loops. It also discusses the key aspects of a successful algorithm: accuracy, consistency, and efficiency. The document then explains what components are typically included in a flowchart to visually represent an algorithm. Finally, it provides an example of pseudocode, which is a language used to display algorithms.

Uploaded by

Muhammad Afrizal
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Big Data Algoritm PowerPoint Templates

This document discusses algorithms, flowcharts, and pseudocode. It defines an algorithm as a set of instructions to achieve an outcome. An algorithm contains inputs, processes, variables, and loops. It also discusses the key aspects of a successful algorithm: accuracy, consistency, and efficiency. The document then explains what components are typically included in a flowchart to visually represent an algorithm. Finally, it provides an example of pseudocode, which is a language used to display algorithms.

Uploaded by

Muhammad Afrizal
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 15

Algorithm & Flowchart (Pseudocode)

Muhamad Afrizal
https://afrizalaje.000webhostapp.com/
ALGORITHM
a set of instructions or steps to be followed to achieve a certain outcome
The Algorithm will contain:

01 03
Input Process
an action performed to some data to make
putting data into an algorithm a change

02
Output

04
Variable
Displaying data from an algorithm to the
user a space in the memory of a
computer, that has an identifier,
where you can store data. This data
can be changed

05
Loop
code that is repeated
3 points for successful algorithm

01 02
Accuracy Consistency
it must lead to the expected outcome (e.g. it must produce the same result each time it
create a route from Beijing to Shanghai). is run.

03
Efficiency
it must solve the problem in the shortest possible time, using as few computer resources as possible. In this
example, the mapping software is replacing a manual method. If it were no faster than looking in an atlas, then it
would not be an improvement on the older method. Later in the unit there is a section on algorithms that are
used to sort and search data. Some of these algorithms are more efficient than others and will sort the data far
more quickly.
What will algorithm contains :

A Input, Enter, Process, Variable, and Loop C Input, Output, Process, Variable, and Loop

B Enter, Output, Process, Variable, and Display D Input, Output, Process, Predict, and Loop
a set of symbols put together with commands that are followed to solve a problem
Special symbols in a flowchart
Indicates the start or end of an Indicates a decision to be made
algorithm

Indicates a process to be carried out Indicates an input or output

Shows the logical flow of the algorithm


Example of Flowchart
Exercise 2.1
Create an algorithm that will ask a user
to input the length and width of a
rectangle and will then calculate the
area.
Exercise 2.2
The flowchart beside displays a partly
completed algorithm for a game that
 If all three are equal, then the simulates the throwing of three dice to find
the player’s score.
score is the total of the dice. 

 If two are equal the score is equal


to the sum of the two equal dice
minus the third.
 If none are equal, then the score
is zero.
PSEUDOCODE
a language that is used to display an algorithm
Example of Pseudocode
RECEIVE testScore FROM KEYBOARD
IF testScore >= 80 THEN
SEND ‘A’ TO DISPLAY
ELSE
IF testScore >= 70 THEN
SEND ‘B’ TO DISPLAY
ELSE
IF testScore >= 60 THEN
SEND ‘C’ TO DISPLAY
ELSE
IF testScore > 0 THEN
SEND ‘D’ TO DISPLAY
ELSE
SEND ‘FAIL’ TO DISPLAY
END IF
END IF
END IF
END IF
THANK YOU

You might also like