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

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 

Dernier (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 

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