KEMBAR78
Algorithm and Programming (Introduction of Algorithms) | PDF
Adam Mukharil Bachtiar
English Class
Informatics Engineering 2011
Algorithms and Programming
Introduction of Algorithms
Steps of the Day
Let’s Start
Rules Of
Lecture Syllabus
Introduction
of Algorithms
Rules of Lecture
Description of Subject, Rules, References and Value
• Name of subject : Algorithm and and Programming
• Prerequisite : none
• Lecturer : Adam Mukharil Bachtiar
• SKS : 4 SKS (Divide into 2 Teoritics and 2 Practises)
Description of Subject
Rules
Don’t be late to come in my classroom
Rules
Presence must be above 80%
Rules
Do all components of value
Rules
Don’t be CHEATING!!!
ComponentsofValue
• Presence : 10%
• Homework : 20%
• Middle Test : 30 %
• Final Test : 40%
References
• Rinaldi Munir, Algoritma &
Pemrograman
• Inggriani Liem, Diktat Algoritma dan
Pemrograman
Syllabus
Before and After Middle Test
SyllabusofSubject
• Introduction of Algorithms
• Introduction of Dev Pascal, Data Type, value,
and naming
• Sequential Structure
• Branching Structure
• Looping and Structure
• Procedure and Function
• Middle Test
SyllabusofSubject
• One Dimension Array
• Two Dimension Array
• Record
• Array of Record
• Searching
• Sorting
• Final Test
Introduction Of Algorithms
Definition and Example
Why We Must Study Algorithm?
What is the Definition of Problem?
Question or set of works that
must be done with human.
Algorithm and
Programming can
solve the problems
Some Terms in Programming
• Program is implementation of ALGORITHM that
was made from one programming language.
• Programming language is notation that was used
in ALGORITHM NOTATION to communicate with
computers.
• Programmers are people who made the
programs with ONE OR MANY programming
languages.
Types of Programming Languages
• High Level
• Middle Level
• Low Level
Build the Program
• Problem Definition
• Requirements Analysis
• Build the algorithms
• Coding
• Testing and Debugging
• Maintenance
• Documentation
What is Algorithm?
Sequence of steps to solve
the problems.
Presentation of Algorithm
DESCRIPTIVE ANALYSIS
FLOW CHART
PSEUDO CODE
Example of Descriptive Analysis
How to Make Scramble Egg:
• Pour oil into skillet.
• Heat oil.
• Break the eggs and pour into the hot oil.
• Fry it
• Serve on a plate
Example of Flow Chart
SYMBOL ACTIVITY
INPUT/OUTPUT
PROCESSING
DECISION
PROCEDURE/SUBROUTINE
Example of Flow Chart
SYMBOL ACTIVITY
FLOW LINES
START/TERMINATOR
ON PAGE CONNECTOR
OFF PAGE REFERENCE
Example of Flow Chart
Example of Pseudo Code
1
2
3
4
5
6
7
8
9
10
11
Algoritma Tambah_Nilai
{I.S.: Nilai kesatu dan kedua diinisialisasi}
{F.S.: Menghitung penambahan nilai kesatu dan kedua}
Deklarasi: {atau Kamus:}
a,b,c:integer
Algoritma:
a1
b2
ca+b
Ilustration of Exchange Value with Variable
A B A B
Ilustration of Exchange Value with Variable
A C
A
C
B
A
B A
Ilustration of Exchange Value with Variable
C
B
C
BA
EXERCISE
Exercise 1
Turn the process of exchange value with variable
into:
• Descriptive Analysis
• Flow Chart
• Pseudo Code
Exercise 2
Make algoritm for exchange value without variable
(this case only suitable for integer) in:
• Descriptive Analysis
• Flow Chart
• Pseudo Code
Exercise 3
Make algoritm for basic arithmetic operation (add,
substract, multiply, and divide) in:
• Descriptive Analysis
• Flow Chart
• Pseudo Code
Contact Person:
Adam Mukharil Bachtiar
Informatics Engineering UNIKOM
Jalan Dipati Ukur Nomor. 112-114 Bandung 40132
Email: adfbipotter@gmail.com
Blog: http://adfbipotter.wordpress.com
Copyright © Adam Mukharil Bachtiar 2011

Algorithm and Programming (Introduction of Algorithms)