Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
Concept of Algorithm
a) flow chart
b) Pseudocode
c) The actual program or code
a) It is the collection and organization of related data items in the computers memory.
b) A collection of variables, possibly of different data types
Example:-
info = record
name: string[25];
age: 0..100;
sex: (male, female);
end;
Data Types (the set of values that the variable may assume)
a) Single Data Type:-Variables of such a type can assume 1 value at any time
1|Page
b) Structured Data Type:-Variables of such a type can assume 1 or more values at any
time
c) Abstract Data type (ADT) :- i) A set of data values and associated operations that are
precisely specified independent of any particular implementation.( To abstract is to
ignore some details of a thing in favor of others)
ii) An ADT is a formally specified set of values and associated operations,
independent from any particular implementation
2|Page