Introduction to Data Structures and Algorithms
Introduction to Data Structures and Algorithms
Data Structure
specialized format to store and organize data in a
computer’s memory or disk
Data Types
data that a variable can hold in a programming
language
Examples:
char - data type representing character values
int - data type representing integer values
Procedure
PSEUDOCODE
textual presentation of a flowchart
close to a natural language
the control structures impose the logic
may become part of the program documentation
could be translated into a program
STEPWISE REFINEMENT
The process by which a programmer refines an
initial idea to a problem's solution into more
specific terms.
The last phase of refinement results in a program
ready to be coded for execution.
ANALYSIS OF ALGORITHMS
Analysis of Algorithms
Best-case analysis
Worst-case analysis
Average-case analysis