SlideShare une entreprise Scribd logo
1  sur  34
Artificial Intelligence
Project Presentation
Submitted by:
Group 11:
Ilias Ahmed, ID #16339202142.
Mohammad Saiful Islam, ID #16339202030.
Mohammad Mosharaaf Hossain, ID #16339202141.
Md. Alauddin, ID #16339202029.
Submitted by:
Group 11:
Ilias Ahmed, ID #16339202142.
Mohammad Saiful Islam, ID #16339202030.
Mohammad Mosharaaf Hossain, ID #16339202141.
Md. Alauddin, ID #16339202029.
Submitted to :
Husne Farah
Lecturer
Dept. of CSE
The People’s University of Bangladesh, Dkaka-1207.
Submitted to :
Husne Farah
Lecturer
Dept. of CSE
The People’s University of Bangladesh, Dkaka-1207.
1
Problem Solving by Searching
Search Methods :
 Breadth-First-Search
 Depth-First-Search
 Best-First-Search
2
BFS:- Breadth first search
BFS is a graph search algorithm that begins at the root node and
explores all the neighbouring nodes. Then for each of those nearest
nodes, it explores their unexplored neighbour nodes, and so on, until it
finds the goal. It is implemented by using queue.
A
B C D
E F
Status=1(ready)
Status=2(waiting)
Status=3(processed)
3
A
B C D
E F
A
Status=1
Status=2
Status=3
L0
L1
L2
QUEUE
OUTPUT
4
A
B C D
E F
A
B C D
Status=1
Status=3
Status=2
L0
L1
L2
QUEUE
OUTPUT
5
A
B C D
E F
A B
C D E
L0
L1
L2
Status=1
Status=2
Status=3
QUEUE
OUTPUT
6
A
B C D
E F
A B C
D E F
L0
L1
L2
Status=1
Status=2
Status=3
QUEUE
OUTPUT
7
A
B C D
E F
A B C D
E F
L0
L1
L2
Status=1
Status=2
Status=3
QUEUE
OUTPUT
8
A
B C D
E F
A B C D E
F
L0
L1
L2
Status=1
Status=2
Status=3
QUEUE
OUTPUT
9
A
B C D
E F
A B C D E F
L0
L1
L2
Status=1
Status=2
Status=3
QUEUE
OUTPUT
10
A
B C D
E F
BFS of the graph
11
Algorithm of BFS:-
STEP 1:- Initialize the status of all nodes to ready
status (status =1).
STEP 2:- Insert the starting node into the queue
and set its status to waiting (status=2).
STEP 3:- Continue step 4 and 5 until the queue is
empty.
STEP 4:- Delete the front node from the queue
and set its status to processed (status=3).
STEP 5:- Insert all the neighboring nodes (whose
status is ready) of the deleted node into the queue
and set their status to waiting (status=2).
STEP 6:- Exit.
12
Features of BFS:-
Space complexity
Space complexity is proportional to the number of nodes at
the deepest level. Given a branching factor b and graph depth
d the space complexity is the number of nodes at the deepest
level, O(b ).
Time complexity
Time complexity of breadth-first search is O(b ).
Completeness
Breadth-first search is complete.
Proof of Completeness
If the shallowest goal node is at some finite depth say d,
breadth-first search will eventually find it after expanding all
shallower nodes.
Optimality
For unit-step cost, breadth-first search is optimal.
d
d
13
Applications of BFS:-
• Finding all connected components in a graph.
• Finding all nodes within one connected component.
• Finding the shortest path between two nodes u and v in an
unweighted graph.
• Finding the shortest path between two nodes u and v in a
weighted graph..
• Compute a spanning forest of a graph.
14
DFS:- Depth first search
DFS is an uninformed search that progresses by expanding the first
child node of the search tree that appears and thus going deeper and
deeper until a goal node is found, or until it hits a node that has no
children. Then the search backtracks, returning to the most recent
node it has not finished exploring. It is implemented using a stack.
A
B C D
F GE
I J
15
A
B C D
F GE
I J
A
Stack
Output
16
A
B C D
F GE
I J
B
C
D
A
Stack
Output
17
A
B C D
F GE
I J
E
F
C
D
A B
Stack
Output
18
A
B C D
F GE
I J
A B E
I
F
C
D
Stack
Output
19
A
B C D
F GE
I J
A B E I
F
C
D
Stack
Output
20
A
B C D
F GE
I J
A B E I F
J
C
D
Stack
Output
21
A
B C D
F GE
I J
A B E I F J
C
D
Stack
Output
22
A
B C D
F GE
I J
A B E I F J C
D
Stack
Output
23
A
B C D
F GE
I J
A B E I F J C D
G
Stack
Output
24
A
B C D
F GE
I J
A B E I F J C D G
Stack
Output
25
A
B C D
F GE
I J
DFS of the graph
26
Algorithm of DFS:-
STEP 1:- Initialize the status of all nodes to ready
status (status=1).
STEP 2:- Push the starting node into the stack
(status=waiting=2).
STEP 3:- Continue step 4 and 5 until the stack is
empty.
STEP 4:- Pop the top node from the stack and set its
status to processed state (status=3).
STEP 5:- Push all the successors whose status is
ready; of the popped node into the stack and set their
status to waiting (status=2).
STEP 6:- Exit.
27
Time complexity
Since in the worst case depth-first search has to consider all
paths to all possible nodes the time complexity of depth-first
search is O(b ).
Space complexity
The space complexity is O(d) where d is the length of the
longest simple path in the graph.
Features of DFS:-
Completeness
Depth-first search is not complete.
Optimality
Depth-first search is not optimal.
d
28
Applications of DFS:-
• Finding whether there exists a path between the given
vertices.
• Find the connected components of a graph.
• Topological sorting.
• We can specialize the DFS algorithm to find a simple cycle.
• Solving puzzles with only one solution, such as mazes.
(DFS can be adapted to find all solutions to a maze by only
including nodes on the current path in the visited set.)
29
Best-First Search:-
Best-first search is a search algorithm which explores
a graph by expanding the most promising node chosen
according to a specified rule
best-first search" to refer specifically to a search
with a heuristic that attempts to predict how close
the end of a path is to a solution.
30
Algorithm :-
1.Remove the best node from OPEN, call it n, add it to
CLOSED. 2. If n is the goal state, backtRACK path to n
2.(through recorded parents) and return path.
3. Create n's successors.
4. For each successor do:
a.If it is not in CLOSED and it is not in OPEN: evaluate it, add it
to OPEN, and record its parent.
b. Otherwise, if this new path is better than previous one,
change its recorded parent. i. If it is not in OPEN add it to
OPEN. ii. Otherwise, adjust its priority in OPEN using this
new evaluation.
31
S
ABC
G F D
H
J M L
I
E
K
32
6
2
6
6
5
81314
5
7
0 11
10
Open : Close :
S {}
A(2),C(5),B(6) s
C(5),B(6),E(8),D(10) S,A
B(6),H(7),E(8),D(10) S,A,C
H(7),E(8(,D(10) ,G(13),G(14) S,A,C,B
I(8),J(6),E(8),D(10),F(13),G(14) S,A,C,B,H
L(0),M(1),K(1),J(6),E(8),D(10),F(13),G(14) S,A,C,B,H,I
M(1),K(1),J(6),…………………..G(14)
33
34

Contenu connexe

Tendances

Basic Blocks and Flow Graphs
Basic Blocks and Flow GraphsBasic Blocks and Flow Graphs
Basic Blocks and Flow GraphsJenny Galino
 
[Question Paper] Network Security (60:40 Pattern) [April / 2014]
[Question Paper] Network Security (60:40 Pattern) [April / 2014][Question Paper] Network Security (60:40 Pattern) [April / 2014]
[Question Paper] Network Security (60:40 Pattern) [April / 2014]Mumbai B.Sc.IT Study
 
[Question Paper] Network Security (60-40 Pattern) [April / 2014]
[Question Paper] Network Security (60-40 Pattern) [April / 2014][Question Paper] Network Security (60-40 Pattern) [April / 2014]
[Question Paper] Network Security (60-40 Pattern) [April / 2014]Mumbai B.Sc.IT Study
 
Internet Technology (May – 2016) [Revised Syllabus | Question Paper]
Internet Technology (May – 2016) [Revised Syllabus | Question Paper]Internet Technology (May – 2016) [Revised Syllabus | Question Paper]
Internet Technology (May – 2016) [Revised Syllabus | Question Paper]Mumbai B.Sc.IT Study
 
Basic blocks - compiler design
Basic blocks - compiler designBasic blocks - compiler design
Basic blocks - compiler designhmnasim15
 
E04011 03 3339
E04011 03 3339E04011 03 3339
E04011 03 3339IJMER
 
Internet Technology (October – 2016) [Revised Syllabus | Question Paper]
Internet Technology (October – 2016) [Revised Syllabus | Question Paper]Internet Technology (October – 2016) [Revised Syllabus | Question Paper]
Internet Technology (October – 2016) [Revised Syllabus | Question Paper]Mumbai B.Sc.IT Study
 
SMU MCA SUMMER 2014 ASSIGNMENTS
SMU MCA SUMMER 2014 ASSIGNMENTSSMU MCA SUMMER 2014 ASSIGNMENTS
SMU MCA SUMMER 2014 ASSIGNMENTSsolved_assignments
 
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
[Question Paper] Data Communication and Network Standards (Revised Course) [J...[Question Paper] Data Communication and Network Standards (Revised Course) [J...
[Question Paper] Data Communication and Network Standards (Revised Course) [J...Mumbai B.Sc.IT Study
 
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]Mumbai B.Sc.IT Study
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...Mumbai B.Sc.IT Study
 
[Question Paper] Introduction To Information Theory & Application (Old Course...
[Question Paper] Introduction To Information Theory & Application (Old Course...[Question Paper] Introduction To Information Theory & Application (Old Course...
[Question Paper] Introduction To Information Theory & Application (Old Course...Mumbai B.Sc.IT Study
 
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
Code optimization lecture
Code optimization lectureCode optimization lecture
Code optimization lecturePrashant Singh
 
[Question Paper] Network Security (75-25 Pattern) [November / 2015]
[Question Paper] Network Security (75-25 Pattern) [November / 2015][Question Paper] Network Security (75-25 Pattern) [November / 2015]
[Question Paper] Network Security (75-25 Pattern) [November / 2015]Mumbai B.Sc.IT Study
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016]
[Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016][Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016]
[Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016]Mumbai B.Sc.IT Study
 
D422 7-2 string hadeling
D422 7-2  string hadelingD422 7-2  string hadeling
D422 7-2 string hadelingOmkar Rane
 

Tendances (17)

Basic Blocks and Flow Graphs
Basic Blocks and Flow GraphsBasic Blocks and Flow Graphs
Basic Blocks and Flow Graphs
 
[Question Paper] Network Security (60:40 Pattern) [April / 2014]
[Question Paper] Network Security (60:40 Pattern) [April / 2014][Question Paper] Network Security (60:40 Pattern) [April / 2014]
[Question Paper] Network Security (60:40 Pattern) [April / 2014]
 
[Question Paper] Network Security (60-40 Pattern) [April / 2014]
[Question Paper] Network Security (60-40 Pattern) [April / 2014][Question Paper] Network Security (60-40 Pattern) [April / 2014]
[Question Paper] Network Security (60-40 Pattern) [April / 2014]
 
Internet Technology (May – 2016) [Revised Syllabus | Question Paper]
Internet Technology (May – 2016) [Revised Syllabus | Question Paper]Internet Technology (May – 2016) [Revised Syllabus | Question Paper]
Internet Technology (May – 2016) [Revised Syllabus | Question Paper]
 
Basic blocks - compiler design
Basic blocks - compiler designBasic blocks - compiler design
Basic blocks - compiler design
 
E04011 03 3339
E04011 03 3339E04011 03 3339
E04011 03 3339
 
Internet Technology (October – 2016) [Revised Syllabus | Question Paper]
Internet Technology (October – 2016) [Revised Syllabus | Question Paper]Internet Technology (October – 2016) [Revised Syllabus | Question Paper]
Internet Technology (October – 2016) [Revised Syllabus | Question Paper]
 
SMU MCA SUMMER 2014 ASSIGNMENTS
SMU MCA SUMMER 2014 ASSIGNMENTSSMU MCA SUMMER 2014 ASSIGNMENTS
SMU MCA SUMMER 2014 ASSIGNMENTS
 
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
[Question Paper] Data Communication and Network Standards (Revised Course) [J...[Question Paper] Data Communication and Network Standards (Revised Course) [J...
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
 
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
 
[Question Paper] Introduction To Information Theory & Application (Old Course...
[Question Paper] Introduction To Information Theory & Application (Old Course...[Question Paper] Introduction To Information Theory & Application (Old Course...
[Question Paper] Introduction To Information Theory & Application (Old Course...
 
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
 
Code optimization lecture
Code optimization lectureCode optimization lecture
Code optimization lecture
 
[Question Paper] Network Security (75-25 Pattern) [November / 2015]
[Question Paper] Network Security (75-25 Pattern) [November / 2015][Question Paper] Network Security (75-25 Pattern) [November / 2015]
[Question Paper] Network Security (75-25 Pattern) [November / 2015]
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016]
[Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016][Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016]
[Question Paper] Fundamentals of Digital Computing (Revised Course) [May / 2016]
 
D422 7-2 string hadeling
D422 7-2  string hadelingD422 7-2  string hadeling
D422 7-2 string hadeling
 

Similaire à artificial intelligence

Similaire à artificial intelligence (20)

Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)
 
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptxRiya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
 
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
 
Graph theory basics
Graph theory basicsGraph theory basics
Graph theory basics
 
Adsa u2 ver 1.0.
Adsa u2 ver 1.0.Adsa u2 ver 1.0.
Adsa u2 ver 1.0.
 
A star algorithms
A star algorithmsA star algorithms
A star algorithms
 
Analysis of Pathfinding Algorithms
Analysis of Pathfinding AlgorithmsAnalysis of Pathfinding Algorithms
Analysis of Pathfinding Algorithms
 
Link Prediction in the Real World
Link Prediction in the Real WorldLink Prediction in the Real World
Link Prediction in the Real World
 
Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4
 
Ai unit-4
Ai unit-4Ai unit-4
Ai unit-4
 
5 searching
5 searching5 searching
5 searching
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Data structure
Data structureData structure
Data structure
 
5.5 back tracking
5.5 back tracking5.5 back tracking
5.5 back tracking
 
Ai1.pdf
Ai1.pdfAi1.pdf
Ai1.pdf
 
BFS algo.ppt
BFS algo.pptBFS algo.ppt
BFS algo.ppt
 
Data structure note
Data structure noteData structure note
Data structure note
 
Presentation on BFS & Bellman Ford.pptx
Presentation on BFS & Bellman Ford.pptxPresentation on BFS & Bellman Ford.pptx
Presentation on BFS & Bellman Ford.pptx
 
Artificial Intelligence_Searching.pptx
Artificial Intelligence_Searching.pptxArtificial Intelligence_Searching.pptx
Artificial Intelligence_Searching.pptx
 
AI Lesson 04
AI Lesson 04AI Lesson 04
AI Lesson 04
 

Plus de ilias ahmed

We need parallel or series connections of n mos and pmos with a nmos source t...
We need parallel or series connections of n mos and pmos with a nmos source t...We need parallel or series connections of n mos and pmos with a nmos source t...
We need parallel or series connections of n mos and pmos with a nmos source t...ilias ahmed
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorialilias ahmed
 
Signle assignmentforbciit
Signle assignmentforbciitSignle assignmentforbciit
Signle assignmentforbciitilias ahmed
 
Compiler design lab
Compiler design labCompiler design lab
Compiler design labilias ahmed
 
Compiler designs presentation final
Compiler designs presentation  finalCompiler designs presentation  final
Compiler designs presentation finalilias ahmed
 
Compiler designs presentation by group 2 final final
Compiler designs presentation by group 2 final finalCompiler designs presentation by group 2 final final
Compiler designs presentation by group 2 final finalilias ahmed
 
Assmemble langauge for slideshare.net
Assmemble langauge for slideshare.netAssmemble langauge for slideshare.net
Assmemble langauge for slideshare.netilias ahmed
 
Phpfundamnetalfromtutplus
PhpfundamnetalfromtutplusPhpfundamnetalfromtutplus
Phpfundamnetalfromtutplusilias ahmed
 
Assignment complier design (GROUP1)
Assignment complier design (GROUP1)Assignment complier design (GROUP1)
Assignment complier design (GROUP1)ilias ahmed
 
Lisp programming
Lisp programmingLisp programming
Lisp programmingilias ahmed
 
Lispprograaming excercise
Lispprograaming excerciseLispprograaming excercise
Lispprograaming excerciseilias ahmed
 
Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)ilias ahmed
 
Data communications
Data communicationsData communications
Data communicationsilias ahmed
 
Microprocessor projec ts
Microprocessor projec tsMicroprocessor projec ts
Microprocessor projec tsilias ahmed
 
Oop features java presentationshow
Oop features java presentationshowOop features java presentationshow
Oop features java presentationshowilias ahmed
 

Plus de ilias ahmed (20)

We need parallel or series connections of n mos and pmos with a nmos source t...
We need parallel or series connections of n mos and pmos with a nmos source t...We need parallel or series connections of n mos and pmos with a nmos source t...
We need parallel or series connections of n mos and pmos with a nmos source t...
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
 
Signle assignmentforbciit
Signle assignmentforbciitSignle assignmentforbciit
Signle assignmentforbciit
 
Compiler design lab
Compiler design labCompiler design lab
Compiler design lab
 
Labreportofai
LabreportofaiLabreportofai
Labreportofai
 
Ailabreport
AilabreportAilabreport
Ailabreport
 
Compiler designs presentation final
Compiler designs presentation  finalCompiler designs presentation  final
Compiler designs presentation final
 
Compiler designs presentation by group 2 final final
Compiler designs presentation by group 2 final finalCompiler designs presentation by group 2 final final
Compiler designs presentation by group 2 final final
 
Assmemble langauge for slideshare.net
Assmemble langauge for slideshare.netAssmemble langauge for slideshare.net
Assmemble langauge for slideshare.net
 
Phpfundamnetalfromtutplus
PhpfundamnetalfromtutplusPhpfundamnetalfromtutplus
Phpfundamnetalfromtutplus
 
Assignment complier design (GROUP1)
Assignment complier design (GROUP1)Assignment complier design (GROUP1)
Assignment complier design (GROUP1)
 
Lisp programming
Lisp programmingLisp programming
Lisp programming
 
Lispprograaming excercise
Lispprograaming excerciseLispprograaming excercise
Lispprograaming excercise
 
Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)
 
Event design
Event designEvent design
Event design
 
Vlan
VlanVlan
Vlan
 
Data communications
Data communicationsData communications
Data communications
 
Microprocessor projec ts
Microprocessor projec tsMicroprocessor projec ts
Microprocessor projec ts
 
Oop features java presentationshow
Oop features java presentationshowOop features java presentationshow
Oop features java presentationshow
 
Sql functions
Sql functionsSql functions
Sql functions
 

Dernier

Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Dernier (20)

Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

artificial intelligence

  • 1. Artificial Intelligence Project Presentation Submitted by: Group 11: Ilias Ahmed, ID #16339202142. Mohammad Saiful Islam, ID #16339202030. Mohammad Mosharaaf Hossain, ID #16339202141. Md. Alauddin, ID #16339202029. Submitted by: Group 11: Ilias Ahmed, ID #16339202142. Mohammad Saiful Islam, ID #16339202030. Mohammad Mosharaaf Hossain, ID #16339202141. Md. Alauddin, ID #16339202029. Submitted to : Husne Farah Lecturer Dept. of CSE The People’s University of Bangladesh, Dkaka-1207. Submitted to : Husne Farah Lecturer Dept. of CSE The People’s University of Bangladesh, Dkaka-1207. 1
  • 2. Problem Solving by Searching Search Methods :  Breadth-First-Search  Depth-First-Search  Best-First-Search 2
  • 3. BFS:- Breadth first search BFS is a graph search algorithm that begins at the root node and explores all the neighbouring nodes. Then for each of those nearest nodes, it explores their unexplored neighbour nodes, and so on, until it finds the goal. It is implemented by using queue. A B C D E F Status=1(ready) Status=2(waiting) Status=3(processed) 3
  • 4. A B C D E F A Status=1 Status=2 Status=3 L0 L1 L2 QUEUE OUTPUT 4
  • 5. A B C D E F A B C D Status=1 Status=3 Status=2 L0 L1 L2 QUEUE OUTPUT 5
  • 6. A B C D E F A B C D E L0 L1 L2 Status=1 Status=2 Status=3 QUEUE OUTPUT 6
  • 7. A B C D E F A B C D E F L0 L1 L2 Status=1 Status=2 Status=3 QUEUE OUTPUT 7
  • 8. A B C D E F A B C D E F L0 L1 L2 Status=1 Status=2 Status=3 QUEUE OUTPUT 8
  • 9. A B C D E F A B C D E F L0 L1 L2 Status=1 Status=2 Status=3 QUEUE OUTPUT 9
  • 10. A B C D E F A B C D E F L0 L1 L2 Status=1 Status=2 Status=3 QUEUE OUTPUT 10
  • 11. A B C D E F BFS of the graph 11
  • 12. Algorithm of BFS:- STEP 1:- Initialize the status of all nodes to ready status (status =1). STEP 2:- Insert the starting node into the queue and set its status to waiting (status=2). STEP 3:- Continue step 4 and 5 until the queue is empty. STEP 4:- Delete the front node from the queue and set its status to processed (status=3). STEP 5:- Insert all the neighboring nodes (whose status is ready) of the deleted node into the queue and set their status to waiting (status=2). STEP 6:- Exit. 12
  • 13. Features of BFS:- Space complexity Space complexity is proportional to the number of nodes at the deepest level. Given a branching factor b and graph depth d the space complexity is the number of nodes at the deepest level, O(b ). Time complexity Time complexity of breadth-first search is O(b ). Completeness Breadth-first search is complete. Proof of Completeness If the shallowest goal node is at some finite depth say d, breadth-first search will eventually find it after expanding all shallower nodes. Optimality For unit-step cost, breadth-first search is optimal. d d 13
  • 14. Applications of BFS:- • Finding all connected components in a graph. • Finding all nodes within one connected component. • Finding the shortest path between two nodes u and v in an unweighted graph. • Finding the shortest path between two nodes u and v in a weighted graph.. • Compute a spanning forest of a graph. 14
  • 15. DFS:- Depth first search DFS is an uninformed search that progresses by expanding the first child node of the search tree that appears and thus going deeper and deeper until a goal node is found, or until it hits a node that has no children. Then the search backtracks, returning to the most recent node it has not finished exploring. It is implemented using a stack. A B C D F GE I J 15
  • 16. A B C D F GE I J A Stack Output 16
  • 17. A B C D F GE I J B C D A Stack Output 17
  • 18. A B C D F GE I J E F C D A B Stack Output 18
  • 19. A B C D F GE I J A B E I F C D Stack Output 19
  • 20. A B C D F GE I J A B E I F C D Stack Output 20
  • 21. A B C D F GE I J A B E I F J C D Stack Output 21
  • 22. A B C D F GE I J A B E I F J C D Stack Output 22
  • 23. A B C D F GE I J A B E I F J C D Stack Output 23
  • 24. A B C D F GE I J A B E I F J C D G Stack Output 24
  • 25. A B C D F GE I J A B E I F J C D G Stack Output 25
  • 26. A B C D F GE I J DFS of the graph 26
  • 27. Algorithm of DFS:- STEP 1:- Initialize the status of all nodes to ready status (status=1). STEP 2:- Push the starting node into the stack (status=waiting=2). STEP 3:- Continue step 4 and 5 until the stack is empty. STEP 4:- Pop the top node from the stack and set its status to processed state (status=3). STEP 5:- Push all the successors whose status is ready; of the popped node into the stack and set their status to waiting (status=2). STEP 6:- Exit. 27
  • 28. Time complexity Since in the worst case depth-first search has to consider all paths to all possible nodes the time complexity of depth-first search is O(b ). Space complexity The space complexity is O(d) where d is the length of the longest simple path in the graph. Features of DFS:- Completeness Depth-first search is not complete. Optimality Depth-first search is not optimal. d 28
  • 29. Applications of DFS:- • Finding whether there exists a path between the given vertices. • Find the connected components of a graph. • Topological sorting. • We can specialize the DFS algorithm to find a simple cycle. • Solving puzzles with only one solution, such as mazes. (DFS can be adapted to find all solutions to a maze by only including nodes on the current path in the visited set.) 29
  • 30. Best-First Search:- Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule best-first search" to refer specifically to a search with a heuristic that attempts to predict how close the end of a path is to a solution. 30
  • 31. Algorithm :- 1.Remove the best node from OPEN, call it n, add it to CLOSED. 2. If n is the goal state, backtRACK path to n 2.(through recorded parents) and return path. 3. Create n's successors. 4. For each successor do: a.If it is not in CLOSED and it is not in OPEN: evaluate it, add it to OPEN, and record its parent. b. Otherwise, if this new path is better than previous one, change its recorded parent. i. If it is not in OPEN add it to OPEN. ii. Otherwise, adjust its priority in OPEN using this new evaluation. 31
  • 32. S ABC G F D H J M L I E K 32 6 2 6 6 5 81314 5 7 0 11 10
  • 33. Open : Close : S {} A(2),C(5),B(6) s C(5),B(6),E(8),D(10) S,A B(6),H(7),E(8),D(10) S,A,C H(7),E(8(,D(10) ,G(13),G(14) S,A,C,B I(8),J(6),E(8),D(10),F(13),G(14) S,A,C,B,H L(0),M(1),K(1),J(6),E(8),D(10),F(13),G(14) S,A,C,B,H,I M(1),K(1),J(6),…………………..G(14) 33
  • 34. 34