0% found this document useful (0 votes)
20 views13 pages

Programing Paradigms-P

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views13 pages

Programing Paradigms-P

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1

Programming for Problem Solving(CS 23.101)


Programming Paradigms(Unit-1)
[Link]. CSE 1st Sem (A, B)
By : Dr. Vinod Kumar
Programming Paradigms
 Paradigm can also be termed as method to solve some problem or do
some task.
 Programming paradigm is an approach to solve problem using some
programming language or also we can say it is a method to solve a
problem using tools and techniques that are available to us following some
approach.
 There are lots for programming language that are known but all of them
need to follow some strategy when they are implemented and this
methodology/strategy is paradigms.
Why we need Programming Paradigm?
Programming Paradigms

Imperative Declarative Programming


Programming Paradigm Paradigm

Procedural
Logic Programming
Programming
Paradigm
Paradigm

Object-Oriented Functional
Programming Programming

Parallel Processing Database Processing


Approach Approach
[Link] Programming
1.1 Procedural Programming Paradigm
1.2 Object Oriented Programming
1.3 Parallel processing approach
 Parallel processing is the processing of program instructions
by dividing them among multiple processors.
 A parallel processing system posses many numbers of
processor with the objective of running a program in less time
by dividing them.
 This approach seems to be like divide and conquer.
 Examples are NESL (one of the oldest one) and C/C++ also
supports because of some library function.
2. Declarative Programming Paradigm
2.1 Logic Programming Paradigm
2.2 Functional Programming Paradigm
2.3 Database/Data driven programming approach

 This programming methodology is based on data and its movement.


 Program statements are defined by data rather than hard-coding a series of steps.
 A database program is the heart of a business information system and provides file
creation, data entry, update, query and reporting functions.
 There are several programming languages that are developed mostly for database
application.
 For example SQL.
 CREATE DATABASE databaseAddress;
CREATE TABLE Addr (
PersonID int,
LastName varchar(200),
FirstName varchar(200),
Address varchar(200),
City varchar(200),
State varchar(200)
);
Conclusion

You might also like