SlideShare a Scribd company logo
1 of 79
AI Logic &
Application Solving Steps
Presented by
Mr. Ramesh Kumar
Professor, CSE Deptt.,
B.I.T. ,Durg
CROSS AND KNOUGHT
PLAYER A
PLAYER B
CROSS AND KNOUGHT
= 4
= 5
V=VALUE
V=1
LEVEL 1
Sailor Problem
One sailor was once stranded on a island. The
seaman had nothing very much to do, so they
whiled away and found a pile of gems. He
started collecting the gems in his bag, but bag
was only suitable for 11 k.g. So he weighed the
different gems i.e. Emerald , Ruby and Topaz of
3 k.g.,2 k.g. and 2 k.g. respectively. The market
price for Emerald, Ruby and Topaz were Rs.
4000, 3000.and 1000 respectively. So what
combination he had taken which had given him
maximum money value.
SOLUTION
Max Z = 4X1+3X2+X3
Subject to constraint
3 X1+2 X2+2 X3 <= 11
X1,X2,X3 => 0 and integer
X2=5.5
X=5
X1=0.33
X2=4
X1=1
X2=5
X3=0.5
X2≥6X2≤5
X1≥1X1≤0
infeasible
16
15.5
P0 =16.5
SOLUTION
Husband & Wife Problem
Three married couples are to cross a river in a boat
which can hold only two person, one of whom must
row the boat. Each of the three husband is a jealous
man, who will not allow his wife to be left in the
company of other man.Show how the jealous
husband and their wife can a complies the trip river
Husband wife problem
Left bank
Right bank
river
boat
Husband wife problem
Left bank
Right bank
river
boat
s
o
l
u
t
i
o
LEFT BANK RIVER RIGHT BANK
W1w2w3h1h2h3 w1w2 W1w2
W3w2h1h2h3 W2 w1
H1h2h3 W2w3 W2w3w1
H1h2h3w3 W3 W2w1
H3w3 H1h2 H1h2w1w2
H1h3w3w1 H1w1 H2w2
W3w1 H3h1 H2w2h3h1
W1w2w3 W2 H1h2h3
w1 W3w2 H2h3h1w3w2
w1w2 W2 H2h3h1w3
0 w1w2 h1h2h3w1w2w3
SOLUTION
CAPTURE GAME
LEGAL MOVES- 1 PLACE HORIZOTAL VERTICAL DIOGANAL
CAPTURE GAME
SOME EXAMPLE
Distance = 4
Distance = 5
Distance = 3
Distance = 3
Initial
State
Goal
State
2 8 3
1 6 4
7 5
1 2 3
8 4
7 6 5
Tiles
Puzzle
SOLUTION
Tiles
Puzzle
Initial
State
Goal
State
R B R
B R B
R B R
R R R
R R B
B B B
ASSIGNMENT
FORMER FOX GOOSE AND GRAIN PROBLEM
Consider the farmer-fox-goose-grain
puzzle. In this puzzle, a farmer wishes
to cross a river taking his fox, goose
and grain with him. He can use a
boat, which will accommodate only
the farmer and one possession. If the
fox is left alone with eat grain. Give
the solution for it.
SOLUTION
PLAYERS POSITION
SNICKER
PLAYER A
PLAYER B
SNICKER GAME
PLAYERS POSITION AFTER SOME MOVE
PLAYER A
PLAYER B
KOIENBERG’S PROBLEM
SOLUTION
The Missionaries and Cannibals
Problem
Three missionaries and three cannibals find themselves on one
side of a river. They have agreed that they would all like to get to
the other side. But the missionaries are not sure what else the
cannibals have agreed to. So the missionaries want to manage the
trip across the river in such a way that the number of missionaries
on either side of the river is never less than the number of
cannibals who are on the same side. The only boat available holds
only two people at a time. How can every one get across the river
without the missionaries risking being eaten?
MISSIONARIES & CANNIBALS
Left bank
Right bank
river
boat
MISSIONARIES & CANNIBALS
Left bank
Right bank
river
boat
CC CC
C C
MC MC
MM MM
M M
LEGAL MOVES
CC BMMMC
CCCB MMM
C BCC MMM
CCB CMMM
BCCCMMM
C
CC
C
CC
X
SOLUTION
MMMCCCB
MMMC BCC
MMM CC B C
MMM BCCC
MMMCB CC
MC BMMCC
MMCCB MC
CC
C
CC
C
MM
MC
MM
X
Cryptarithmatic
Initial state
M=1
S=8 or 9
O=0 or 1-O=0
N=E or E+1-N
=E+1
C2=1
N+R>8
E<>9
N=3
R=8OR 9
2+D = Y OR 2+D
=10+Y
2=D=Y
N+R=1
0 +E
R=9
S=8
2+D= 10+Y
D=8+Y
D=8OR 9
Y=0 Y=1
CONFLICT CONFLICT
D=8 D=9
C1=1
C1=0
E=2
SEND
MORE
MONEY
9567
1085
10652
BEST
MADE
MASER
CROSS
ROADS
DANGER
9567
1085
10652
96233
62513
158746
ASSIGNMENT
Coin Problem
You are given twelve apparently identical
coin one of which is counterfeit, weighing
less than the eleven others which are all of
the same weight. Given only an equal arm
balance, determine the counterfeit coin in
no more than three weighing.
D:E G:H J:K
ROOT
A-F : G-L
A B C D E F G H I J K L
G-I:J-LA-C:D-F
A:B
EIGHT QUEEN PROBLEM
PEG JUMPPING PROBLEM
WATER JUG PROBLEM
Three highwaymen robbed a gentleman of
Ujjain of a bottle containing 24 cc of a precious,
hitherto unpatented, aviation lubricant, While
fleeing, they met a glass blower, from whom
they purchased three vessels, On reaching a
secluded place, they wished to divide their
booty, but found that their vessels could hold
13, 11 and 5 cc respectively . How could they
divide their loot into equal portions.
24 13 11 5
24 0 0 0
0 13 11 0
0 13 6 5
0 8 11 5
8 0 11 5
8 13 3 0
8 8 3 5
8 8 8 0
Solution
B B B W W W E
B=BLUE
W=WHITE
E=EMPTY
LEGAL MOVES
Any block can move adjacent
empty place or can jump one block
only
B B B W W W E
Initial State
Goal State
BLOCK PROBLEM
LOGIC COUNT 0 FOR RIGHT PLACE
COUNT 1 FOR WRONG PLACE OF BLOCK
Chess game
CONSTRAINT SATISFACTION
CONSTRAINT SATISFACTION
A R H S I M A H
S A R O J I N I R K
B H T S O U
Y S S M A R M
A E I N B S K D A H
M D M H A O R A S
R N P S G R W N E
H A I O H A I D
S P H E R N P
M P G L G
Conclusion
Initial state
State space
Path or Chain
Searching or Inferencing
Goal state
Solution steps for Application
CASE
STUDY
HOME
DOCTOR
EXPERT SYSTEM CHILDHOOD DISEASES
DISEASES SYMPTOM
DECISION TABLE
LOVE
John
Marry
ROMANTIC PLATONIC FAMILIAL
UNREQUITED
LOVE AFFAIRS
NO MARRIAGE MARRIAGE
DIVORCE COUPLE
KIDS NO KIDS
Love
Familial Love Platonic Love
Romantic Love
Unrequited Love Affair
Marriage
Husband:
Kids:
House:
Happy Marriage Unhappy Marriage
Speaker
contribution
Case - 1
Virtual
voting
machine
CLICK YOUR STATE
CLICK YOUR DISTRICT
CLICK YOUR CONSTITUTIONAL AREA
VOTER LIST
Sr.
No.
Name Fathers’
Name
Age Sex Address
01. aaa zbbb 45 M asdfr
02 ccc ddd 34 f qweds
03 eee fff 45 f asder
04 ggg hhh 23 m qscfr
05 iii jjj 31 m fght
ENTER PASSWORD
XXXXXXX
CAST YOUR VOTE
Final view
Sr.
No.
Name Fathers’
Name
Age Sex Address
01. Salman Arbaz 45 M Faridnagar
ENTER PASSWORD
XXXXXXX
Intelligent
Security
system
Case - 2
Person Preliminary
area
Main area Premises
Manual
checkup
INTELLIGENT SECURITY
SYSTEM
Finger Print
Scanner
Weight
Sensor
Face Recognition, Retina
Recognition, Height
Measurement,
Shoe ID
Metal Detector
Step Distance No. of Steps
MAIN AREA PRELIMILARY AREA
D
I
A
G
R
A
M
A
T
I
C
V
I
E
W
Door for manual check
Logic
If finger recognition
AND face recognition
AND retina recognition
OR height
OR weight
OR body smell
OR shoe sole id
OR Magnetic id
OR Metal detector
OR behavior
OR Number of steps
OR Avg. distance between steps
THEN person n
ELSE intruder
LOGIC
Property Person 1 Person2 Person n
Observed Stored in
Database
Observed Stored in
Database
Observed Stored in
Database
Weight 50 kg
Height 5ft 7”
Finger Scan 12345
Retina scan 5647
Face
recognition
2346
Body smell 5678
Shoe sole 9876
Magnetic Id 1267
Metal
Detector
9087
Behavior 3456
Number of
steps
5
Distance
between steps
1 ft
TABLE
Intelligent Interactive
Communication
Man with Machine
HUMAN BEHAVIOUR
TYPES OF SENSOR
• For Heart Beat
• For Blood Pressure
• For ECG
• For Skin Temperature
• For Key Strokes
• For Audio & Video
Types of instrument
•ECG
•Stethoscope
•Galvactivator
•Web Camera
Steps of operation
Step 1 Sensors measure the physiological behavior of
user
Step2 These signals which is in analog nature, requires
conversion in digital form by using A/D converter
Step3 Converted signals now be given to source computer
Step4 This signal now be sent parallel with message to
destination computer with processing
Step5 At destination end user will get two information.
First the message and second the physiological signal as
message
Step 6 The physiological signal can be interpreted as
normal or abnormal according to scale
Step7 Same process at destination end also
INTERFACING OF VARIOUS SESNSOR
Connection
to Heart
Connection
to Wrist
Connection
to Ankle
CAPTURING OF INTERNAL
BEHAVIOUR – EXTERNALLY
Sensor/
Transducer
WORKING
A /D
Converter
Captured
Signals of
Human Body
A /D
Converter
Captured
Signals of
Human Body
COMMUNICATION
INTELEGENT COMMUNICATION-
NORMAL
Females are intelligent because their
name ends with letter A,I
INTELEGENT COMMUNICATION-
ABNORMAL
Females are intelligent because their
name ends with letter A,I
VIEW OF COMMUNICATION
Females are intelligent because
their name ends with letter A,I
Senders Reflection at destination System
Confused surprised
humorous
puzzledmaterialistic
ADVANTAGES
• Reliable communication in real sense
• Can be distinguished as chat, real or
entertainment
• Interactive with emotion or sentiments
• True message
• One can depend on message
 No blackmailing
 He/she may be a sociopath, a
psychopath, or simply a good liar
Disadvantages
•Not reliable very much in professional liar
•Every were not possible
•Restriction makes person extra precautionary
•Cost
•No scientific process of evaluation.
•Scaling is difficult
•Psychological effect of fear ness
•Legal reason
References
 Multimedia An introduction - John Villamil-
Casanova
 Prentice hall/Macmillan computer publishing reprint
 Multi media computing, communication &
applications-Ralf Steinmetz & Klara Nahrstedt
 Innovative technology series
 IP Telephony –Bill Douskalis
 Pearson Education Asia publication
 WWW.doc.ic.ac.uk..
Special Thank to
Sanjeev Shrivastava
Thanks for Patience
Thanks ,
for your
patience

More Related Content

What's hot

What's hot (20)

Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star search
 
N queen problem
N queen problemN queen problem
N queen problem
 
pushdown automata
pushdown automatapushdown automata
pushdown automata
 
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translation
 
Machine learning Lecture 2
Machine learning Lecture 2Machine learning Lecture 2
Machine learning Lecture 2
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoning
 
0 1 knapsack using branch and bound
0 1 knapsack using branch and bound0 1 knapsack using branch and bound
0 1 knapsack using branch and bound
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Fuzzy arithmetic
Fuzzy arithmeticFuzzy arithmetic
Fuzzy arithmetic
 
Bayesian networks in AI
Bayesian networks in AIBayesian networks in AI
Bayesian networks in AI
 
Searching Algorithm
Searching AlgorithmSearching Algorithm
Searching Algorithm
 
Graph Based Clustering
Graph Based ClusteringGraph Based Clustering
Graph Based Clustering
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Planning in AI(Partial order planning)
Planning in AI(Partial order planning)Planning in AI(Partial order planning)
Planning in AI(Partial order planning)
 
Database Management System [DBMS]
Database Management System [DBMS]Database Management System [DBMS]
Database Management System [DBMS]
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 

Similar to Ai & expert introduction

Summer_Holiday_home_work__class_9_2023.pdf
Summer_Holiday_home_work__class_9_2023.pdfSummer_Holiday_home_work__class_9_2023.pdf
Summer_Holiday_home_work__class_9_2023.pdf
VanshuMugvana
 
Fichas egipto
Fichas egiptoFichas egipto
Fichas egipto
sea79
 

Similar to Ai & expert introduction (8)

inteGIRLS Puzzle Packet
inteGIRLS Puzzle PacketinteGIRLS Puzzle Packet
inteGIRLS Puzzle Packet
 
Summer_Holiday_home_work__class_9_2023.pdf
Summer_Holiday_home_work__class_9_2023.pdfSummer_Holiday_home_work__class_9_2023.pdf
Summer_Holiday_home_work__class_9_2023.pdf
 
Redes sicomoro
Redes sicomoroRedes sicomoro
Redes sicomoro
 
G4mathpp
G4mathppG4mathpp
G4mathpp
 
Logic Q & A
Logic Q & ALogic Q & A
Logic Q & A
 
General quiz finale - Varsha'13
General quiz finale - Varsha'13General quiz finale - Varsha'13
General quiz finale - Varsha'13
 
Q3_L10-ProblemSolvingInvolvingPermutationandCombination.pptx
Q3_L10-ProblemSolvingInvolvingPermutationandCombination.pptxQ3_L10-ProblemSolvingInvolvingPermutationandCombination.pptx
Q3_L10-ProblemSolvingInvolvingPermutationandCombination.pptx
 
Fichas egipto
Fichas egiptoFichas egipto
Fichas egipto
 

More from Ramesh Kumar

More from Ramesh Kumar (20)

Cognitive learning
Cognitive learningCognitive learning
Cognitive learning
 
Finger print after death
Finger print after deathFinger print after death
Finger print after death
 
Basics of Deep learning
Basics of Deep learningBasics of Deep learning
Basics of Deep learning
 
Ac recycle use
Ac recycle useAc recycle use
Ac recycle use
 
is Old and baby same?
is Old and baby same?is Old and baby same?
is Old and baby same?
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Selfie - A Technologcal Art alias Snapchat
Selfie - A Technologcal Art alias SnapchatSelfie - A Technologcal Art alias Snapchat
Selfie - A Technologcal Art alias Snapchat
 
Engineering Syllabus Design Factor
Engineering Syllabus Design FactorEngineering Syllabus Design Factor
Engineering Syllabus Design Factor
 
Recent trends and bio-mimics in computer science
Recent trends and bio-mimics in computer scienceRecent trends and bio-mimics in computer science
Recent trends and bio-mimics in computer science
 
Human sense based Robot
Human sense based RobotHuman sense based Robot
Human sense based Robot
 
Color and road accident with solution
Color and road accident with solutionColor and road accident with solution
Color and road accident with solution
 
Mobile problem
Mobile problemMobile problem
Mobile problem
 
Antidepresion lect 1
Antidepresion lect 1Antidepresion lect 1
Antidepresion lect 1
 
Innovative enterprenur
Innovative enterprenurInnovative enterprenur
Innovative enterprenur
 
Mobile Computing Applications in Adolescents problem
Mobile Computing Applications in Adolescents problemMobile Computing Applications in Adolescents problem
Mobile Computing Applications in Adolescents problem
 
Guide
GuideGuide
Guide
 
Env. mon
Env. monEnv. mon
Env. mon
 
Carrer counselling
Carrer counsellingCarrer counselling
Carrer counselling
 
Moems.ppt
Moems.pptMoems.ppt
Moems.ppt
 
Professional society
Professional societyProfessional society
Professional society
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

Ai & expert introduction