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
OS Components and Structure
PPT
Microprocessor 80386
PDF
7BCEE2A - UNIT V - STACK ORGANIZATION.pdf
PPTX
Memory Organization
PPT
Basic MIPS implementation
PPTX
Computer architecture multi processor
PPTX
Accessing I/O Devices
PPT
Virtual memory
OS Components and Structure
Microprocessor 80386
7BCEE2A - UNIT V - STACK ORGANIZATION.pdf
Memory Organization
Basic MIPS implementation
Computer architecture multi processor
Accessing I/O Devices
Virtual memory

What's hot (20)

PPTX
Multiprocessor system
PPT
Cache coherence
PPTX
System Programming- Unit I
PPTX
Von-Neumann machine and IAS architecture
PPTX
Chapter 2 operating systems
PPTX
Instruction codes
PPT
software characteristics
PPTX
OOSE-UNIT-1.pptx
PPTX
Programmers model of 8086
PPTX
Computer Organisation & Architecture (chapter 1)
PDF
9 virtual memory management
PPTX
INSTRUCTION LEVEL PARALLALISM
PPTX
Pentium processor
PPT
Interrupt
PPT
8085 interrupts
PPTX
Procedural programming
PDF
Computer organisation -morris mano
PPTX
Pci,usb,scsi bus
PPS
Registers and-common-bus
Multiprocessor system
Cache coherence
System Programming- Unit I
Von-Neumann machine and IAS architecture
Chapter 2 operating systems
Instruction codes
software characteristics
OOSE-UNIT-1.pptx
Programmers model of 8086
Computer Organisation & Architecture (chapter 1)
9 virtual memory management
INSTRUCTION LEVEL PARALLALISM
Pentium processor
Interrupt
8085 interrupts
Procedural programming
Computer organisation -morris mano
Pci,usb,scsi bus
Registers and-common-bus
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
PPTX
Computer Programming
DOC
Grade 8: Introduction To Java
DOCX
JAVA
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
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)

PDF
Design Guidelines and solutions for Plastics parts
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PPTX
Module 8- Technological and Communication Skills.pptx
PPTX
Feature types and data preprocessing steps
PDF
First part_B-Image Processing - 1 of 2).pdf
PPTX
ai_satellite_crop_management_20250815030350.pptx
PPTX
Management Information system : MIS-e-Business Systems.pptx
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
Unit1 - AIML Chapter 1 concept and ethics
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PDF
Java Basics-Introduction and program control
PPTX
Software Engineering and software moduleing
PPTX
Measurement Uncertainty and Measurement System analysis
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
PDF
20250617 - IR - Global Guide for HR - 51 pages.pdf
Design Guidelines and solutions for Plastics parts
Information Storage and Retrieval Techniques Unit III
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Module 8- Technological and Communication Skills.pptx
Feature types and data preprocessing steps
First part_B-Image Processing - 1 of 2).pdf
ai_satellite_crop_management_20250815030350.pptx
Management Information system : MIS-e-Business Systems.pptx
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
Unit1 - AIML Chapter 1 concept and ethics
Exploratory_Data_Analysis_Fundamentals.pdf
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Java Basics-Introduction and program control
Software Engineering and software moduleing
Measurement Uncertainty and Measurement System analysis
MLpara ingenieira CIVIL, meca Y AMBIENTAL
20250617 - IR - Global Guide for HR - 51 pages.pdf

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