

Data Structure & Algorithm
Presentation
•
Computers, Other
•
10th - 11th Grade
•
Practice Problem
•
Easy
JJSOFT GLOBAL
Used 2+ times
FREE Resource
23 Slides • 1 Question
1
Data Structure & Algorithm
∼ B.Eng (HONS) Jafran Jemal
(CEO & FOUNDER of JJSOFT)

2
Programming
Problem solving phase
Implementation phase
3
Problem solving phase
produce an ordered sequence of steps that describe solution of problem
this sequence of steps is called an algorithm
4
STEPS IN PROBLEM SOLVING
First produce a general algorithm (one can use pseudo code)
Refine the algorithm successively to get step by step detailed algorithm that is very close to a computer language
5
Pseudo code
Pseudo code is an artificial and informal language that helps programmers develop algorithms. Pseudo code is very similar to everyday English.
6
Example 1
Write an algorithm to determine a student’s final grade and indicate whether it is passing or failing. The final grade is calculated as the average of four marks.
7
Pseudo code
Input a set of 4 marks
Calculate their average by summing and dividing by 4
if average is below 50 Print “FAIL” else Print “PASS”
8
Detailed Algorithm
Step 1: Input M1,M2,M3,M4
Step 2: GRADE (M1+M2+M3+M4)/4
Step 3: if (GRADE < 50) then Print “FAIL” else Print “PASS” endif
9
THE FLOWCHART
(Dictionary) A schematic representation of a sequence of operations, as in a manufacturing process or computer program.
(Technical) A graphical representation of the sequence of operations in an information system or program. Information system flowcharts show how data flows from source documents through the computer to final distribution to users. Program flowcharts show the sequence of instructions in a single program or subroutine. Different symbols are used to draw each type of flowchart.
10
A Flowchart
shows logic of an algorithm
emphasizes individual steps and their interconnections
e.g. control flow from one action to the next
11
12
Exercise 1
Write an algorithm and draw a flowchart that will read the two sides of a rectangle and calculate its area.
Pseudocode
Input the width (W) and Length (L) of a rectangle Calculate the area (A) by multiplying L with W
Print A
13
Algorithm
Step 1: Input W,L
Step 2: A L x W
Step 3: Print A
14
DECISION STRUCTURES ( IF-THEN-ELSE )
The expression A>B is a logical expression
it describes a condition we want to test
if A>B is true (if A is greater than B) we take the action on left
print the value of A
15
16
17
18
19
20
21
Implementation phase
implement the program in some programming language
22
Implementation (Live Coding)
Bonouse -> Convert Algorithm to ≻ Working Program/App
23
Open Ended
Today what do you learned ?
24
Thank You
Data Structure & Algorithm
∼ B.Eng (HONS) Jafran Jemal
(CEO & FOUNDER of JJSOFT)

Show answer
Auto Play
Slide 1 / 24
SLIDE
Similar Resources on Wayground
19 questions
Parts of the motherboard
Presentation
•
10th Grade
21 questions
Chapter 3: Managing Stress
Presentation
•
9th - 12th Grade
21 questions
Cover Letters and Resumes
Presentation
•
9th - 12th Grade
18 questions
Public Speaking
Presentation
•
9th - 12th Grade
17 questions
Alcohol
Presentation
•
10th Grade
21 questions
Video Production
Presentation
•
11th Grade
19 questions
R081 - Naming Conventions
Presentation
•
10th Grade
19 questions
Ohms law
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Assessment 1
Quiz
•
3rd Grade
15 questions
HCS SCI 05 Summer School Assessment 1 Review
Quiz
•
5th Grade
22 questions
Day 9 Equations and Inequalities Review
Quiz
•
9th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
7 questions
PYRAMID PERSPECTIVES part 1
Presentation
•
9th - 12th Grade
12 questions
Understanding the Fourth of July
Quiz
•
9th Grade
15 questions
Soccer World Cup Quiz Questions
Quiz
•
7th Grade