SlideShare une entreprise Scribd logo
1  sur  5
Télécharger pour lire hors ligne
Practical Problems based on the subject MBI 303: Advanced Algorithms
                                                Page 1 of 1




Fuzzy Logic
Sr. No.     Definition                                                                  App.
                                                                                        Marks
1           Consider the set of old people O. The graded membership M of a              5-8
            person X to determine whether the person belongs to old class O or
            not is defined as follows:

            M= 0 if age of X is > 0 years and <= 59 years
            M= (age of X -60)/20 if age of X is > 59 years and <= 79 years
            M= 1 if age of X is > 79 years

            Write a computer program using language of your choice which input
            age of a person X in total years and outputs graded membership.

Solution    Algorithm:
                1.       Start.
                2.       Input the age of a person.
                3.       Store the age to a variable x.
                4.       Let the membership we want to calculate is m.
                5.       If x is between 0 and 59 then m is 0;
                6.       Else if x is between 60 and 70 then m is ….formula given the
                         membership function;
                7.       Else m =1.
                8.       Print age x as well as membership value m.
                9.       Stop.

            Program
            #include<iostream.h>
            void main()
            {
                   int x;
                   float m;
                   cout << " Input the age of the person: ";
                   cin >>x;
                   if (x > 0 && x<= 59)
                   {
                           m=0;
                   }
Practical Problems based on the subject MBI 303: Advanced Algorithms
                                  Page 2 of 2

             else if( x > 59 && x <= 79)
             {
                      m = (float)(x-60)/20;
             }
             else
             {
                      m=1;
             }
             cout<<" The graded membership function M is : " <<m
     <<endl;
     }
2    Consider the set of old people O. The graded membership M of a          5-8
     person X to determine whether the person belongs to old class O or
     not is defined as follows:

     M= 0 if age of X is > 0 years and <= 59 years
     M= (age of X -60)/20 if age of X is > 59 years and <= 79 years
     M= 1 if age of X is > 79 years

     Write a computer program using language of your choice which input
     the graded membership to a person X and outputs broad category of
     the age of the person X.

3    Consider the set of old people O. The graded membership M of a
     person X to determine whether the person belongs to old class O or
     not is defined as follows:

     M= 0 if age of X is > 0 years and <= 59 years
     M= (age of X -60)/20 if age of X is > 59 years and <= 79 years
     M= 1 if age of X is > 79 years

     Write a computer program using language of your choice that returns
     complement membership of the above set. The input to the program is
     age of a person x and output is the complement of the graded
     membership to a person X between the closed interval [0,1].

4    Consider the set of machines, M, and the set of people, P, defined as   8-10
     follows:
     M = { set of all machines in a domain}
     e.g., M = { m1, m2, m3…, mn} where n =3
Practical Problems based on the subject MBI 303: Advanced Algorithms
                                    Page 3 of 3



     P = {set of people}
     e.g., P = { p1, p2, p3, …, pk} where k =3

     The fuzzy relationship “generally comfortable” can be defined as:

                                    m1    m2      m3

                               p1   1.0   0.4     0.7
                               p2   0.8   1.0     0.6
                               p3   0.7   0.6     1.0


     Write a program which takes machine identification M and person
     identification P and returns the degree of comfort of the given P on
     the given machine M.

     Also list the ideal machine for each person where the person is most
     comfortable.

5    Consider U = V = {1,2,3}. The relationship R of U*V, defined as               8-10
     “approximately equal,” is a binary fuzzy relationship given by 1/(1,1),
     1/(2,2), 1/(3,3), 0.8/(1,2), 0.8/(2,3), 0.8/(2,1), 0.4/(1,3), 0.8/(3,2) and
     0.4/(3,1).

     Consider another relationship, S, of U*V in which x is considerably
     larger than y for ∀x∈U and ∀y∈V. The relationship S can be given as

                               X/Y 1       2      3
                               1      0    0.6 0.8
                               2      0.6 0       0.6
                               3      0.8 0.6 0


     Find and print
     (i) μR∩S(x,y) and
     (ii) μR∪S(x,y)

6    Develop a computer program which prints a menu on clears screen as            20
     follows:
Practical Problems based on the subject MBI 303: Advanced Algorithms
                                    Page 4 of 4

 Lab Experiments on Fuzzy Logic
 ------------------------------------------
 Program 1 Section 2 Fuzzy Logic
 Program 2 Section 2 Fuzzy Logic
 Program 3 Section 2 Fuzzy Logic
 Program 4 Section 2 Fuzzy Logic
 Program 5 Section 2 Fuzzy Logic
 Exit
 ------------------------------------------

  Implement all the programs using functions or routines (in a single or
 different programs, as per your convenience). The program while
 execution should ask the users for his/her choice and perform function
 accordingly.

 If user gives invalid choice the program should print appropriate
 message.

 The program should be terminated only if the choice # 6 (Exit) is
 given by the user.
Practical Problems based on the subject MBI 303: Advanced Algorithms
                                     Page 5 of 5

Genetic Algorithms
Sr.   Definition                                                              App.
No.                                                                           Marks
1.    Write a program for single variable function optimization. Read valid   5-8
      initial population (n individuals) through keyboard for Maximization
      of f (x).
      Where f (x, y) = x4

2     Write a program for single variable function optimization. Read valid   5-8
      initial population (n individuals) through keyboard for Minimization
      of f (x).
      Where f (x, y) = x + x2

3     Write a program for double variable function optimization. Read valid   5-8
      initial population of 10-bits (four individuals) through keyboard and
      scale the interval [0, 1) for Maximization of f (x, y).
      Where f (x, y) = yx2 – x4

4     Write a program for double variable function optimization. Read valid   5-8
      initial population of 10-bits (four individuals) through keyboard and
      scale the interval [0, 1) for Minimization of f (x, y).
      Where f (x, y) = yx2

5     Simulation of operators                                                 15-20
      Mutation
      Cross-over
      Recombination operators
      Menu driven system
6     Traveling salesman problem                                              10-15

Contenu connexe

Tendances

Bca1040 digital logic
Bca1040   digital logicBca1040   digital logic
Bca1040 digital logicsmumbahelp
 
Continuous Random variable
Continuous Random variableContinuous Random variable
Continuous Random variableJay Patel
 
Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009ayimsevenfold
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI Poonam Chopra
 
Sample Question Paper IP Class xii
Sample Question Paper IP Class xii Sample Question Paper IP Class xii
Sample Question Paper IP Class xii kvs
 
Ai_Project_report
Ai_Project_reportAi_Project_report
Ai_Project_reportRavi Gupta
 
A New Approach for Ranking Shadowed Fuzzy Numbers and its Application
A New Approach for Ranking Shadowed Fuzzy Numbers and its ApplicationA New Approach for Ranking Shadowed Fuzzy Numbers and its Application
A New Approach for Ranking Shadowed Fuzzy Numbers and its ApplicationAIRCC Publishing Corporation
 
Sparse data formats and efficient numerical methods for uncertainties in nume...
Sparse data formats and efficient numerical methods for uncertainties in nume...Sparse data formats and efficient numerical methods for uncertainties in nume...
Sparse data formats and efficient numerical methods for uncertainties in nume...Alexander Litvinenko
 
Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)Poonam Chopra
 
Bca1040 digital logic
Bca1040   digital logicBca1040   digital logic
Bca1040 digital logicsmumbahelp
 
Probability mass functions and probability density functions
Probability mass functions and probability density functionsProbability mass functions and probability density functions
Probability mass functions and probability density functionsAnkit Katiyar
 

Tendances (19)

CBSE Sample Paper IP
CBSE Sample Paper IPCBSE Sample Paper IP
CBSE Sample Paper IP
 
Bca1040 digital logic
Bca1040   digital logicBca1040   digital logic
Bca1040 digital logic
 
probability assignment help (2)
probability assignment help (2)probability assignment help (2)
probability assignment help (2)
 
Continuous Random Variables
Continuous Random VariablesContinuous Random Variables
Continuous Random Variables
 
Continuous Random variable
Continuous Random variableContinuous Random variable
Continuous Random variable
 
Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009Chapter 2 continuous_random_variable_2009
Chapter 2 continuous_random_variable_2009
 
Math Exam Help
Math Exam HelpMath Exam Help
Math Exam Help
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI
 
Sample Question Paper IP Class xii
Sample Question Paper IP Class xii Sample Question Paper IP Class xii
Sample Question Paper IP Class xii
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning Basics
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Ai_Project_report
Ai_Project_reportAi_Project_report
Ai_Project_report
 
A New Approach for Ranking Shadowed Fuzzy Numbers and its Application
A New Approach for Ranking Shadowed Fuzzy Numbers and its ApplicationA New Approach for Ranking Shadowed Fuzzy Numbers and its Application
A New Approach for Ranking Shadowed Fuzzy Numbers and its Application
 
Sparse data formats and efficient numerical methods for uncertainties in nume...
Sparse data formats and efficient numerical methods for uncertainties in nume...Sparse data formats and efficient numerical methods for uncertainties in nume...
Sparse data formats and efficient numerical methods for uncertainties in nume...
 
Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)Sample Paper Class XI (Informatics Practices)
Sample Paper Class XI (Informatics Practices)
 
Bca1040 digital logic
Bca1040   digital logicBca1040   digital logic
Bca1040 digital logic
 
Probability mass functions and probability density functions
Probability mass functions and probability density functionsProbability mass functions and probability density functions
Probability mass functions and probability density functions
 
statistics assignment help
statistics assignment helpstatistics assignment help
statistics assignment help
 
Data Analysis Assignment Help
Data Analysis Assignment Help Data Analysis Assignment Help
Data Analysis Assignment Help
 

Similaire à Programming definitions on fuzzy logic and genetic algorithms

Perspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetPerspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetHoang Nguyen Phong
 
!Business statistics tekst
!Business statistics tekst!Business statistics tekst
!Business statistics tekstKing Nisar
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabBilawalBaloch1
 
A method for finding an optimal solution of an assignment problem under mixed...
A method for finding an optimal solution of an assignment problem under mixed...A method for finding an optimal solution of an assignment problem under mixed...
A method for finding an optimal solution of an assignment problem under mixed...Navodaya Institute of Technology
 
FL-01 Introduction.pptx
FL-01 Introduction.pptxFL-01 Introduction.pptx
FL-01 Introduction.pptxSourabhRuhil4
 
CSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxCSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxTasnimSaimaRaita
 
Burr Type III Software Reliability Growth Model
Burr Type III Software Reliability Growth ModelBurr Type III Software Reliability Growth Model
Burr Type III Software Reliability Growth ModelIOSR Journals
 
The Concurrent Constraint Programming Research Programmes -- Redux (part2)
The Concurrent Constraint Programming Research Programmes -- Redux (part2)The Concurrent Constraint Programming Research Programmes -- Redux (part2)
The Concurrent Constraint Programming Research Programmes -- Redux (part2)Pierre Schaus
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysisVishal Singh
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 
Python for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.comPython for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.comShwetaAggarwal56
 
Neural networks with python
Neural networks with pythonNeural networks with python
Neural networks with pythonSimone Piunno
 
9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programming9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programmingsmiller5
 
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docxPage 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docxalfred4lewis58146
 

Similaire à Programming definitions on fuzzy logic and genetic algorithms (20)

Perspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetPerspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer Sheet
 
Bayesian_Decision_Theory-3.pdf
Bayesian_Decision_Theory-3.pdfBayesian_Decision_Theory-3.pdf
Bayesian_Decision_Theory-3.pdf
 
!Business statistics tekst
!Business statistics tekst!Business statistics tekst
!Business statistics tekst
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
A method for finding an optimal solution of an assignment problem under mixed...
A method for finding an optimal solution of an assignment problem under mixed...A method for finding an optimal solution of an assignment problem under mixed...
A method for finding an optimal solution of an assignment problem under mixed...
 
FL-01 Introduction.pptx
FL-01 Introduction.pptxFL-01 Introduction.pptx
FL-01 Introduction.pptx
 
Laboratory 7
Laboratory 7Laboratory 7
Laboratory 7
 
Algoritmic Information Theory
Algoritmic Information TheoryAlgoritmic Information Theory
Algoritmic Information Theory
 
CSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxCSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptx
 
Burr Type III Software Reliability Growth Model
Burr Type III Software Reliability Growth ModelBurr Type III Software Reliability Growth Model
Burr Type III Software Reliability Growth Model
 
I017144954
I017144954I017144954
I017144954
 
The Concurrent Constraint Programming Research Programmes -- Redux (part2)
The Concurrent Constraint Programming Research Programmes -- Redux (part2)The Concurrent Constraint Programming Research Programmes -- Redux (part2)
The Concurrent Constraint Programming Research Programmes -- Redux (part2)
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysis
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Java Practice Set
Java Practice SetJava Practice Set
Java Practice Set
 
Python for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.comPython for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.com
 
Neural networks with python
Neural networks with pythonNeural networks with python
Neural networks with python
 
Loops in Python
Loops in PythonLoops in Python
Loops in Python
 
9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programming9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programming
 
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docxPage 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
 

Plus de Priti Srinivas Sajja

Ai priti sajja original webinar ai post covid may 2020
Ai priti sajja original webinar ai post covid may 2020Ai priti sajja original webinar ai post covid may 2020
Ai priti sajja original webinar ai post covid may 2020Priti Srinivas Sajja
 
Neural network definitions priti sajja 2019
Neural network definitions priti sajja 2019Neural network definitions priti sajja 2019
Neural network definitions priti sajja 2019Priti Srinivas Sajja
 
Management Information System MIS Priti Sajja S P University
Management Information System MIS Priti Sajja S P University Management Information System MIS Priti Sajja S P University
Management Information System MIS Priti Sajja S P University Priti Srinivas Sajja
 
Artificial intelligence quiz ai and fuzzy logic priti sajja
Artificial intelligence quiz ai and fuzzy logic priti sajjaArtificial intelligence quiz ai and fuzzy logic priti sajja
Artificial intelligence quiz ai and fuzzy logic priti sajjaPriti Srinivas Sajja
 
Soft computing and fuzzy logic 2012
Soft computing  and fuzzy logic 2012Soft computing  and fuzzy logic 2012
Soft computing and fuzzy logic 2012Priti Srinivas Sajja
 
Artificial intelligence priti sajja spuniversity
Artificial intelligence priti sajja spuniversityArtificial intelligence priti sajja spuniversity
Artificial intelligence priti sajja spuniversityPriti Srinivas Sajja
 
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...Priti Srinivas Sajja
 
Role of laboratory technicians for computer institutes
Role of laboratory technicians for computer institutesRole of laboratory technicians for computer institutes
Role of laboratory technicians for computer institutesPriti Srinivas Sajja
 
Introduction to java by priti sajja
Introduction to java by priti sajjaIntroduction to java by priti sajja
Introduction to java by priti sajjaPriti Srinivas Sajja
 

Plus de Priti Srinivas Sajja (12)

Ai priti sajja original webinar ai post covid may 2020
Ai priti sajja original webinar ai post covid may 2020Ai priti sajja original webinar ai post covid may 2020
Ai priti sajja original webinar ai post covid may 2020
 
Cv priti sajja 2019
Cv priti sajja 2019Cv priti sajja 2019
Cv priti sajja 2019
 
Neural network definitions priti sajja 2019
Neural network definitions priti sajja 2019Neural network definitions priti sajja 2019
Neural network definitions priti sajja 2019
 
Introduction to MIS
Introduction to MISIntroduction to MIS
Introduction to MIS
 
Management Information System MIS Priti Sajja S P University
Management Information System MIS Priti Sajja S P University Management Information System MIS Priti Sajja S P University
Management Information System MIS Priti Sajja S P University
 
Artificial intelligence quiz ai and fuzzy logic priti sajja
Artificial intelligence quiz ai and fuzzy logic priti sajjaArtificial intelligence quiz ai and fuzzy logic priti sajja
Artificial intelligence quiz ai and fuzzy logic priti sajja
 
Soft computing and fuzzy logic 2012
Soft computing  and fuzzy logic 2012Soft computing  and fuzzy logic 2012
Soft computing and fuzzy logic 2012
 
Intelligent web applications
Intelligent web applicationsIntelligent web applications
Intelligent web applications
 
Artificial intelligence priti sajja spuniversity
Artificial intelligence priti sajja spuniversityArtificial intelligence priti sajja spuniversity
Artificial intelligence priti sajja spuniversity
 
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
 
Role of laboratory technicians for computer institutes
Role of laboratory technicians for computer institutesRole of laboratory technicians for computer institutes
Role of laboratory technicians for computer institutes
 
Introduction to java by priti sajja
Introduction to java by priti sajjaIntroduction to java by priti sajja
Introduction to java by priti sajja
 

Dernier

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Dernier (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Programming definitions on fuzzy logic and genetic algorithms

  • 1. Practical Problems based on the subject MBI 303: Advanced Algorithms Page 1 of 1 Fuzzy Logic Sr. No. Definition App. Marks 1 Consider the set of old people O. The graded membership M of a 5-8 person X to determine whether the person belongs to old class O or not is defined as follows: M= 0 if age of X is > 0 years and <= 59 years M= (age of X -60)/20 if age of X is > 59 years and <= 79 years M= 1 if age of X is > 79 years Write a computer program using language of your choice which input age of a person X in total years and outputs graded membership. Solution Algorithm: 1. Start. 2. Input the age of a person. 3. Store the age to a variable x. 4. Let the membership we want to calculate is m. 5. If x is between 0 and 59 then m is 0; 6. Else if x is between 60 and 70 then m is ….formula given the membership function; 7. Else m =1. 8. Print age x as well as membership value m. 9. Stop. Program #include<iostream.h> void main() { int x; float m; cout << " Input the age of the person: "; cin >>x; if (x > 0 && x<= 59) { m=0; }
  • 2. Practical Problems based on the subject MBI 303: Advanced Algorithms Page 2 of 2 else if( x > 59 && x <= 79) { m = (float)(x-60)/20; } else { m=1; } cout<<" The graded membership function M is : " <<m <<endl; } 2 Consider the set of old people O. The graded membership M of a 5-8 person X to determine whether the person belongs to old class O or not is defined as follows: M= 0 if age of X is > 0 years and <= 59 years M= (age of X -60)/20 if age of X is > 59 years and <= 79 years M= 1 if age of X is > 79 years Write a computer program using language of your choice which input the graded membership to a person X and outputs broad category of the age of the person X. 3 Consider the set of old people O. The graded membership M of a person X to determine whether the person belongs to old class O or not is defined as follows: M= 0 if age of X is > 0 years and <= 59 years M= (age of X -60)/20 if age of X is > 59 years and <= 79 years M= 1 if age of X is > 79 years Write a computer program using language of your choice that returns complement membership of the above set. The input to the program is age of a person x and output is the complement of the graded membership to a person X between the closed interval [0,1]. 4 Consider the set of machines, M, and the set of people, P, defined as 8-10 follows: M = { set of all machines in a domain} e.g., M = { m1, m2, m3…, mn} where n =3
  • 3. Practical Problems based on the subject MBI 303: Advanced Algorithms Page 3 of 3 P = {set of people} e.g., P = { p1, p2, p3, …, pk} where k =3 The fuzzy relationship “generally comfortable” can be defined as: m1 m2 m3 p1 1.0 0.4 0.7 p2 0.8 1.0 0.6 p3 0.7 0.6 1.0 Write a program which takes machine identification M and person identification P and returns the degree of comfort of the given P on the given machine M. Also list the ideal machine for each person where the person is most comfortable. 5 Consider U = V = {1,2,3}. The relationship R of U*V, defined as 8-10 “approximately equal,” is a binary fuzzy relationship given by 1/(1,1), 1/(2,2), 1/(3,3), 0.8/(1,2), 0.8/(2,3), 0.8/(2,1), 0.4/(1,3), 0.8/(3,2) and 0.4/(3,1). Consider another relationship, S, of U*V in which x is considerably larger than y for ∀x∈U and ∀y∈V. The relationship S can be given as X/Y 1 2 3 1 0 0.6 0.8 2 0.6 0 0.6 3 0.8 0.6 0 Find and print (i) μR∩S(x,y) and (ii) μR∪S(x,y) 6 Develop a computer program which prints a menu on clears screen as 20 follows:
  • 4. Practical Problems based on the subject MBI 303: Advanced Algorithms Page 4 of 4 Lab Experiments on Fuzzy Logic ------------------------------------------ Program 1 Section 2 Fuzzy Logic Program 2 Section 2 Fuzzy Logic Program 3 Section 2 Fuzzy Logic Program 4 Section 2 Fuzzy Logic Program 5 Section 2 Fuzzy Logic Exit ------------------------------------------ Implement all the programs using functions or routines (in a single or different programs, as per your convenience). The program while execution should ask the users for his/her choice and perform function accordingly. If user gives invalid choice the program should print appropriate message. The program should be terminated only if the choice # 6 (Exit) is given by the user.
  • 5. Practical Problems based on the subject MBI 303: Advanced Algorithms Page 5 of 5 Genetic Algorithms Sr. Definition App. No. Marks 1. Write a program for single variable function optimization. Read valid 5-8 initial population (n individuals) through keyboard for Maximization of f (x). Where f (x, y) = x4 2 Write a program for single variable function optimization. Read valid 5-8 initial population (n individuals) through keyboard for Minimization of f (x). Where f (x, y) = x + x2 3 Write a program for double variable function optimization. Read valid 5-8 initial population of 10-bits (four individuals) through keyboard and scale the interval [0, 1) for Maximization of f (x, y). Where f (x, y) = yx2 – x4 4 Write a program for double variable function optimization. Read valid 5-8 initial population of 10-bits (four individuals) through keyboard and scale the interval [0, 1) for Minimization of f (x, y). Where f (x, y) = yx2 5 Simulation of operators 15-20 Mutation Cross-over Recombination operators Menu driven system 6 Traveling salesman problem 10-15