CN103116356B - Method of search in mazes - Google Patents
Method of search in mazes Download PDFInfo
- Publication number
- CN103116356B CN103116356B CN201310071191.6A CN201310071191A CN103116356B CN 103116356 B CN103116356 B CN 103116356B CN 201310071191 A CN201310071191 A CN 201310071191A CN 103116356 B CN103116356 B CN 103116356B
- 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.)
- Expired - Fee Related
Links
Landscapes
- Feedback Control In General (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Manipulator (AREA)
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
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 more and more very powerful and exceedingly arrogant, study and research tide just have swept the globe.The research that associated machine people walks labyrinth is also in the ascendant, and various algorithm emerges in an endless stream, and has greatly promoted the development of artificial intelligence and Robotics.
How to keep away barrier walk out smoothly in the process in labyrinth in research robot, adopt which kind of method search, solution efficiency that traverse maze directly affects maze problem, be the marrow place solving maze problem.Current conventional searching method 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, and centripetal method etc.The general efficiency of these methods is not high, robot can not be made to pass through labyrinth fast and reach the destination.
In sum, how to search for for labyrinth, propose a kind of high efficiency searching method, fast and effeciently solve the problem of passing through arrival destination, labyrinth.The present invention can be widely used in the search of various types of labyrinth, 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:
A method for labyrinth search, comprises step as follows:
1) directionless probability metrics figure is generated:
In labyrinth, target area G is four maze lattices communicated at center, labyrinth, this target area with extraneous adjacent be eight maze lattices, target area must communicate with the external world, and dotted line expresses possibility the wall existed, and the grid that dotted line surrounds is maze lattice;
When supposing initial, other walls all do not exist, the spacing of maze lattice is designated as 1, and each 90 degree of turning spent time is also equivalent to distance, is designated as a, each is turned through 180 degree spent time and is equivalent to distance b (robot a ≈ 1, the b ≈ 10 used in test).
Position residing for robot is maze lattice A, then the computing method of the distance of maze lattice A and target area G are: the wall non-existent probability nearest apart from maze lattice A is p
1=2
7/ (2
8-1), now the bee-line of maze lattice A to target area G is s
1, namely maze lattice A has p to target area G
1potential range be s
1; Deposit in case at described nearest wall, the non-existent Probability p of wall that distance maze lattice A second is near
2=(1-p
1) 2
6/ (2
7-1), now the bee-line of maze lattice A to target area G is s
2, namely maze lattice A has p to target area G
2possible bee-line be s
2; The rest may be inferred, p
n, s
nas shown in table 1:
Table 1:
Finally can obtain the distance of maze lattice A to 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)
Due to the product that the above results is a probability and distance, represent the distance on probability meaning, the S in formula (1)
abe called probability metrics;
2) generation has Direction Probability distance map:
In step 1) described probability metrics S
acomputation process in, do not consider the direction of robot current kinetic, this is obviously irrational, because each turning or tune, capital affects the probability metrics between robot and target area G, so the current direction of robot is also one of factor affecting probability metrics.
As robot initial working direction upwards, then maze lattice B has p to target area G
1possible bee-line be s
1dir; There is p
2possible bee-line be s
2dir; The like can obtain p
n, s
ndiras shown in table 2 below:
Table 2:
The oriented probability metrics of maze lattice B to target area G can be obtained, shown in (2):
Coordinate according to labyrinth cell is numbered, and calculates according to above-mentioned algorithm, show that in labyrinth, each cell is to the probability metrics of target area:
When robot initial direction is upper, obtain the probability metrics figure in the labyrinth of " upward direction " according to above-mentioned calculating and statistical statistics;
In like manner, when 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 variation);
Robot initial direction be under time, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 180 ° identical (keep coordinate constant, only numerical value variation);
When 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 variation).
3) application of probability metrics figure
Establishment step 2) described in have Direction Probability distance map after, robot is from starting point maze lattice search labyrinth, crossing is run in advancing, according to the current direction of robot, utilize probability metrics figure, judge that the probability metrics value of the maze lattice distance objective in which direction is minimum, 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 labyrinth, for robot path choice provides theoretical foundation, has filled up blank in this regard.
2, invention increases the efficiency of labyrinth search, shorten labyrinth search time, and be 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 probability in Probability organically combines with the distance in kinematics by the present invention, proposes " probability metrics " this parameter, with this parameter for benchmark, make labyrinth search for reasonable can according to, have regulations to abide by.Present invention achieves the maze search method based on " probability metrics ".
Accompanying drawing explanation
Fig. 1 is the labyrinth example of embodiment, and middle four cells are target area G;
Fig. 2 be robot initial direction upwards time corresponding probability metrics figure.
Embodiment
Below in conjunction with embodiment and Figure of description, the present invention is described in detail, but is not limited thereto.
Embodiment
1) directionless probability metrics figure is generated
In labyrinth, target area G is four maze lattices communicated 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, also be have seven wall walls at the most around the G of target area, as shown in fig. 1, dotted line express possibility exist wall, the grid that dotted line surrounds is maze lattice.
When supposing initial, other walls all do not exist, the spacing of maze lattice is designated as 1, and each 90 degree of turning spent time is also equivalent to distance, is designated as a, each is turned through 180 degree spent time and is equivalent to distance b (robot a ≈ 1, the b ≈ 10 used in test).
In Fig. 1, the distance of maze lattice A and target area G should calculate like this: the wall non-existent probability nearest apart from maze lattice A is p
1=2
7/ (2
8-1), now the bee-line of maze lattice A to target area G is s
1, namely maze lattice A has p to target area G
1potential range be s
1; Deposit in case at this wall, the non-existent Probability p of wall that distance maze lattice A second is near
2=(1-p
1) 2
6/ (2
7-1), now the bee-line of maze lattice A to target area G is s
2, namely maze lattice A has p to target area G
2possible bee-line be s
2; The rest may be inferred, p
n, s
nas shown in table 1 below:
Table 1:
Finally can obtain the distance of maze lattice A to 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)
Due to the product that the above results is a probability and distance, represent the distance on probability meaning, the S in formula (1)
afor probability metrics;
2) generation has Direction Probability distance map
For Fig. 1, suppose robot initial working direction upwards, maze lattice B has p to target area G
1possible bee-line be s
1dir; There is p
2possible bee-line be s
2dir; The like can obtain p
n, s
ndiras shown in table 2 below:
Table 2:
The oriented probability metrics of maze lattice B to target area G can be obtained such as formula (2):
For IEEE computer mouse contest standard labyrinth used, the coordinate according to labyrinth cell is numbered.When robot initial direction is 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;
In like manner, when 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 variation);
Robot initial direction be under time, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 180 ° identical (keep coordinate constant, only numerical value variation);
When 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 variation).
3) application of probability metrics figure
Establishment step 2) described in have Direction Probability distance map after, robot is from starting point maze lattice search labyrinth, crossing is run in advancing, according to the current direction of robot, utilize probability metrics figure, judge that the probability metrics value of the maze lattice distance objective in which direction is minimum, decide course with this, until robot arrives at target area G.
Claims (1)
1. a method for labyrinth search, it is characterized in that, it is as follows that the method comprising the steps of:
1) directionless probability metrics figure is generated:
In labyrinth, target area G is four maze lattices communicated at center, labyrinth, this target area G with extraneous adjacent be eight maze lattices, target area G must communicate with the external world, and dotted line expresses possibility the wall existed, and the grid that dotted line surrounds is maze lattice;
When supposing initial, other walls all do not exist, and the spacing of maze lattice is designated as 1, and each 90 degree of turning spent time is also equivalent to distance, is designated as a, and each is turned through 180 degree spent time and is equivalent to distance b, robot a ≈ 1, the b ≈ 10 used in test;
Position residing for robot is maze lattice A, then the computing method of the distance of maze lattice A and target area G are: the wall non-existent probability nearest apart from maze lattice A is p
1=2
7/ (2
8-1), now the bee-line of maze lattice A to target area G is s
1, namely maze lattice A has p to target area G
1potential range be s
1; Deposit in case at described nearest wall, the non-existent Probability p of wall that distance maze lattice A second is near
2=(1-p
1) 2
6/ (2
7-1), now the bee-line of maze lattice A to target area G is s
2, namely maze lattice A has p to target area G
2possible bee-line be s
2; The rest may be inferred, p
n, s
n;
Finally can obtain the distance of maze lattice A to 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)
Due to the product that the above results is a probability and distance, represent the distance on probability meaning, the S in formula (1)
afor probability metrics;
2) generation has Direction Probability distance map:
As robot initial working direction upwards, then maze lattice B has p to target area G
1possible bee-line be s
1dir; There is p
2possible bee-line be s
2dir; The like can obtain p
n, s
ndir; The oriented probability metrics of maze lattice B to target area G can be obtained, shown in (2):
Coordinate according to labyrinth cell is numbered, and calculates according to above-mentioned algorithm, show that in labyrinth, each cell is to the probability metrics of target area:
When robot initial direction is upper, add up the probability metrics figure in the labyrinth of " upward direction " according to above-mentioned calculating and statistical;
In like manner, when robot initial direction is right, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 90 °, keep coordinate constant, only numerical value variation;
Robot initial direction be under time, the probability metrics figure in the labyrinth of " upward direction " is turned clockwise 180 ° identical, keep coordinate constant, only numerical value variation;
When robot direction is left, the probability metrics figure in the labyrinth of " upward direction " is rotated counterclockwise 90 ° identical, keep coordinate constant, only numerical value variation;
3) application of probability metrics figure
Establishment step 2) described in have Direction Probability distance map after, robot is from starting point maze lattice search labyrinth, crossing is run in advancing, according to the current direction of robot, utilize probability metrics figure, judge that the probability metrics value of which direction maze lattice is minimum, decide course with this, until robot arrives at target area G.
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 CN103116356A (en) | 2013-05-22 |
CN103116356B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731099B (en) * | 2015-03-18 | 2017-08-25 | 深圳市八零年代网络科技有限公司 | The searching method and system in a kind of shortest path in maze footpath |
CN107480804B (en) | 2017-06-19 | 2020-04-14 | 广西回归线信息科技有限公司 | Maze solving method based on line-surface spatial relation |
Citations (5)
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 |
-
2013
- 2013-03-06 CN CN201310071191.6A patent/CN103116356B/en not_active Expired - Fee Related
Patent Citations (5)
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)
Title |
---|
Algorithms for Micro-mouse;Manoj Sharma,Kaizen Robeonics;《2009 International Conference on Future Computer and Communication》;20091231;全文 * |
Maze Solving Algorithms for Micro Mouse;Swati Mishra,Pankaj Bande;《2008 IEEE International Conference on Signal Image Technology and Internet Based Systems》;20081231;全文 * |
基于IEEE标准的电脑鼠走迷宫的智能算法研究;王斌等;《电子设计工程》;20110630;第19卷(第12期);全文 * |
基于向心法则的电脑鼠走迷宫算法设计与优化;贺少波等;《计算机***应用》;20120930;第21卷(第9期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103116356A (en) | 2013-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108549378A (en) | A kind of mixed path method and system for planning based on grating map | |
CN103267528A (en) | Multi-unmanned aerial vehicle cooperative area search method under non-flight zone limitation | |
CN104050390A (en) | Mobile robot path planning method based on variable-dimension particle swarm membrane algorithm | |
CN107817772A (en) | A kind of flexible job shop scheduling optimization method | |
CN106408124A (en) | Moving path hybrid forecasting method oriented to data sparse environment | |
CN103116356B (en) | Method of search in mazes | |
CN102999661A (en) | Parallel collision detection system and method based on particle swarm optimization | |
CN104462662A (en) | Underwater production facility virtual assembly method | |
CN105790315A (en) | Energy storage and current transformation droop control method based on particle swarm optimization | |
Su et al. | Robot path planning based on random coding particle swarm optimization | |
CN104967121B (en) | A kind of tidal current computing method of large-scale electrical power system node | |
CN106374531A (en) | Evaluation method for photovoltaic storage energy exchange index of active power distribution network | |
CN104915889A (en) | Method of acquiring comprehensive load model parameters in online mode based on daily load curve | |
Bahmanikashkooli et al. | Application of particle swarm optimization algorithm for computing critical depth of horseshoe cross section tunnel | |
Yuan et al. | Research on local path planning of mobile robot based on artificial potential field method | |
CN102566446A (en) | Method for establishing full-envelope mathematical model of unmanned helicopter based on linear model group | |
Hongyun et al. | Multi-goal path planning algorithm for mobile robots in grid space | |
CN102722910A (en) | Volume mesh scene continuous collision detection method based on separation axis removal | |
CN104615679A (en) | Multi-agent data mining method based on artificial immunity network | |
Soofiyani et al. | A straight moving path planner for mobile robots in static environments using cellular automata | |
CN107578136A (en) | The overlapping community discovery method extended based on random walk with seed | |
CN103426127A (en) | Urban power network planning method based on pseudo-crossover taboo hybrid genetic algorithm | |
Königseder et al. | Comparing a graph-grammar approach to genetic algorithms for computational synthesis of PV arrays | |
CN102393827A (en) | Flexible scene continuous collision detection method based on continuous normal cone remover | |
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 |
Granted publication date: 20150722 Termination date: 20180306 |
|
CF01 | Termination of patent right due to non-payment of annual fee |