Lec 01
Lec 01
Languages
LECTURE#1
Chapter # 1
Preliminaries
What is Programming?
Programming
emphasizes on procedure
Examples are:
C
C++
Java
ColdFusion
Pascal
Procedural - Imperative
numbers of processor
Objective: running a program in less time by dividing them
divide and conquer
Examples are NESL (one of the oldest one) and C/C++ also supports
because of some library function.
Declarative programming paradigm
The central model for the abstraction is the function (meant for some
specific computation) and not the data structure.
Some of the languages like perl, javascript mostly uses this paradigm.
Database/Data driven programming
approach – Declarative
based on data
provides file creation, data entry, update, query and reporting functions
For example SQL.
Difference
Imperative Declarative
how to do what to do
Language Evaluation Criteria
Readability
Writability
Reliability
Cost
Language Design Trade-offs
Program Algorithm
Programming Language Pseudocode/Structured English
Computer Model of Computation OR
Architecture of Computer (Influence
on language design)
Model of Computation
Specifies
What operations an algorithm is allowed.
Model of Computation
Model of Computation