SlideShare a Scribd company logo
2
Most read
6
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

More Related Content

PPT
C operator and expression
PPTX
Specification-of-tokens
PPTX
Syntax Analysis in Compiler Design
PPT
EVOLUTION OF SYSTEM
PPTX
PHP FUNCTIONS
PPTX
OOP Introduction with java programming language
PPTX
Characteristics of OOPS
PDF
Memory management
C operator and expression
Specification-of-tokens
Syntax Analysis in Compiler Design
EVOLUTION OF SYSTEM
PHP FUNCTIONS
OOP Introduction with java programming language
Characteristics of OOPS
Memory management

What's hot (20)

PDF
loaders and linkers
PPTX
Programming Fundamentals
PPTX
Exception handling c++
PPTX
Introduction to Parallel and Distributed Computing
PPTX
Deadlock ppt
ODP
Perl Introduction
PPT
Exception handling and function in python
PPTX
Boolean and conditional logic in Python
PPTX
Procedural programming
PPTX
Dynamic memory allocation
PPTX
Nesting of if else statement & Else If Ladder
PDF
Introduction to algorithms
PPT
Fundamentals of Database ppt ch01
PPTX
Heuristics Search Techniques in AI
PPTX
Design and Analysis of Algorithms.pptx
PDF
Os services
PDF
File Types in Data Structure
PPTX
Program execution
PPTX
contiguous memory allocation.pptx
PPTX
Operator.ppt
loaders and linkers
Programming Fundamentals
Exception handling c++
Introduction to Parallel and Distributed Computing
Deadlock ppt
Perl Introduction
Exception handling and function in python
Boolean and conditional logic in Python
Procedural programming
Dynamic memory allocation
Nesting of if else statement & Else If Ladder
Introduction to algorithms
Fundamentals of Database ppt ch01
Heuristics Search Techniques in AI
Design and Analysis of Algorithms.pptx
Os services
File Types in Data Structure
Program execution
contiguous memory allocation.pptx
Operator.ppt
Ad

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

PPTX
CHAPTER 1 OBJECT ORIENTED NOTES SLIDE PRESENTATION
ODP
Programming
PPTX
Programming language
PPTX
Computer Programming
PPTX
DOC
Grade 8: Introduction To Java
DOCX
DOCX
Unit 1
PPTX
Lec 1 Introduction to Programming Concepts.pptx
PPTX
Ppt about programming in methodology
PPTX
C Course material
PPTX
Chapter 1
PPTX
introduction to programming languages
PDF
Chapter-1-1 object oriented programing pdf.pdf
PPTX
Ch1 language design issue
DOCX
Week 3 Lecture 1 - Business SoftwareManagement of Information .docx
PPT
Lecture 5 - Structured Programming Language
PPTX
Chapter 5
PPTX
PROGRAMMING LANGUAGE AND TYPES
PPTX
Computer Software and It's Development
CHAPTER 1 OBJECT ORIENTED NOTES SLIDE PRESENTATION
Programming
Programming language
Computer Programming
Grade 8: Introduction To Java
Unit 1
Lec 1 Introduction to Programming Concepts.pptx
Ppt about programming in methodology
C Course material
Chapter 1
introduction to programming languages
Chapter-1-1 object oriented programing pdf.pdf
Ch1 language design issue
Week 3 Lecture 1 - Business SoftwareManagement of Information .docx
Lecture 5 - Structured Programming Language
Chapter 5
PROGRAMMING LANGUAGE AND TYPES
Computer Software and It's Development
Ad

Recently uploaded (20)

PPTX
UNIT 4 Total Quality Management .pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
PPT on Performance Review to get promotions
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
additive manufacturing of ss316l using mig welding
UNIT 4 Total Quality Management .pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
R24 SURVEYING LAB MANUAL for civil enggi
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Operating System & Kernel Study Guide-1 - converted.pdf
Lecture Notes Electrical Wiring System Components
bas. eng. economics group 4 presentation 1.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Geodesy 1.pptx...............................................
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Digital Logic Computer Design lecture notes
PPT on Performance Review to get promotions
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
additive manufacturing of ss316l using mig welding

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