SlideShare a Scribd company logo
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

More Related Content

What's hot

Basic Blocks and Flow Graphs
Basic Blocks and Flow GraphsBasic Blocks and Flow Graphs
Basic Blocks and Flow Graphs
Jenny 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 design
hmnasim15
 
E04011 03 3339
E04011 03 3339E04011 03 3339
E04011 03 3339
IJMER
 
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 ASSIGNMENTS
solved_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 lecture
Prashant 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 hadeling
Omkar Rane
 

What's hot (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
 

Similar to artificial intelligence

Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)
Shuvongkor Barman
 
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
RIYABEPARI
 
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
RaviKiranVarma4
 
Graph theory basics
Graph theory basicsGraph theory basics
Graph theory basics
Alexey Tokar
 
Adsa u2 ver 1.0.
Adsa u2 ver 1.0.Adsa u2 ver 1.0.
Adsa u2 ver 1.0.
Dr. C.V. Suresh Babu
 
A star algorithms
A star algorithmsA star algorithms
A star algorithms
sandeep54552
 
Analysis of Pathfinding Algorithms
Analysis of Pathfinding AlgorithmsAnalysis of Pathfinding Algorithms
Analysis of Pathfinding Algorithms
SigSegVSquad
 
Link Prediction in the Real World
Link Prediction in the Real WorldLink Prediction in the Real World
Link Prediction in the Real World
Balaji Ganesan
 
Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4
Subash Chandra Pakhrin
 
Ai unit-4
Ai unit-4Ai unit-4
5 searching
5 searching5 searching
5 searching
ashish bansal
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Rajamanickam Gomathijayam
 
Data structure
Data structureData structure
Data structure
lalithambiga kamaraj
 
5.5 back tracking
5.5 back tracking5.5 back tracking
5.5 back tracking
Krish_ver2
 
Ai1.pdf
Ai1.pdfAi1.pdf
Ai1.pdf
kaxeca4096
 
BFS algo.ppt
BFS algo.pptBFS algo.ppt
BFS algo.ppt
SandeepRanjan26
 
Data structure note
Data structure noteData structure note
Data structure note
Muhammad Nawaz
 
Presentation on BFS & Bellman Ford.pptx
Presentation on BFS & Bellman Ford.pptxPresentation on BFS & Bellman Ford.pptx
Presentation on BFS & Bellman Ford.pptx
MejanurRahmanJunayed
 
Artificial Intelligence_Searching.pptx
Artificial Intelligence_Searching.pptxArtificial Intelligence_Searching.pptx
Artificial Intelligence_Searching.pptx
Ratnakar Mikkili
 
AI Lesson 04
AI Lesson 04AI Lesson 04
AI Lesson 04
Assistant Professor
 

Similar to 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
 

More from 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-tutorial
ilias ahmed
 
Signle assignmentforbciit
Signle assignmentforbciitSignle assignmentforbciit
Signle assignmentforbciit
ilias ahmed
 
Compiler design lab
Compiler design labCompiler design lab
Compiler design lab
ilias ahmed
 
Labreportofai
LabreportofaiLabreportofai
Labreportofai
ilias ahmed
 
Ailabreport
AilabreportAilabreport
Ailabreport
ilias ahmed
 
Compiler designs presentation final
Compiler designs presentation  finalCompiler designs presentation  final
Compiler designs presentation final
ilias 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 final
ilias ahmed
 
Assmemble langauge for slideshare.net
Assmemble langauge for slideshare.netAssmemble langauge for slideshare.net
Assmemble langauge for slideshare.net
ilias ahmed
 
Phpfundamnetalfromtutplus
PhpfundamnetalfromtutplusPhpfundamnetalfromtutplus
Phpfundamnetalfromtutplus
ilias 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 programming
ilias ahmed
 
Lispprograaming excercise
Lispprograaming excerciseLispprograaming excercise
Lispprograaming excercise
ilias 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
 
Event design
Event designEvent design
Event design
ilias ahmed
 
Vlan
VlanVlan
Data communications
Data communicationsData communications
Data communications
ilias ahmed
 
Microprocessor projec ts
Microprocessor projec tsMicroprocessor projec ts
Microprocessor projec ts
ilias ahmed
 
Oop features java presentationshow
Oop features java presentationshowOop features java presentationshow
Oop features java presentationshow
ilias ahmed
 
Sql functions
Sql functionsSql functions
Sql functions
ilias ahmed
 

More from 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
 

Recently uploaded

NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 

Recently uploaded (20)

NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 

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