Paper
13 October 2022 Basic search algorithms in Python
Author Affiliations +
Proceedings Volume 12287, International Conference on Cloud Computing, Performance Computing, and Deep Learning (CCPCDL 2022); 1228704 (2022) https://doi.org/10.1117/12.2640473
Event: International Conference on Cloud Computing, Performance Computing, and Deep Learning (CCPCDL 2022), 2022, Wuhan, China
Abstract
The research is mainly about the Python implementation of three basic algorithms: Depth-First Search, Breadth-First Search and A* Search. Besides, the paper introduces some of the auxiliary knowledge and theories: the four criteria for measuring algorithms, three kinds of queues, and grid-based simulation. While other coding languages like C++ and Java may focus on algorithm more and may have lots of templates and other solved works, Python seem not to focus so much on this, and OOP (object-oriented programming) is the major topic of high-level Python coding. Thus, constructing algorithms and mapping (or simulating real-world situations) indeed become a challenge.In this work, two simulations are made by generating classes: 1. grid-based world 2. graph and vertex. Grid based world introduces coordinates and heuristic functions, which constructs the environment suitable for greedy algorithms. Graph and vertex use nodes to represent different states in the of the world, and using frontier-based search, the nodes will be explored step by step from the initial state until the goal state is reached. After the environment and algorithms are constructed, finally, analysis for the three algorithms are presented in the conclusion part according to the criteria mentioned.
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Xiaomeng Ye "Basic search algorithms in Python", Proc. SPIE 12287, International Conference on Cloud Computing, Performance Computing, and Deep Learning (CCPCDL 2022), 1228704 (13 October 2022); https://doi.org/10.1117/12.2640473
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Evolutionary algorithms

Associative arrays

Algorithms

Computer simulations

Analytical research

Mathematics

Visualization

Back to Top