SlideShare a Scribd company logo
1 of 1
Download to read offline
Solve pathfinding using Breadth-First Search (BFS), Uniform-Cost Search (UCS) and A* Search.
You should base your program on the pseudocode GRAPH-SEARCH in the lecture slides, and
carefully think about the appropriate data structures to use. For A Search, you must implement two
heuristics: - Euclidean distance between current position and end position. - Manhattan distance
between current position and end position. For the map in Page 1 with start position (1,1) and end
position (10,10), your program should help you answer these questions: 1. Are the paths returned
by the three methods different? 2. What about the optimality of the returned paths? 3. Which
method is the most computationally and memory efficient? 4. Do the two heuristics for A Search
provide different solutions? 5. Does checking for repeated states matter in this problem?Write your
pathfinding program in Python 3 in a file called pathfinder.py. Your program must be able to be run
as follows: $ python pathfinder.py [map] [algorithm] [heuristic] The inputs/options to the program
are as follows. - [map] specifies the path to map, which is a text file formatted according to this
example (see next page): The first line indicates the size of the map (rows by columns), while the
second and third line represent the start and end positions respectively. The map data then
follows, where all elevation values are integers from 0 to 9 inclusive. - [algorithm] specifies the
search algorithm to use, with the possible values of bfs, ucs, and astar. - [heuristic] specifies the
heuristic to use for A search, with the possible values of euclidean and manhattan. This input is
ignored for BFS and UCS. Your program must then print to standard output the path returned by
the search algorithm, in the following format:where the path is indicated by asterisks '*'
superimposed on the original map beginning from the start position and leading to the end
position. Do not include extraneous spaces or other characters in the output. If the given map or
problem does not have a feasible path, your program must print null Again, do not include
extraneous spaces or other characters in the output. 1.3.1 Python libraries You are allowed to use
NumPy to write your pathfinding program. The marking program will not be able to run your
program to completion if other Python libraries are used.

More Related Content

Similar to Solve pathfinding using BreadthFirst Search BFS Uniform.pdf

I. Naive Robot Navigation ProblemDesign a program that uses the B.pdf
I. Naive Robot Navigation ProblemDesign a program that uses the B.pdfI. Naive Robot Navigation ProblemDesign a program that uses the B.pdf
I. Naive Robot Navigation ProblemDesign a program that uses the B.pdfstopgolook
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsguest084d20
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsguest084d20
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsguest084d20
 
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Erdi Karaçal
 
Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...
Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...
Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...Universitas Pembangunan Panca Budi
 
Graph Tea: Simulating Tool for Graph Theory & Algorithms
Graph Tea: Simulating Tool for Graph Theory & AlgorithmsGraph Tea: Simulating Tool for Graph Theory & Algorithms
Graph Tea: Simulating Tool for Graph Theory & AlgorithmsIJMTST Journal
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristicahmad bassiouny
 
TEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATION
TEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATIONTEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATION
TEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATIONcsandit
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.pptCheeWeiTan10
 
Hybrid iterated local search algorithm for optimization route of airplane tr...
Hybrid iterated local search algorithm for optimization route of  airplane tr...Hybrid iterated local search algorithm for optimization route of  airplane tr...
Hybrid iterated local search algorithm for optimization route of airplane tr...IJECEIAES
 
Contour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic MapsContour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic MapsCSCJournals
 
Object Elimination and Reconstruction Using an Effective Inpainting Method
Object Elimination and Reconstruction Using an Effective Inpainting MethodObject Elimination and Reconstruction Using an Effective Inpainting Method
Object Elimination and Reconstruction Using an Effective Inpainting MethodIOSR Journals
 
2004 map reduce simplied data processing on large clusters (mapreduce)
2004 map reduce simplied data processing on large clusters (mapreduce)2004 map reduce simplied data processing on large clusters (mapreduce)
2004 map reduce simplied data processing on large clusters (mapreduce)anh tuan
 

Similar to Solve pathfinding using BreadthFirst Search BFS Uniform.pdf (20)

I. Naive Robot Navigation ProblemDesign a program that uses the B.pdf
I. Naive Robot Navigation ProblemDesign a program that uses the B.pdfI. Naive Robot Navigation ProblemDesign a program that uses the B.pdf
I. Naive Robot Navigation ProblemDesign a program that uses the B.pdf
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Game Paper
Game PaperGame Paper
Game Paper
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
 
Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...
Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...
Heuristic Function Influence to the Global Optimum Value in Shortest Path Pro...
 
Ai1.pdf
Ai1.pdfAi1.pdf
Ai1.pdf
 
Graph Tea: Simulating Tool for Graph Theory & Algorithms
Graph Tea: Simulating Tool for Graph Theory & AlgorithmsGraph Tea: Simulating Tool for Graph Theory & Algorithms
Graph Tea: Simulating Tool for Graph Theory & Algorithms
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristic
 
TEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATION
TEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATIONTEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATION
TEXT EXTRACTION FROM RASTER MAPS USING COLOR SPACE QUANTIZATION
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.ppt
 
Hybrid iterated local search algorithm for optimization route of airplane tr...
Hybrid iterated local search algorithm for optimization route of  airplane tr...Hybrid iterated local search algorithm for optimization route of  airplane tr...
Hybrid iterated local search algorithm for optimization route of airplane tr...
 
Contour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic MapsContour Line Tracing Algorithm for Digital Topographic Maps
Contour Line Tracing Algorithm for Digital Topographic Maps
 
Object Elimination and Reconstruction Using an Effective Inpainting Method
Object Elimination and Reconstruction Using an Effective Inpainting MethodObject Elimination and Reconstruction Using an Effective Inpainting Method
Object Elimination and Reconstruction Using an Effective Inpainting Method
 
Map reduce
Map reduceMap reduce
Map reduce
 
2004 map reduce simplied data processing on large clusters (mapreduce)
2004 map reduce simplied data processing on large clusters (mapreduce)2004 map reduce simplied data processing on large clusters (mapreduce)
2004 map reduce simplied data processing on large clusters (mapreduce)
 
Bigdata analytics
Bigdata analyticsBigdata analytics
Bigdata analytics
 
Ijetr021215
Ijetr021215Ijetr021215
Ijetr021215
 
Ijetr021215
Ijetr021215Ijetr021215
Ijetr021215
 

More from kshitiz77

Spoints USING YOUR OWNWORDS explain the significance of th.pdf
Spoints USING YOUR OWNWORDS  explain the significance of th.pdfSpoints USING YOUR OWNWORDS  explain the significance of th.pdf
Spoints USING YOUR OWNWORDS explain the significance of th.pdfkshitiz77
 
Spirometer 12 Calculate the Minute Volume Minute Volume .pdf
Spirometer 12 Calculate the Minute Volume Minute Volume .pdfSpirometer 12 Calculate the Minute Volume Minute Volume .pdf
Spirometer 12 Calculate the Minute Volume Minute Volume .pdfkshitiz77
 
Specify any one structural and functional abnormality of the.pdf
Specify any one structural and functional abnormality of the.pdfSpecify any one structural and functional abnormality of the.pdf
Specify any one structural and functional abnormality of the.pdfkshitiz77
 
Special Senses Hearing and Somatic Senses Touch Review Ma.pdf
Special Senses Hearing and Somatic Senses Touch Review Ma.pdfSpecial Senses Hearing and Somatic Senses Touch Review Ma.pdf
Special Senses Hearing and Somatic Senses Touch Review Ma.pdfkshitiz77
 
Species i has 2n14 and species lil has 2n20 Give all poss.pdf
Species i has 2n14 and species lil has 2n20 Give all poss.pdfSpecies i has 2n14 and species lil has 2n20 Give all poss.pdf
Species i has 2n14 and species lil has 2n20 Give all poss.pdfkshitiz77
 
Species Richness S whole number S 3 Simpsons Dive.pdf
Species Richness S  whole number  S   3  Simpsons Dive.pdfSpecies Richness S  whole number  S   3  Simpsons Dive.pdf
Species Richness S whole number S 3 Simpsons Dive.pdfkshitiz77
 
Species of Drosophila that live only in wet tropical habitat.pdf
Species of Drosophila that live only in wet tropical habitat.pdfSpecies of Drosophila that live only in wet tropical habitat.pdf
Species of Drosophila that live only in wet tropical habitat.pdfkshitiz77
 
Southeastern Ontario is host to a number of orchid species .pdf
Southeastern Ontario is host to a number of orchid species .pdfSoutheastern Ontario is host to a number of orchid species .pdf
Southeastern Ontario is host to a number of orchid species .pdfkshitiz77
 
Source A 1 Using the data from the two sources Source A an.pdf
Source A 1 Using the data from the two sources Source A an.pdfSource A 1 Using the data from the two sources Source A an.pdf
Source A 1 Using the data from the two sources Source A an.pdfkshitiz77
 
Sosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdf
Sosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdfSosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdf
Sosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdfkshitiz77
 
Sosyal medya pazarlamas iin be 5 platform sein Facebook.pdf
Sosyal medya pazarlamas iin be 5 platform sein Facebook.pdfSosyal medya pazarlamas iin be 5 platform sein Facebook.pdf
Sosyal medya pazarlamas iin be 5 platform sein Facebook.pdfkshitiz77
 
Sosyal Sorun Sorusu Bildiiniz gibi insanlar geri dnme.pdf
Sosyal Sorun Sorusu   Bildiiniz gibi insanlar geri dnme.pdfSosyal Sorun Sorusu   Bildiiniz gibi insanlar geri dnme.pdf
Sosyal Sorun Sorusu Bildiiniz gibi insanlar geri dnme.pdfkshitiz77
 
Sosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdf
Sosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdfSosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdf
Sosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdfkshitiz77
 
Sorular ChoicePointin i modelinin pazarlama amalar iin .pdf
Sorular ChoicePointin i modelinin pazarlama amalar iin .pdfSorular ChoicePointin i modelinin pazarlama amalar iin .pdf
Sorular ChoicePointin i modelinin pazarlama amalar iin .pdfkshitiz77
 
soru metni Kresel evreye yant rnekleri unlar ierir Bi.pdf
soru metni  Kresel evreye yant rnekleri unlar ierir  Bi.pdfsoru metni  Kresel evreye yant rnekleri unlar ierir  Bi.pdf
soru metni Kresel evreye yant rnekleri unlar ierir Bi.pdfkshitiz77
 
Soru 9 Hennessy amp Associates ok yneticili Wilstead E.pdf
Soru 9 Hennessy amp Associates ok yneticili Wilstead E.pdfSoru 9 Hennessy amp Associates ok yneticili Wilstead E.pdf
Soru 9 Hennessy amp Associates ok yneticili Wilstead E.pdfkshitiz77
 
Soru 5 Bir rn gelitiren bir ekipte proje yneticisisiniz.pdf
Soru 5  Bir rn gelitiren bir ekipte proje yneticisisiniz.pdfSoru 5  Bir rn gelitiren bir ekipte proje yneticisisiniz.pdf
Soru 5 Bir rn gelitiren bir ekipte proje yneticisisiniz.pdfkshitiz77
 
Soru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdf
Soru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdfSoru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdf
Soru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdfkshitiz77
 
Soru 34 Senaryoyu inceleyin ve aadaki sorular tamamlayn .pdf
Soru 34  Senaryoyu inceleyin ve aadaki sorular tamamlayn  .pdfSoru 34  Senaryoyu inceleyin ve aadaki sorular tamamlayn  .pdf
Soru 34 Senaryoyu inceleyin ve aadaki sorular tamamlayn .pdfkshitiz77
 
SORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdf
SORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdfSORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdf
SORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdfkshitiz77
 

More from kshitiz77 (20)

Spoints USING YOUR OWNWORDS explain the significance of th.pdf
Spoints USING YOUR OWNWORDS  explain the significance of th.pdfSpoints USING YOUR OWNWORDS  explain the significance of th.pdf
Spoints USING YOUR OWNWORDS explain the significance of th.pdf
 
Spirometer 12 Calculate the Minute Volume Minute Volume .pdf
Spirometer 12 Calculate the Minute Volume Minute Volume .pdfSpirometer 12 Calculate the Minute Volume Minute Volume .pdf
Spirometer 12 Calculate the Minute Volume Minute Volume .pdf
 
Specify any one structural and functional abnormality of the.pdf
Specify any one structural and functional abnormality of the.pdfSpecify any one structural and functional abnormality of the.pdf
Specify any one structural and functional abnormality of the.pdf
 
Special Senses Hearing and Somatic Senses Touch Review Ma.pdf
Special Senses Hearing and Somatic Senses Touch Review Ma.pdfSpecial Senses Hearing and Somatic Senses Touch Review Ma.pdf
Special Senses Hearing and Somatic Senses Touch Review Ma.pdf
 
Species i has 2n14 and species lil has 2n20 Give all poss.pdf
Species i has 2n14 and species lil has 2n20 Give all poss.pdfSpecies i has 2n14 and species lil has 2n20 Give all poss.pdf
Species i has 2n14 and species lil has 2n20 Give all poss.pdf
 
Species Richness S whole number S 3 Simpsons Dive.pdf
Species Richness S  whole number  S   3  Simpsons Dive.pdfSpecies Richness S  whole number  S   3  Simpsons Dive.pdf
Species Richness S whole number S 3 Simpsons Dive.pdf
 
Species of Drosophila that live only in wet tropical habitat.pdf
Species of Drosophila that live only in wet tropical habitat.pdfSpecies of Drosophila that live only in wet tropical habitat.pdf
Species of Drosophila that live only in wet tropical habitat.pdf
 
Southeastern Ontario is host to a number of orchid species .pdf
Southeastern Ontario is host to a number of orchid species .pdfSoutheastern Ontario is host to a number of orchid species .pdf
Southeastern Ontario is host to a number of orchid species .pdf
 
Source A 1 Using the data from the two sources Source A an.pdf
Source A 1 Using the data from the two sources Source A an.pdfSource A 1 Using the data from the two sources Source A an.pdf
Source A 1 Using the data from the two sources Source A an.pdf
 
Sosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdf
Sosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdfSosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdf
Sosyal Medya ve Mizah Stokers 1895te Alfred Stokern kuma .pdf
 
Sosyal medya pazarlamas iin be 5 platform sein Facebook.pdf
Sosyal medya pazarlamas iin be 5 platform sein Facebook.pdfSosyal medya pazarlamas iin be 5 platform sein Facebook.pdf
Sosyal medya pazarlamas iin be 5 platform sein Facebook.pdf
 
Sosyal Sorun Sorusu Bildiiniz gibi insanlar geri dnme.pdf
Sosyal Sorun Sorusu   Bildiiniz gibi insanlar geri dnme.pdfSosyal Sorun Sorusu   Bildiiniz gibi insanlar geri dnme.pdf
Sosyal Sorun Sorusu Bildiiniz gibi insanlar geri dnme.pdf
 
Sosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdf
Sosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdfSosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdf
Sosisli sandvi pazarnda sr eti fiyat ykseldiinde ve sosis.pdf
 
Sorular ChoicePointin i modelinin pazarlama amalar iin .pdf
Sorular ChoicePointin i modelinin pazarlama amalar iin .pdfSorular ChoicePointin i modelinin pazarlama amalar iin .pdf
Sorular ChoicePointin i modelinin pazarlama amalar iin .pdf
 
soru metni Kresel evreye yant rnekleri unlar ierir Bi.pdf
soru metni  Kresel evreye yant rnekleri unlar ierir  Bi.pdfsoru metni  Kresel evreye yant rnekleri unlar ierir  Bi.pdf
soru metni Kresel evreye yant rnekleri unlar ierir Bi.pdf
 
Soru 9 Hennessy amp Associates ok yneticili Wilstead E.pdf
Soru 9 Hennessy amp Associates ok yneticili Wilstead E.pdfSoru 9 Hennessy amp Associates ok yneticili Wilstead E.pdf
Soru 9 Hennessy amp Associates ok yneticili Wilstead E.pdf
 
Soru 5 Bir rn gelitiren bir ekipte proje yneticisisiniz.pdf
Soru 5  Bir rn gelitiren bir ekipte proje yneticisisiniz.pdfSoru 5  Bir rn gelitiren bir ekipte proje yneticisisiniz.pdf
Soru 5 Bir rn gelitiren bir ekipte proje yneticisisiniz.pdf
 
Soru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdf
Soru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdfSoru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdf
Soru 3 Kimyasallarn her birinin suda zndkten sonra bile.pdf
 
Soru 34 Senaryoyu inceleyin ve aadaki sorular tamamlayn .pdf
Soru 34  Senaryoyu inceleyin ve aadaki sorular tamamlayn  .pdfSoru 34  Senaryoyu inceleyin ve aadaki sorular tamamlayn  .pdf
Soru 34 Senaryoyu inceleyin ve aadaki sorular tamamlayn .pdf
 
SORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdf
SORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdfSORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdf
SORU 29 1 Avery MacLeod ve McCartynin deneyinde farelere.pdf
 

Recently uploaded

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
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
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
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
 
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
 
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
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 

Recently uploaded (20)

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
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
 
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
 
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)
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 

Solve pathfinding using BreadthFirst Search BFS Uniform.pdf

  • 1. Solve pathfinding using Breadth-First Search (BFS), Uniform-Cost Search (UCS) and A* Search. You should base your program on the pseudocode GRAPH-SEARCH in the lecture slides, and carefully think about the appropriate data structures to use. For A Search, you must implement two heuristics: - Euclidean distance between current position and end position. - Manhattan distance between current position and end position. For the map in Page 1 with start position (1,1) and end position (10,10), your program should help you answer these questions: 1. Are the paths returned by the three methods different? 2. What about the optimality of the returned paths? 3. Which method is the most computationally and memory efficient? 4. Do the two heuristics for A Search provide different solutions? 5. Does checking for repeated states matter in this problem?Write your pathfinding program in Python 3 in a file called pathfinder.py. Your program must be able to be run as follows: $ python pathfinder.py [map] [algorithm] [heuristic] The inputs/options to the program are as follows. - [map] specifies the path to map, which is a text file formatted according to this example (see next page): The first line indicates the size of the map (rows by columns), while the second and third line represent the start and end positions respectively. The map data then follows, where all elevation values are integers from 0 to 9 inclusive. - [algorithm] specifies the search algorithm to use, with the possible values of bfs, ucs, and astar. - [heuristic] specifies the heuristic to use for A search, with the possible values of euclidean and manhattan. This input is ignored for BFS and UCS. Your program must then print to standard output the path returned by the search algorithm, in the following format:where the path is indicated by asterisks '*' superimposed on the original map beginning from the start position and leading to the end position. Do not include extraneous spaces or other characters in the output. If the given map or problem does not have a feasible path, your program must print null Again, do not include extraneous spaces or other characters in the output. 1.3.1 Python libraries You are allowed to use NumPy to write your pathfinding program. The marking program will not be able to run your program to completion if other Python libraries are used.