

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
17 questions
Permutations and Combinations
Presentation
•
9th - 12th Grade
17 questions
L'imparfait, parfait !
Presentation
•
KG
17 questions
APCS Principles Unit 4 Review
Presentation
•
10th - 12th Grade
17 questions
Previsión del impacto ambiental
Presentation
•
10th Grade
19 questions
Resume Writing
Presentation
•
9th - 12th Grade
20 questions
2.1 Computer Systems
Presentation
•
9th - 12th Grade
20 questions
História da Computação
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Computers
50 questions
STAAR English 2 Review
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
31 questions
Easter Trivia
Quiz
•
KG - 12th Grade
16 questions
Circles - Equations, Central & Inscribed Angles
Quiz
•
9th - 12th Grade
46 questions
Unit 4 Geosphere Test Review
Quiz
•
9th - 12th Grade
10 questions
Calculating Surface Area of a Triangular Prism
Interactive video
•
6th - 10th Grade
20 questions
Central Angles and Arc Measures 2
Quiz
•
10th Grade