SlideShare a Scribd company logo
2
Most read
6
Most read
7
Most read
LOGICAL PROGRAMMING LANGUAGES AND FUNCTIONAL
PROGRAMMING LANGUAGES
By: Nahian Zarif Khan
LOGICAL PROGRAMMING LANGUAGES
 All logical programming languages can be generalized into a category of programming languages called
declarative languages.
 Has a few advantages :-
 Classified as high-level languages as they implement computation’s logic rather than mechanics.
 They allow data to be represented both extensionally and intentionally.
 Well suited for rapid interpretation of the data structure and the code to implement very complicated ideas.
LOGICAL PROGRAMMING LANGUAGES
 Disadvantages include:-
 There is no suitable method of representing computational concepts that originate in a built-in mechanism of state
variables like it is found in conventional languages.
 Initially, due to insufficient investment in complimentary technologies, users were poorly served.
 Poor facilities for supporting arithmetic ,etc.
 Limited to which types of problems it can solves.
 Slow program execution.
FUNCTIONAL PROGRAMMING LANGUAGES
 Type of programming paradigm in which everything is done with the help of functions and using functions as
its building block.
 Has a few advantages :-
 Leads to fewer bugs.
 Easier to test. Reasons: (i)Outputs same for any given inputs (ii) Pure functions don’t depend on any state apart from the
inputs
 Function signatures are more trusted .
 Concurrency is more easily kept safe , pure functions are definitionally thread-safe. No chances of race condition
occurrence.
 Immutable variables lead to fewer side-effects
FUNCTIONAL PROGRAMMING LANGUAGES
 Disadvantages include:-
 Can be less efficient than others.
 They tend to require a large amount of time and memory.
 Purely functional languages are not really used in commercial software developments.
 At most times, there are problems involving many variables or a lot of sequential activities where it should be best
handled with OOP rather than functional programming languages.
DIFFERENCES
Logical Programming languages Functional programming languages
Based on formal logic Based on functions
Programs are constructed by applying and
composing functions
Usually express or represent facts and rules related
to problems within a system of formal logic
These are specially designed for fault diagnosis,
natural language processing, planning, and
machine learning.
These are specially designed to manage and
handle symbolic computation and list processing
applications.
Its main aim is to allow machines to reason
because it is very useful for representing
knowledge
Its main aim is to reduce side effects that are
accomplished by isolating them from the rest of
the software code
It is data-driven, array-oriented, used to express
knowledge, etc.
It reduces code redundancy, improves modularity,
solves complex problems, increases
maintainability, etc.
Testing is comparatively more difficult as
compared to functional programming
Testing is much easier as compared to logical
programming
THANK YOU
Ad

Recommended

409793049-Storage-Virtualization-pptx.pptx
409793049-Storage-Virtualization-pptx.pptx
son2483
 
Number Representation and Arithmetic Operations.pptx
Number Representation and Arithmetic Operations.pptx
LikithaK8
 
Intro to assembly language
Intro to assembly language
United International University
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
Ashim Lamichhane
 
Language processor
Language processor
Abha Damani
 
Analysis modeling & scenario based modeling
Analysis modeling & scenario based modeling
Benazir Fathima
 
Problems of cooperative system
Problems of cooperative system
fazli khaliq
 
Logical and shift micro operations
Logical and shift micro operations
Sanjeev Patel
 
Code Optimization
Code Optimization
Akhil Kaushik
 
Compilers
Compilers
Bense Tony
 
System software
System software
Senthil Kanth
 
Cocomo model
Cocomo model
Baskarkncet
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTURE
VENNILAV6
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
Ajit Nayak
 
Computer registers
Computer registers
DeepikaT13
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
ghayour abbas
 
1. importance of c
1. importance of c
Alamgir Hossain
 
The role of the parser and Error recovery strategies ppt in compiler design
The role of the parser and Error recovery strategies ppt in compiler design
Sadia Akter
 
Unified process model
Unified process model
RyndaMaala
 
Design and analysis of algorithms
Design and analysis of algorithms
Dr Geetha Mohan
 
Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
Direct linking loaders
Direct linking loaders
Satyamevjayte Haxor
 
Linker and Loader
Linker and Loader
sonalikharade3
 
Unit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.ppt
DrTThendralCompSci
 
Pipeline hazard
Pipeline hazard
AJAL A J
 
Issues in design_of_code_generator
Issues in design_of_code_generator
vinithapanneer
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compiler
Iffat Anjum
 
Error Recovery strategies and yacc | Compiler Design
Error Recovery strategies and yacc | Compiler Design
Shamsul Huda
 
Functional programming in Python 1st Edition David Mertz
Functional programming in Python 1st Edition David Mertz
nkossivilana87
 
Functional programming in Python 1st Edition David Mertz
Functional programming in Python 1st Edition David Mertz
kimmidalboc0
 

More Related Content

What's hot (20)

Code Optimization
Code Optimization
Akhil Kaushik
 
Compilers
Compilers
Bense Tony
 
System software
System software
Senthil Kanth
 
Cocomo model
Cocomo model
Baskarkncet
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTURE
VENNILAV6
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
Ajit Nayak
 
Computer registers
Computer registers
DeepikaT13
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
ghayour abbas
 
1. importance of c
1. importance of c
Alamgir Hossain
 
The role of the parser and Error recovery strategies ppt in compiler design
The role of the parser and Error recovery strategies ppt in compiler design
Sadia Akter
 
Unified process model
Unified process model
RyndaMaala
 
Design and analysis of algorithms
Design and analysis of algorithms
Dr Geetha Mohan
 
Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
Direct linking loaders
Direct linking loaders
Satyamevjayte Haxor
 
Linker and Loader
Linker and Loader
sonalikharade3
 
Unit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.ppt
DrTThendralCompSci
 
Pipeline hazard
Pipeline hazard
AJAL A J
 
Issues in design_of_code_generator
Issues in design_of_code_generator
vinithapanneer
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compiler
Iffat Anjum
 
Error Recovery strategies and yacc | Compiler Design
Error Recovery strategies and yacc | Compiler Design
Shamsul Huda
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTURE
VENNILAV6
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
Ajit Nayak
 
Computer registers
Computer registers
DeepikaT13
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
ghayour abbas
 
The role of the parser and Error recovery strategies ppt in compiler design
The role of the parser and Error recovery strategies ppt in compiler design
Sadia Akter
 
Unified process model
Unified process model
RyndaMaala
 
Design and analysis of algorithms
Design and analysis of algorithms
Dr Geetha Mohan
 
Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
Unit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.ppt
DrTThendralCompSci
 
Pipeline hazard
Pipeline hazard
AJAL A J
 
Issues in design_of_code_generator
Issues in design_of_code_generator
vinithapanneer
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compiler
Iffat Anjum
 
Error Recovery strategies and yacc | Compiler Design
Error Recovery strategies and yacc | Compiler Design
Shamsul Huda
 

Similar to Logical programming languages and functional programming languages (20)

Functional programming in Python 1st Edition David Mertz
Functional programming in Python 1st Edition David Mertz
nkossivilana87
 
Functional programming in Python 1st Edition David Mertz
Functional programming in Python 1st Edition David Mertz
kimmidalboc0
 
The IoT Academy training part2 AI Architecture
The IoT Academy training part2 AI Architecture
The IOT Academy
 
Programming languages ms harsha
Programming languages ms harsha
Harsha Batra
 
Can programming be liberated from the von neumann style?
Can programming be liberated from the von neumann style?
Oriol López Massaguer
 
English de lenguaje de programacion
English de lenguaje de programacion
Villalba Griselda
 
Lecture_HPC_7_ProgrammingCSI32_Paradigms.pdf
Lecture_HPC_7_ProgrammingCSI32_Paradigms.pdf
AbdulRahman22892
 
Functional Programming.pptx
Functional Programming.pptx
KarthickT28
 
Functional programming
Functional programming
ijcd
 
Introduction To Computer Programming
Introduction To Computer Programming
Hussain Buksh
 
Programming language paradigms
Programming language paradigms
Ashok Raj
 
Funtional Programming
Funtional Programming
Girish Khanzode
 
lect1-introductiontoprogramminglanguages-130130013038-phpapp02.ppt
lect1-introductiontoprogramminglanguages-130130013038-phpapp02.ppt
abigailjudith8
 
Introduction to Functional Programming
Introduction to Functional Programming
Andreas Pauley
 
Functional Programming #FTW
Functional Programming #FTW
Adriano Bonat
 
Introduction Functional Programming - Tech Hangout #11 - 2013.01.16
Introduction Functional Programming - Tech Hangout #11 - 2013.01.16
Innovecs
 
Introductory func prog
Introductory func prog
Oleksandr Khomenko
 
Prgramming paradigms
Prgramming paradigms
Anirudh Chauhan
 
Introduction to Functional Programming
Introduction to Functional Programming
Dave Fancher
 
Plc part 3
Plc part 3
Taymoor Nazmy
 
Functional programming in Python 1st Edition David Mertz
Functional programming in Python 1st Edition David Mertz
nkossivilana87
 
Functional programming in Python 1st Edition David Mertz
Functional programming in Python 1st Edition David Mertz
kimmidalboc0
 
The IoT Academy training part2 AI Architecture
The IoT Academy training part2 AI Architecture
The IOT Academy
 
Programming languages ms harsha
Programming languages ms harsha
Harsha Batra
 
Can programming be liberated from the von neumann style?
Can programming be liberated from the von neumann style?
Oriol López Massaguer
 
English de lenguaje de programacion
English de lenguaje de programacion
Villalba Griselda
 
Lecture_HPC_7_ProgrammingCSI32_Paradigms.pdf
Lecture_HPC_7_ProgrammingCSI32_Paradigms.pdf
AbdulRahman22892
 
Functional Programming.pptx
Functional Programming.pptx
KarthickT28
 
Functional programming
Functional programming
ijcd
 
Introduction To Computer Programming
Introduction To Computer Programming
Hussain Buksh
 
Programming language paradigms
Programming language paradigms
Ashok Raj
 
lect1-introductiontoprogramminglanguages-130130013038-phpapp02.ppt
lect1-introductiontoprogramminglanguages-130130013038-phpapp02.ppt
abigailjudith8
 
Introduction to Functional Programming
Introduction to Functional Programming
Andreas Pauley
 
Functional Programming #FTW
Functional Programming #FTW
Adriano Bonat
 
Introduction Functional Programming - Tech Hangout #11 - 2013.01.16
Introduction Functional Programming - Tech Hangout #11 - 2013.01.16
Innovecs
 
Introduction to Functional Programming
Introduction to Functional Programming
Dave Fancher
 
Ad

Recently uploaded (20)

Industrial internet of things IOT Week-3.pptx
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
International Journal of Advanced Information Technology (IJAIT)
International Journal of Advanced Information Technology (IJAIT)
ijait
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
IJCNCJournal
 
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Mechanical Vibration_MIC 202_iit roorkee.pdf
Mechanical Vibration_MIC 202_iit roorkee.pdf
isahiliitr
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Industrial internet of things IOT Week-3.pptx
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
International Journal of Advanced Information Technology (IJAIT)
International Journal of Advanced Information Technology (IJAIT)
ijait
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
IJCNCJournal
 
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Mechanical Vibration_MIC 202_iit roorkee.pdf
Mechanical Vibration_MIC 202_iit roorkee.pdf
isahiliitr
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Ad

Logical programming languages and functional programming languages

  • 1. LOGICAL PROGRAMMING LANGUAGES AND FUNCTIONAL PROGRAMMING LANGUAGES By: Nahian Zarif Khan
  • 2. LOGICAL PROGRAMMING LANGUAGES  All logical programming languages can be generalized into a category of programming languages called declarative languages.  Has a few advantages :-  Classified as high-level languages as they implement computation’s logic rather than mechanics.  They allow data to be represented both extensionally and intentionally.  Well suited for rapid interpretation of the data structure and the code to implement very complicated ideas.
  • 3. LOGICAL PROGRAMMING LANGUAGES  Disadvantages include:-  There is no suitable method of representing computational concepts that originate in a built-in mechanism of state variables like it is found in conventional languages.  Initially, due to insufficient investment in complimentary technologies, users were poorly served.  Poor facilities for supporting arithmetic ,etc.  Limited to which types of problems it can solves.  Slow program execution.
  • 4. FUNCTIONAL PROGRAMMING LANGUAGES  Type of programming paradigm in which everything is done with the help of functions and using functions as its building block.  Has a few advantages :-  Leads to fewer bugs.  Easier to test. Reasons: (i)Outputs same for any given inputs (ii) Pure functions don’t depend on any state apart from the inputs  Function signatures are more trusted .  Concurrency is more easily kept safe , pure functions are definitionally thread-safe. No chances of race condition occurrence.  Immutable variables lead to fewer side-effects
  • 5. FUNCTIONAL PROGRAMMING LANGUAGES  Disadvantages include:-  Can be less efficient than others.  They tend to require a large amount of time and memory.  Purely functional languages are not really used in commercial software developments.  At most times, there are problems involving many variables or a lot of sequential activities where it should be best handled with OOP rather than functional programming languages.
  • 6. DIFFERENCES Logical Programming languages Functional programming languages Based on formal logic Based on functions Programs are constructed by applying and composing functions Usually express or represent facts and rules related to problems within a system of formal logic These are specially designed for fault diagnosis, natural language processing, planning, and machine learning. These are specially designed to manage and handle symbolic computation and list processing applications. Its main aim is to allow machines to reason because it is very useful for representing knowledge Its main aim is to reduce side effects that are accomplished by isolating them from the rest of the software code It is data-driven, array-oriented, used to express knowledge, etc. It reduces code redundancy, improves modularity, solves complex problems, increases maintainability, etc. Testing is comparatively more difficult as compared to functional programming Testing is much easier as compared to logical programming