CN103116356A - Method of search in mazes - Google Patents

Method of search in mazes Download PDF

Info

Publication number
CN103116356A
CN103116356A CN2013100711916A CN201310071191A CN103116356A CN 103116356 A CN103116356 A CN 103116356A CN 2013100711916 A CN2013100711916 A CN 2013100711916A CN 201310071191 A CN201310071191 A CN 201310071191A CN 103116356 A CN103116356 A CN 103116356A
Authority
CN
China
Prior art keywords
target area
probability
labyrinth
maze
robot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100711916A
Other languages
Chinese (zh)
Other versions
CN103116356B (en
Inventor
王洪君
王磊
王惠
郝计军
唐瑞东
赵化森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CN201310071191.6A priority Critical patent/CN103116356B/en
Publication of CN103116356A publication Critical patent/CN103116356A/en
Application granted granted Critical
Publication of CN103116356B publication Critical patent/CN103116356B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method of search in mazes. The method includes the steps of firstly, generating a non-directional probabilistic distance map; secondly, generating a directional probabilistic distance map; and thirdly, applying the probabilistic distance maps. After the directional probabilistic distance map in the step 2 is generated, a robot starts from a starting maze cell to search a maze. When encountering an intersection, the robot judges to which one of the maze cells in certain directions the minimum probabilistic distance belongs so as to determine an advancing path by means of the probabilistic distance maps according to the current direction, and reaches a target area G. 'Probabilistic distance' is provided by organically combining probability in the science of probability and distance in kinematics. Based on the probabilistic distance, search in mazes is rational and rules-based. The method of search in mazes based on 'probabilistic distance' is realized.

Description

The method of a kind of labyrinth search
Technical field
The present invention relates to the method for a kind of labyrinth search, belong to the technical field of artificial intelligence and robot.
Technical background
Along with the development in epoch, artificial intelligence and Robotics are more and more very powerful and exceedingly arrogant, and the tide of study and research just have swepts the globe.It is also in the ascendant that the associated machine people walks the research in labyrinth, and various algorithms emerge in an endless stream, and have greatly promoted the development of artificial intelligence and Robotics.
How keeping away during barrier walks out the process in labyrinth smoothly in the research robot, adopt which kind of method search, traverse maze directly to affect the solution efficient of maze problem, is the marrow place of finding the solution maze problem.Current searching method commonly used is divided into two classes, and a class is non-Graph-theoretical Approach, as left hand, right hand method; Another kind of is Graph-theoretical Approach, as depth-first method, centripetal method etc.The general efficient of these methods is not high, can not make robot pass through fast the labyrinth and reach the destination.
In sum, how to search for for the labyrinth, propose a kind of high efficiency searching method, fast and effeciently solve the problem that the labyrinth arrives the destination of passing through.The present invention can be widely used in the search of various types of labyrinths, also can be used for reference by the application of other field.
Summary of the invention
For the deficiencies in the prior art, the invention discloses the method for a kind of labyrinth search.
Technical scheme of the present invention is as follows:
The method of a kind of labyrinth search comprises that step is as follows:
1) generate directionless probability metrics figure:
In the labyrinth, target area G is four maze lattices that communicate at center, labyrinth, and what the same external world, this target area was adjacent is eight maze lattices, and the target area must communicate with the external world, the wall that dotted line expresses possibility and exists, and the grid that dotted line surrounds is maze lattice;
Suppose that other walls all do not exist when initial, between maze lattice, distance is designated as 1, and each 90 degree turning spent time also equivalence be distance, are designated as a, each turn through 180 degree spent time equivalent be distance b (a ≈ of robot 1 that uses in test, b ≈ 10).
The residing position of robot is maze lattice A, and the computing method of the distance of maze lattice A and target area G are: the non-existent probability of the wall nearest apart from maze lattice A is p 1=2 7/ (2 8-1), this moment, maze lattice A was s to the bee-line of target area G 1, namely maze lattice A has p to target area G 1Potential range be s 1In the situation that described nearest wall existence, the non-existent Probability p of the wall near apart from maze lattice A second 2=(1-p 1) 2 6/ (2 7-1), this moment, maze lattice A was s to the bee-line of target area G 2, namely maze lattice A has p to target area G 2Possible bee-line be s 2The rest may be inferred, p n, s nAs shown in table 1:
Table 1:
Figure BDA00002888486400021
Finally can obtain maze lattice A to the distance of target area G as (1) formula:
S A=p 1s 1+p 2s 2+p 3s 3+p 4s 4+p 5s 5+p 6s 6+p 7s 7+p 8s 8 (1)
The product of a probability and distance due to the above results, the distance on the expression probability meaning, the S in formula (1) ABe called probability metrics;
2) generation has the Direction Probability distance map:
At the described probability metrics S of step 1) AComputation process in, do not consider the direction of the current motion of robot, this is obviously irrational, because each turning or tune, the capital affects the probability metrics between robot and target area G, so the current direction of robot is also one of factor that affects probability metrics.
As the robot initial working direction upwards, maze lattice B has p to target area G 1Possible bee-line be s 1dirP is arranged 2Possible bee-line be s 2dirThe like can obtain p n, s NdirAs following table: as shown in the of 2:
Table 2:
Figure BDA00002888486400031
Can obtain maze lattice B to the oriented probability metrics of target area G, as the formula (2):
S Bdir = p 1 s 1 dir + p 2 s 2 dir + p 3 s 3 dir + p 4 s 4 dir + p 5 s 5 dir + p 6 s 6 dir + p 7 s 7 dir + p 8 s 8 dir
= 2 209 255 + 2 134 255 a - - - ( 2 )
≈ 5 88 255
Be numbered according to the coordinate of labyrinth cell, and calculate according to above-mentioned algorithm, draw in the labyrinth each cell to the probability metrics of target area:
When being upper, obtain the probability metrics figure in the labyrinth of " upward direction " when the robot initial direction according to above-mentioned calculating and statistical statistics;
In like manner, when the robot initial direction is right, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 90 ° (keeping coordinate constant, only numerical value change);
The robot initial direction is lower time, and the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 180 ° identical (keeping coordinate constant, only numerical value change);
When the robot direction is left, the probability metrics figure in the labyrinth of " upward direction " is rotated counterclockwise 90 ° identical (keeping coordinate constant, only numerical value change).
3) application of probability metrics figure
Establishment step 2) described the Direction Probability distance map is arranged after, robot is from starting point maze lattice search labyrinth, run into the crossing in advancing, direction current according to robot, utilize probability metrics figure, judge the probability metrics value minimum of the maze lattice distance objective of which direction, decide course with this, until robot arrives at target area G.
Advantage of the present invention and good effect are:
1, the present invention is applicable to the search in various labyrinths, for the robot path choice provides theoretical foundation, has filled up blank in this regard.
2, the present invention has improved the efficient of labyrinth search, has shortened labyrinth search time, and has been very easy to dispose, implement.
3, the present invention is novel unique, for thinking has been opened up in the further research of artificial intelligence and Robotics.
4, the present invention organically combines the probability in Probability and the distance in kinematics, has proposed " probability metrics " this parameter, take this parameter as benchmark, make labyrinth search reasonable can according to, have regulations to abide by.The present invention has realized the labyrinth searching method based on " probability metrics ".
Description of drawings
Fig. 1 is the labyrinth example of embodiment, and middle four cells are target area G;
Fig. 2 is robot initial direction corresponding probability metrics figure when making progress.
Embodiment
Below in conjunction with embodiment and Figure of description, the present invention is described in detail, but is not limited to this.
Embodiment
1) generate directionless probability metrics figure
In the labyrinth, target area G is four maze lattices that communicate at center, labyrinth, what G same external world in this target area was adjacent is eight maze lattices, target area G must communicate with the external world, be also that seven wall walls are arranged around the G of target area at the most, as shown in fig. 1, the wall that dotted line expresses possibility and exists, the grid that dotted line surrounds is maze lattice.
Suppose that other walls all do not exist when initial, between maze lattice, distance is designated as 1, and each 90 degree turning spent time also equivalence be distance, are designated as a, each turn through 180 degree spent time equivalent be distance b (a ≈ of robot 1 that uses in test, b ≈ 10).
In Fig. 1, the distance of maze lattice A and target area G should be calculated like this: the non-existent probability of the wall nearest apart from maze lattice A is p 1=2 7/ (2 8-1), this moment, maze lattice A was s to the bee-line of target area G 1, namely maze lattice A has p to target area G 1Potential range be s 1In the situation that this wall existence, the non-existent Probability p of the wall near apart from maze lattice A second 2=(1-p 1) 2 6/ (2 7-1), this moment, maze lattice A was s to the bee-line of target area G 2, namely maze lattice A has p to target area G 2Possible bee-line be s 2The rest may be inferred, p n, s nAs shown in table 1 below:
Table 1:
Figure BDA00002888486400061
Finally can obtain maze lattice A to the distance of target area G as shown in the formula (1):
S A=p 1s 1+p 2s 2+p 3s 3+p 4s 4+p 5s 5+p 6s 6+p 7s 7+p 8s 8 (1)
The product of a probability and distance due to the above results, the distance on the expression probability meaning, the S in formula (1) ABe probability metrics;
2) generation has the Direction Probability distance map
Take Fig. 1 as example, suppose the robot initial working direction upwards, maze lattice B has p to target area G 1Possible bee-line be s 1dirP is arranged 2Possible bee-line be s 2dirThe like can obtain p n, s NdirAs shown in table 2 below:
Table 2:
Figure BDA00002888486400071
Can obtain maze lattice B to the oriented probability metrics of target area G suc as formula (2):
S Bdir = p 1 s 1 dir + p 2 s 2 dir + p 3 s 3 dir + p 4 s 4 dir + p 5 s 5 dir + p 6 s 6 dir + p 7 s 7 dir + p 8 s 8 dir
= 2 209 255 + 2 134 255 a - - - ( 2 )
≈ 5 88 255
Take IEEE computer mouse contest standard used labyrinth as example, be numbered according to the coordinate of labyrinth cell.When being upper, obtain the probability metrics figure in the labyrinth of " upward direction " according to above-mentioned calculating and statistical statistics, as shown in Figure 2 when the robot initial direction;
In like manner, when the robot initial direction is right, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 90 ° (keeping coordinate constant, only numerical value change);
The robot initial direction is lower time, and the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 180 ° identical (keeping coordinate constant, only numerical value change);
When the robot direction is left, the probability metrics figure in the labyrinth of " upward direction " is rotated counterclockwise 90 ° identical (keeping coordinate constant, only numerical value change).
3) application of probability metrics figure
Establishment step 2) described the Direction Probability distance map is arranged after, robot is from starting point maze lattice search labyrinth, run into the crossing in advancing, direction current according to robot, utilize probability metrics figure, judge the probability metrics value minimum of the maze lattice distance objective of which direction, decide course with this, until robot arrives at target area G.

Claims (1)

1. the method for a labyrinth search, is characterized in that, it is as follows that the method comprising the steps of:
1) generate directionless probability metrics figure:
In the labyrinth, target area G is four maze lattices that communicate at center, labyrinth, and what G same external world in this target area was adjacent is eight maze lattices, and target area G must communicate with the external world, the wall that dotted line expresses possibility and exists, and the grid that dotted line surrounds is maze lattice;
Suppose that other walls all do not exist when initial, between maze lattice, distance is designated as 1, and each 90 degree turning spent time also equivalence be distance, are designated as a, each turn through 180 degree spent time equivalent be distance b (a ≈ of robot 1 that uses in test, b ≈ 10);
The residing position of robot is maze lattice A, and the computing method of the distance of maze lattice A and target area G are: the non-existent probability of the wall nearest apart from maze lattice A is p 1=2 7/ (2 8-1), this moment, maze lattice A was s to the bee-line of target area G 1, namely maze lattice A has p to target area G 1Potential range be s 1In the situation that described nearest wall existence, the non-existent Probability p of the wall near apart from maze lattice A second 2=(1-p 1) 2 6/ (2 7-1), this moment, maze lattice A was s to the bee-line of target area G 2, namely maze lattice A has p to target area G 2Possible bee-line be s 2The rest may be inferred, p n, s nAs shown in table 1:
Table 1:
Figure FDA00002888486300011
Figure FDA00002888486300021
Finally can obtain maze lattice A to the distance of target area G as (1) formula:
S A=p 1s 1+p 2s 2+p 3s 3+p 4s 4+p 5s 5+p 6s 6+p 7s 7+p 8s 8 (1)
The product of a probability and distance due to the above results, the distance on the expression probability meaning, the S in formula (1) ABe probability metrics;
2) generation has the Direction Probability distance map:
As the robot initial working direction upwards, maze lattice B has p to target area G 1Possible bee-line be s 1dirP is arranged 2Possible bee-line be s 2dirThe like can obtain p n, s NdirAs following table: as shown in the of 2:
Table 2:
Figure FDA00002888486300022
Can obtain maze lattice B to the oriented probability metrics of target area G, as the formula (2):
S Bdir = p 1 s 1 dir + p 2 s 2 dir + p 3 s 3 dir + p 4 s 4 dir + p 5 s 5 dir + p 6 s 6 dir + p 7 s 7 dir + p 8 s 8 dir
= 2 209 255 + 2 134 255 a - - - ( 2 )
≈ 5 88 255
Be numbered according to the coordinate of labyrinth cell, and calculate according to above-mentioned algorithm, draw in the labyrinth each cell to the probability metrics of target area:
When the robot initial direction when being upper, add up to get the probability metrics figure in labyrinth of " upward direction " according to above-mentioned calculating and statistical;
In like manner, when the robot initial direction is right, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 90 ° (keeping coordinate constant, only numerical value change);
The robot initial direction is lower time, and the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 180 ° identical (keeping coordinate constant, only numerical value change);
When the robot direction is left, the probability metrics figure in the labyrinth of " upward direction " is rotated counterclockwise 90 ° identical (keeping coordinate constant, only numerical value change);
3) application of probability metrics figure
Establishment step 2) described the Direction Probability distance map is arranged after, robot is from starting point maze lattice search labyrinth, run into the crossing in advancing, direction current according to robot, utilize probability metrics figure, the probability metrics value that judges which direction maze lattice is minimum, decides course with this, until robot arrives at target area G.
CN201310071191.6A 2013-03-06 2013-03-06 Method of search in mazes Expired - Fee Related CN103116356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310071191.6A CN103116356B (en) 2013-03-06 2013-03-06 Method of search in mazes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310071191.6A CN103116356B (en) 2013-03-06 2013-03-06 Method of search in mazes

Publications (2)

Publication Number Publication Date
CN103116356A true CN103116356A (en) 2013-05-22
CN103116356B CN103116356B (en) 2015-07-22

Family

ID=48414766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310071191.6A Expired - Fee Related CN103116356B (en) 2013-03-06 2013-03-06 Method of search in mazes

Country Status (1)

Country Link
CN (1) CN103116356B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731099A (en) * 2015-03-18 2015-06-24 深圳市八零年代网络科技有限公司 Method and system for searching for shortest path of maze
CN107480804A (en) * 2017-06-19 2017-12-15 广西银翔科技有限公司 A kind of labyrinth method for solving based on line space of planes relation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0174436A1 (en) * 1984-08-10 1986-03-19 JD-Technologie AG Traction and guidance system for driverless carriage units
EP0346538A1 (en) * 1986-12-16 1989-12-20 Shinko Electric Co. Ltd. Control method for an unmanned vehicle
EP0546633A2 (en) * 1991-12-11 1993-06-16 Koninklijke Philips Electronics N.V. Path planning in an uncertain environment
CN102129249A (en) * 2011-01-10 2011-07-20 中国矿业大学 Method for planning global path of robot under risk source environment
CN102901500A (en) * 2012-09-17 2013-01-30 西安电子科技大学 Aircraft optimal path determination method based on mixed probability A star and agent

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0174436A1 (en) * 1984-08-10 1986-03-19 JD-Technologie AG Traction and guidance system for driverless carriage units
EP0346538A1 (en) * 1986-12-16 1989-12-20 Shinko Electric Co. Ltd. Control method for an unmanned vehicle
EP0546633A2 (en) * 1991-12-11 1993-06-16 Koninklijke Philips Electronics N.V. Path planning in an uncertain environment
CN102129249A (en) * 2011-01-10 2011-07-20 中国矿业大学 Method for planning global path of robot under risk source environment
CN102901500A (en) * 2012-09-17 2013-01-30 西安电子科技大学 Aircraft optimal path determination method based on mixed probability A star and agent

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MANOJ SHARMA,KAIZEN ROBEONICS: "Algorithms for Micro-mouse", 《2009 INTERNATIONAL CONFERENCE ON FUTURE COMPUTER AND COMMUNICATION》 *
SWATI MISHRA,PANKAJ BANDE: "Maze Solving Algorithms for Micro Mouse", 《2008 IEEE INTERNATIONAL CONFERENCE ON SIGNAL IMAGE TECHNOLOGY AND INTERNET BASED SYSTEMS》 *
王斌等: "基于IEEE标准的电脑鼠走迷宫的智能算法研究", 《电子设计工程》 *
贺少波等: "基于向心法则的电脑鼠走迷宫算法设计与优化", 《计算机系统应用》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731099A (en) * 2015-03-18 2015-06-24 深圳市八零年代网络科技有限公司 Method and system for searching for shortest path of maze
CN104731099B (en) * 2015-03-18 2017-08-25 深圳市八零年代网络科技有限公司 The searching method and system in a kind of shortest path in maze footpath
CN107480804A (en) * 2017-06-19 2017-12-15 广西银翔科技有限公司 A kind of labyrinth method for solving based on line space of planes relation
WO2018233318A1 (en) * 2017-06-19 2018-12-27 广西回归线信息科技有限公司 Maze-solving method based on line-plane spatial relationship
CN107480804B (en) * 2017-06-19 2020-04-14 广西回归线信息科技有限公司 Maze solving method based on line-surface spatial relation
US10970890B2 (en) 2017-06-19 2021-04-06 Guangxi Huiguixian Information Technology Co., Ltd. Maze solving method based on line-surface spatial relation

Also Published As

Publication number Publication date
CN103116356B (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN108549378A (en) A kind of mixed path method and system for planning based on grating map
CN103354642B (en) A kind of method improving mobile sensor network coverage rate
WO2016045615A1 (en) Robot static path planning method
CN108089578A (en) A kind of walking movement planing method for bipod walking robot
CN107943053A (en) A kind of paths planning method of mobile robot
CN104050390A (en) Mobile robot path planning method based on variable-dimension particle swarm membrane algorithm
CN103267528A (en) Multi-unmanned aerial vehicle cooperative area search method under non-flight zone limitation
Xinggang et al. Variable probability based bidirectional RRT algorithm for UAV path planning
CN104199292A (en) Method for planning space manipulator tail end effector avoidance path based on ant colony algorithm
CN102999661A (en) Parallel collision detection system and method based on particle swarm optimization
CN108413963A (en) Bar-type machine people's paths planning method based on self study ant group algorithm
Su et al. Robot path planning based on random coding particle swarm optimization
CN103116356B (en) Method of search in mazes
Shi et al. Research on path planning method of forging handling robot based on combined strategy
Ni et al. An improved shuffled frog leaping algorithm for robot path planning
CN105606103A (en) Method for planning operation route of robot in mine
CN106295793A (en) Group robot mixed search algorithm based on biological foraging behavior
CN103278153A (en) Three-dimensional path planning method for automobile crane based on space two-dimensional mapping
Yuan et al. Research on local path planning of mobile robot based on artificial potential field method
CN113190026B (en) Energy-saving underwater path planning method based on re-excitation mechanism particle swarm algorithm
CN105224726B (en) The method that structured grid Dynamic mesh is used for unstrctured grid flow field calculation device
CN102722910A (en) Volume mesh scene continuous collision detection method based on separation axis removal
Soofiyani et al. A straight moving path planner for mobile robots in static environments using cellular automata
CN108540989A (en) A kind of simplicial complex for wireless sensor network simplifies method and apparatus
Wang et al. An improved NSGA-II algorithm for UAV path planning problems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150722

Termination date: 20180306