Introduction to Algorithm, Pseudocode, and Flowchart

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Definition of Algorithm

>set of step-by-step instructions to accomplish a task.

>originally referred to any computation performed via a set ofrules applied to numbers written in decimal form.

>Word is derived from the phonetic pronunciation of the last name of

Abu Ja'far Mohammed ibn Musa al- Khowarizmi, who was an Arabic mathematician who invented a set of rules for performing the four basic arithmetic operations

>procedure is a finite sequence of well-defined instructions, each of which can be mechanically carried out in a finite amount of time

2
New cards

Steps in making good algorithm

>Inputs and outputs should be defined precisely.

>Each steps in algorithm should be clear andunambiguous.>Algorithm should be most effective among manydifferent ways to solve a problem.>An algorithm shouldn't have computer code. Instead,the algorithm should be written in such a way that,it can be used in similar programming languages.

3
New cards

Pseudocode

•is an artificial and informal language that helps develop algorithms.

•It is useful in developing algorithms that will be later converted into C language programming.

•It is similar to English statements and not executed on computers.

4
New cards

Pseudocode Constructs

These constructs — also called keywords — are used to describe the control flow of the algorithm.

5
New cards

SEQUENCE

sequentially performed one after the other

6
New cards

WHILE

is a loop with a condition at its beginning

7
New cards

REPEAT-UNTIL

is a loop with a condition at the bottom

8
New cards

FOR

is another way of looping.

9
New cards

-IF-THEN-ELSE

is a conditional statement changing the flow of the algorithm

10
New cards

CASE

is the generalization form of IF-THEN-ELSE

11
New cards

Flowchart

-is a tool developed in the computer industry, for showing the steps involved in a process.

-A flowchart is a diagram made up of boxes, diamonds and other shapes, connected by arrows - each shape represents a step in the process, and the arrows show the order in which they occur.

-A flowchart is a diagram that depicts the "flow" of a program

12
New cards

Terminator (Oval)

Meaning: Represents the start or end of a process.

Example: "Start" or "End

13
New cards

Process (Rectangle):

Meaning: Indicates a specific action or task within the process.

Example: "Calculate total" or "Process order"

14
New cards

Decision (Diamond):

Meaning: Represents a decision point that can lead to multiple outcomes (e.g., Yes/No).

15
New cards

Input/Output (Parallelogram):

Meaning: Represents data entering or leaving the system, such as user input or output results.

16
New cards

Arrow (Flow Line):

Meaning: Shows the direction of the process flow, connecting different symbols to indicate the sequence of steps.

symbols to indicate the sequence of steps.

17
New cards

onnector (Circle):

Meaning: Used to connect different sections of a flowchart, especially in complex diagrams.

Example: Indicates a continuation of the flow on another page or section