Optimization of Breadth-First Search Algorithm for Path Solutions in Mazyin Games

Bonifacius Vicky Indriyono, Widyatmoko
{"title":"Optimization of Breadth-First Search Algorithm for Path Solutions in Mazyin Games","authors":"Bonifacius Vicky Indriyono, Widyatmoko","doi":"10.25139/ijair.v3i2.4256","DOIUrl":null,"url":null,"abstract":"A game containing elements of artificial intelligence, of course, requires an algorithm in its application. One example of a game that includes elements of artificial intelligence is the Labyrinth game. Maze is a simple educational game. This game is known as finding a way out of the maze to arrive at a predetermined goal. The labyrinth encounters numerous obstacles along the way, such as dead ends and parapets, to reach the target location. In this game, players are required to think logically about how to find the right maze path. The obstacle faced in this game is that sometimes players have difficulty finding a way out, especially if the game level has reached a high level in the process of finding a way out. To solve this problem, a graph tracing technique is needed. The Breadth-First Search (BFS) strategy can be used in conjunction with various graph search algorithms. An example of a broad search method is the Breadth-First Search Algorithm, which works by visiting nodes at level n first before moving on to nodes at level n+1. The advantage of the Breadth-First Search algorithm is that it can find a solution as the shortest path and find the minimum solution if there is more than one solution. This study will discuss how to find a path for the Labyrinth using the BFS algorithm. The result of applying this BFS algorithm is the shortest route solution raised so that the Labyrinth can arrive at the destination point through the route provided.","PeriodicalId":208192,"journal":{"name":"International Journal of Artificial Intelligence & Robotics (IJAIR)","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-11-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Artificial Intelligence & Robotics (IJAIR)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.25139/ijair.v3i2.4256","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

A game containing elements of artificial intelligence, of course, requires an algorithm in its application. One example of a game that includes elements of artificial intelligence is the Labyrinth game. Maze is a simple educational game. This game is known as finding a way out of the maze to arrive at a predetermined goal. The labyrinth encounters numerous obstacles along the way, such as dead ends and parapets, to reach the target location. In this game, players are required to think logically about how to find the right maze path. The obstacle faced in this game is that sometimes players have difficulty finding a way out, especially if the game level has reached a high level in the process of finding a way out. To solve this problem, a graph tracing technique is needed. The Breadth-First Search (BFS) strategy can be used in conjunction with various graph search algorithms. An example of a broad search method is the Breadth-First Search Algorithm, which works by visiting nodes at level n first before moving on to nodes at level n+1. The advantage of the Breadth-First Search algorithm is that it can find a solution as the shortest path and find the minimum solution if there is more than one solution. This study will discuss how to find a path for the Labyrinth using the BFS algorithm. The result of applying this BFS algorithm is the shortest route solution raised so that the Labyrinth can arrive at the destination point through the route provided.
Mazyin游戏路径解的宽度优先搜索算法优化
当然,包含人工智能元素的游戏在其应用中需要一个算法。《迷宫》便是包含人工智能元素的游戏的一个例子。迷宫是一款简单的教育类游戏。这个游戏就是要找到一条走出迷宫到达预定目标的路。迷宫在到达目标位置的过程中会遇到许多障碍,如死角和护墙。在这款游戏中,玩家需要逻辑思考如何找到正确的迷宫路径。这款游戏所面临的障碍是,有时候玩家很难找到出路,特别是当游戏关卡在寻找出路的过程中达到较高水平时。为了解决这个问题,需要一种图形跟踪技术。广度优先搜索(BFS)策略可以与各种图搜索算法结合使用。宽搜索方法的一个例子是广度优先搜索算法,它的工作原理是先访问n级的节点,然后再移动到n+1级的节点。广度优先搜索算法的优点是它可以找到一个解作为最短路径,如果有多个解则找到最小解。本研究将讨论如何使用BFS算法为迷宫寻找路径。应用该BFS算法的结果是提出最短的路径解,使迷宫能够通过提供的路径到达目的地。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信