CN107292107A - A kind of map road-seeking method, equipment and computing terminal - Google Patents
A kind of map road-seeking method, equipment and computing terminal Download PDFInfo
- Publication number
- CN107292107A CN107292107A CN201710495173.9A CN201710495173A CN107292107A CN 107292107 A CN107292107 A CN 107292107A CN 201710495173 A CN201710495173 A CN 201710495173A CN 107292107 A CN107292107 A CN 107292107A
- Authority
- CN
- China
- Prior art keywords
- node
- list
- doubly linked
- linked list
- gauge outfit
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/312—List processing, e.g. LISP programming language
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Z—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS, NOT OTHERWISE PROVIDED FOR
- G16Z99/00—Subject matter not provided for in other main groups of this subclass
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72427—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Computing Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Quality & Reliability (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Tourism & Hospitality (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Remote Sensing (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of map road-seeking method, suitable for being performed in computing device, the map includes the array with multiple nodes, and the computing device includes be stored with list memory, the list memory unlatching list and delete list, and the method comprising the steps of:Judge whether the quantity of array interior joint is less than predetermined value, if it is determined that the quantity of the array interior joint is less than predetermined value, then will open list and build up doubly linked list;Array is monitored, the start node and destination node of map pathfinding is obtained, and start node is added into doubly linked list;The node of doubly linked list gauge outfit is deleted, and the node of the doubly linked list gauge outfit of deletion is added into delete list;And whether the node of the deleted doubly linked list gauge outfit of judgement is destination node, if the node for the doubly linked list gauge outfit deleted is destination node, continue to monitor array.Present invention also offers a kind of map pathfinding equipment and include according to the present invention map pathfinding equipment computing device.
Description
The application is the Application No. 201410720889.0 that the applicant submitted on December 2nd, 2014, entitled one
Plant the divisional application of the application for a patent for invention of the map road-seeking method based on A* algorithms, equipment and computing terminal.
Technical field
The present invention relates to electronic map field, more particularly to a kind of map pathfinding scheme.
Background technology
At present, increasing software and application are required for generating and present a map for realizing certain function to user.
For example, in Games Software application, computing device (such as desktop computer, notebook and other intelligent terminals) needs life
Into scene of game map.In the map, the role of game player's control and the role of non-player control are needed according to certain
Path move, therefore map pathfinding can be related to route selection and to avoid barrier point.Except needing in gaming
Carry out outside map pathfinding, some, which are related in the application in path, is also required to use map pathfinding scheme.In a variety of pathfinding applications
In scheme, involved A* algorithms are a kind of heuristic search algorithms., can be in map in the pathfinding scheme of application A* algorithms
Multiple nodes judged.During pathfinding, the node not judged constantly can be added into a list, that is, open list,
And by it is determined that the node crossed is added to another list, i.e. delete list.Constantly it can be arranged during pathfinding opening
Table is operated, and includes insertion, sequence and retrieval of node etc..
According to open data in list and the characteristics of various operations, it is necessary to open list data structure and insertion,
The operation such as sequence is controlled, to reduce the time complexity of operation.It is how split using y-bend heaping method in currently existing scheme
List is opened to be operated.However, because Binary Heap is more complicated in realization, intractability is higher, thus map nodes compared with
When few, using the mode of operation of Binary Heap, then cost performance is relatively low.
Accordingly, it would be desirable to a kind of new map pathfinding scheme, can judge map, and when map nodes are less, with
Higher operating efficiency carries out pathfinding.
The content of the invention
Therefore, the present invention provides a kind of new scheme to try hard to solve or at least alleviate the problem of above existing.
According to an aspect of the invention, there is provided a kind of map road-seeking method, suitable for being performed in computing device, the ground
Figure includes the array with multiple nodes, and the computing device includes the unlatching row that are stored with list memory, the list memory
Table and delete list, the unlatching list include treating the node of pathfinding detection, and the delete list includes what is deleted from list is opened
Node.
The method comprising the steps of, judges whether the quantity of the array interior joint is less than predetermined value, if it is determined that the array
The quantity of interior joint is less than predetermined value, then the unlatching list is built up into doubly linked list;The array is monitored, map pathfinding is obtained
Start node and destination node, and the start node is added into the doubly linked list;Delete the section of the doubly linked list gauge outfit
Point, and the node for the doubly linked list gauge outfit deleted is added into delete list;And judge deleted doubly linked list gauge outfit
Whether node is destination node, if the node of the doubly linked list gauge outfit of the deletion is destination node, continues to monitor described
Array, if the node of the doubly linked list gauge outfit of the deletion is not destination node, obtains the doubly linked list gauge outfit of the deletion
The node of predetermined condition is met around node, and the acquired node for meeting the predetermined condition is added into the doubly linked list;
And continue to delete the node of the doubly linked list gauge outfit, and the node for the doubly linked list gauge outfit deleted is added into delete list.
Alternatively, in the map road-seeking method according to the present invention, around the node for obtaining the doubly linked list gauge outfit deleted
The step of node for meeting the predetermined condition, includes, obtain delete the doubly linked list gauge outfit node can directly reach,
It is not belonging to the node of the delete list and non-obstacle.
Alternatively, step is also included according to the map road-seeking method of the present invention, when it is determined that the doubly linked list table of the deletion
When the node of head is destination node, node in the delete list obtain the start node and the destination node it
Between shortest path.
Alternatively, in the map road-seeking method according to the present invention, the scope of predetermined value is 1000.
Alternatively, in the map road-seeking method according to the present invention, the acquired node for meeting the predetermined condition is added
The step of entering the doubly linked list includes:The node of the doubly linked list is ranked up;And this is met into the predetermined bar
The node of part is added to the doubly linked list in insertion sort mode.
According to another aspect of the present invention there is provided a kind of map pathfinding equipment, the map includes having multiple nodes
Array, the equipment include list memory, first processor, monitor, second processor and the 3rd processor.
List memory is suitable to storage and opens list and delete list, and the unlatching list includes node to be detected, and this is deleted
Except list includes the node deleted from list is opened.
First processor is suitable to judge whether the quantity of the array interior joint is less than predetermined value, if it is determined that in the array
The quantity of node is less than predetermined value, then the unlatching list is built up into doubly linked list.
Monitor is suitable to monitor the array, to obtain the start node and destination node of map pathfinding, and is opened described
Beginning node adds the doubly linked list;
Second processor is suitable to the node for deleting the doubly linked list gauge outfit, and by the node for the doubly linked list gauge outfit deleted
Add delete list;And
Whether the node that the 3rd processor is suitable to judge deleted doubly linked list gauge outfit is destination node, if described delete
The node for the doubly linked list gauge outfit removed is destination node, it indicates that the monitor continues to monitor the array, if the deletion
The node of doubly linked list gauge outfit be not destination node, then meet described around the node for the doubly linked list gauge outfit for obtaining the deletion
The node of predetermined condition, and the acquired node for meeting the predetermined condition is added into doubly linked list, and indicate at second
Manage device to continue to delete the node of the doubly linked list gauge outfit, and the node for the doubly linked list gauge outfit deleted is added into delete list.
Alternatively, in the map pathfinding equipment according to the present invention, the 3rd processor is deleted according to being obtained following manner
The node of the predetermined condition is met around the node for the doubly linked list gauge outfit removed, the doubly linked list table of the deletion is obtained
The node of head can directly reach, be not belonging to the node of the delete list and non-obstacle.
Alternatively, in the map pathfinding equipment according to the present invention, the 3rd processor is further adapted for:When it is determined that the deletion
When the node of doubly linked list gauge outfit is destination node, node in the delete list obtain the start node with it is described
Shortest path between destination node.
Alternatively, in the map pathfinding equipment according to the present invention, the scope of predetermined value is 1000.
Alternatively, in the map pathfinding equipment according to the present invention, the 3rd processor will be acquired full according to following manner
The node of the foot predetermined condition adds the doubly linked list:The node of the doubly linked list is ranked up;And expire this
The node of the foot predetermined condition is added to the doubly linked list in insertion sort mode.
According to a further aspect of the invention there is provided a kind of computing terminal, the computing terminal include it is above-mentioned in anyly
Figure pathfinding equipment.
According to the map pathfinding scheme of the present invention, during by the judgement to map scale and smaller determination map scale,
Then doubly linked list structure is used to opening list, being inserted, deleted and sorted etc. to opening list on this basis operates,
Realize the simple operations of map pathfinding, resource overhead is smaller and time complexity is relatively low.
Brief description of the drawings
In order to realize above-mentioned and related purpose, some illustrative sides are described herein in conjunction with following description and accompanying drawing
Face, these aspects indicate the various modes of principles disclosed herein that can put into practice, and all aspects and its equivalent aspect
It is intended to fall under in the range of theme claimed.The following detailed description by being read in conjunction with the figure, the disclosure it is above-mentioned
And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical reference generally refers to identical
Part or element.
Fig. 1 shows the structured flowchart of a mobile terminal;
Fig. 2 shows the schematic diagram of map pathfinding equipment according to an embodiment of the invention;
Fig. 3 shows the flow chart of map road-seeking method according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 is the structured flowchart of mobile terminal 1 00.Mobile terminal 1 00 can include memory interface 102, one or many
Individual data processor, image processor and/or CPU 104, and peripheral interface 106.
Memory interface 102, one or more processors 104 and/or peripheral interface 106 both can be discrete components,
It can be integrated in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication
Bus or signal wire are coupled.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize
Function.
For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, with
The functions such as convenient orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as alignment system
(such as GPS), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement correlation
Function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as recording photograph and video clipping
The realization of function, wherein the camera sub-system and optical sensor for example can be charge coupling device (CCD) or complementary gold
Belong to oxide semiconductor (CMOS) optical sensor.It can help to realize by one or more radio communication subsystems 124
Communication function, wherein radio communication subsystem can include radio-frequency transmitter and emitter and/or light (such as infrared) receiver
And emitter.The particular design and embodiment of radio communication subsystem 124 can depend on mobile terminal 1 00 is supported one
Individual or multiple communication networks.For example, mobile terminal 1 00 can include being designed to support GSM network, GPRS network, EDGE nets
Network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loudspeaker 128 and microphone 130, to help to implement to enable voice
Function, such as speech recognition, speech reproduction, digital record and telephony feature.I/O subsystems 140 can include touch-screen control
Device 142 processed and/or other one or more input controllers 144.Touch screen controller 142 may be coupled to touch-screen 146.Lift
For example, the touch-screen 146 and touch screen controller 142 can use any one of a variety of touch-sensing technologies to detect
The contact and movement or pause carried out therewith, wherein detection technology include but is not limited to capacitive character, resistive, infrared and table
Face technology of acoustic wave.Other one or more input controllers 144 may be coupled to other input/control devicess 148, such as one
Or the pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or instruction pen etc.It is described
One or more button (not shown)s can include the up/down for controlling loudspeaker 128 and/or the volume of microphone 130
Button.
Memory interface 102 can be coupled with memory 150.The memory 150 can be deposited including high random access
Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/
Or flash memories (such as NAND, NOR).Memory 150 can store an operating system 172, such as Android, IOS or
Windows Phone etc operating system.The operating system 172 can include being used to handle basic system services and execution
Instruction dependent on the task of hardware.Memory 150 can also store and apply 174., can be from memory when mobile device is run
Operating system 172 is loaded in 150, and is performed by processor 104.Using 154 operationally, it can also add from memory 150
Carry, and performed by processor 104.Operate on operating system, provided using operating system and bottom hardware using 174
Interface realizes the desired function of various users, such as instant messaging, web page browsing, pictures management.It can be independently of using 174
It is that operating system 172 is provided or that operating system 172 is carried.
In above-mentioned various applications 174, a kind of application therein is the map pathfinding equipment 200 according to the present invention.The ground
Figure pathfinding equipment can be when the node of electronic map be less, using a kind of pathfinding side for applying non-y-bend pile structure and sequence
Formula, to improve pathfinding efficiency.It should be noted that the map pathfinding equipment 200 can also be in other a variety of computing device (examples
Such as, notebook computer, handheld device etc.) middle application.
Fig. 2 shows the structural representation of map pathfinding equipment 200 according to an embodiment of the invention.The map is sought
Pipeline equipment 200 can be resident in a variety of computing devices.
When including application component (such as game component) needs of map pathfinding equipment 200 in computing device in electronics
When the enterprising walking along the street footpath of map is selected, Path selection can be carried out using A* algorithms.First, electronic map is divided into by application component
The array of multiple node compositions, and the node in array is divided into barrier point and the node that can pass through, wherein each section
Point can be with the grid-like region of certain area or center of circle region, naturally it is also possible to set node
For the region of other shapes.Then, when have selected the start node A and target node b in path, can according to start node A and
Target node b carries out data analysis with the position relationship of other nodes in electronic map to the node that can pass through.Here with
Exemplified by grid-like node, data analysis is carried out to non-obstacle nodes especially by following formula (1).
F=G+H (1)
When one node of selection (node is a node from node A to node B on selectable path) is father's section
During point C, the father node C directions advanced can be analyzed.When a node N to can directly be reached around it carries out data
During analysis, G represents that start node A reaches node N actual mobile consumption figures, i.e. actual cost via father node C.Wherein, from
The direction that any one non-obstacle nodes is moved to surrounding can have multiple choices, for example, adjacent with the four edges of the node
The direction of ground node, i.e., forward and backward, left and right, naturally it is also possible to the direction of the node including the node diagonally opposing corner, and move every time
It is dynamic all to correspond to certain consumption figures.For the ease of calculating, the consumption figures that single step can be selected to move is identical.H represent from node N to
Estimated mobile consumption figures, the i.e. estimate cost of target node b.H calculations can select to be not make a distinction barrier point,
But directed along the mobile consumption figures after node N to the rectangular area edge between target node b node motion.F is represented
Node A reaches the evaluation function value of target node b via father node C, node N.
As shown in Fig. 2 including list memory 240, first processor 210, prison according to the map pathfinding equipment of the present invention
Control device 250, the processor 230 of second processor 220 and the 3rd.
List memory 240 is suitable to storage and opens list and delete list.The unlatching list includes treating the section of pathfinding detection
Point, the delete list includes the node deleted from list is opened.According to one embodiment of present invention, when from A nodes
When being moved to a node D, in node D can directly reach multiple nodes of surrounding, if node is not belonging to delete
List and also it is not added in unlatching list, then opens list and be suitable to receive and store these nodes.
First processor 210 is suitable to judge whether the quantity of the array interior joint of map is less than predetermined value, such as predetermined value
Value is 1000 nodes.Here why array interior joint quantity is judged, is due to when number of nodes is more two
Pitching the storage organization and corresponding sortord of heap has preferable performance.But if when node is less, then can highlight
In application y-bend pile structure and sortord pathfinding, expense is higher and complicated.Therefore need to apply a kind of knot more optimized
Structure and sortord carry out pathfinding operation, during to be inserted and deleted to open list interior joint, reduction operation overhead,
Reduce time complexity.Therefore, if it is determined that when the quantity of the array interior joint is less than predetermined value, first processor 210 can be by
Open list and build up doubly linked list structure.Here doubly linked list structure is used when map scale is smaller so that list is stored
The handling process of the operations such as insertion, sequence, the deletion of the unlatching list interior joint that are stored in device 240 is simpler, and efficiency is more
It is high.
Monitor 250 is suitable to monitoring user input or preset data.Monitor 250 can obtain user inputs or pathfinding
Equipment preset start node A and target node b, then add doubly linked list by start node A.Here due in start node
It is sky that list is opened before addition, so need not be ranked up to opening list and start node insertion directly is opened into row
Table.
Second processor 220 is suitable to the node for deleting the doubly linked list gauge outfit, and by the doubly linked list gauge outfit deleted
Node adds delete list.Here the gauge outfit for the chained list deleted is a node on the path of map pathfinding, and the node is such as
Fruit is target node b, then pathfinding is completed, if not target node b, then suitable for from the node, continuing to surrounding pathfinding.
Whether the node that the 3rd processor 230 is suitable to judge the doubly linked list gauge outfit that second processor 220 is deleted is target
Node B.The first situation is that the node for the doubly linked list gauge outfit deleted is target node b, then it represents that searched out one
Target (for example, user's control role or non-controlling role in game) in shorter mobile route supplied for electronic map is moved
It is dynamic.Therefore, this pathfinding is completed, and the node that the 3rd processor 230 can be in delete list obtains start node A and target section
Shortest path between point B, the sequence node that the shortest path is made up of the node in delete list, and list is stored
Unlatching list and delete list in device are emptied respectively.Then, the 3rd processor 230 indicates that monitor 250 continues to monitor array,
Etc. NEW BEGINNING node to be obtained and destination node.
Second of situation is that the node of the doubly linked list gauge outfit of the deletion is not the Two-way Chain of target node b, the then deletion
The node of table gauge outfit is the intermediate node on the path from start node A to target node b, it is necessary to continue from the node to target
Node B carries out pathfinding operation, therefore the node is set into father node C.
Further, the 3rd processor 230 obtains the node that predetermined condition is met around father node C, then by the section of acquisition
Point adds doubly linked list.
Specifically, the 3rd processor 230 first updates the actual cost G and evaluation function value F for opening list interior joint, so
It is ranked up afterwards according to the evaluation function value F after renewal to opening list, and then since at the gauge outfit or table tail of doubly linked list,
Judge the insertion position of the node of pre-inserted, and node is inserted into the insertion position.Here insertion sort side can be selected
Formula, can also select the modes such as Binary ordering to find the insertion position of node.It is of course also possible to select to need to insert to open
All nodes of list are added after unlatching list, then are uniformly ranked up.The node for wherein meeting predetermined condition is deleted
The node of doubly linked list gauge outfit can directly reach, be not belonging to the node of delete list and non-obstacle.Here list is opened by row
After sequence and insertion, new gauge outfit node is from father node C to the selected section that advances of target node b pathfinding in doubly linked list
Point.
Then, the 3rd processor 230 indicates that second processor 220 deletes the node of the doubly linked list gauge outfit (selected by i.e.
Advance node) and the node of the doubly linked list gauge outfit deleted added into delete list.
Finally, the 3rd processor 230 continues to judge the section of the new gauge outfit deleted from doubly linked list for adding delete list
Whether point is destination node.
Fig. 3 shows the flow chart of map road-seeking method according to an embodiment of the invention.The method for searching is suitable to
It is a variety of need carry out pathfinding computing device in perform.The map is the array that multiple nodes are constituted.The computing device includes row
Table memory, the list memory has unlatching list and delete list.The node for including in list and treating pathfinding detection is opened,
Delete list includes the node deleted from list is opened.
As shown in figure 3, this method 300 starts from step S310, judge whether the quantity of array interior joint is less than predetermined value, such as
Fruit determines that the quantity of the array interior joint is less than predetermined value, then the unlatching list is built up into doubly linked list.Array interior joint
Quantity corresponds to the scale of map.The predetermined value can carry out true according to the disposal ability of the equipment of specific implementation method for searching
Fixed, it is 1000 nodes for example to select predetermined value.If number of nodes be less than predetermined value, select by open list initialization be
Doubly linked list structure, to be ranked up and insert or delete operation to opening the node in list.Here due to using two-way
List structure so that, can be more simpler than modes such as Binary Heaps and conveniently when being operated to opening list interior joint, together
When time complexity and resource overhead it is smaller.
Then, method 300 enters step S320, preset number of the monitoring user for the input of map or on pathfinding
Start node A and target node b are obtained according to, the selection instruction that can be inputted according to user or preset information, and will be started
Node A adds the doubly linked list.In step s 320, start node A is the starting point in path, and now in doubly linked list
Only start node A.Therefore it need not be ranked up in this step to opening list interior joint, and method 300 is directly entered
Step S330, deletes the node of doubly linked list gauge outfit, and the node of deletion is added into delete list.Here the chained list deleted
Gauge outfit is a node on the path of map pathfinding, and the node is if target node b, then pathfinding is completed, if not mesh
Node B is marked, then can be continued from the node to surrounding pathfinding, you can to select the node being set to father node C.
Then, method 300 enters step S340, first determines whether to be newly joined the node of delete list (finally from two-way
The node for the gauge outfit deleted in chained list) whether it is target node b.If the node is target node b, pathfinding task is completed,
The most short or shorter path between start node A and target node b, i.e. acquisition approach can be obtained according to delete list interior joint
Sequence node, then empty unlatching list and delete list.Then, method 300 jumps to step S320, continues to monitor map
Array, to obtain NEW BEGINNING node A and target node b.
When the node for determining to be newly joined delete list in step S340 is not target node b, then method enters step
Rapid S350, this is newly joined the node of delete list as father node C, and is obtained and met predetermined condition around father node C
Node, and be added in doubly linked list.In step S350, according to one embodiment of present invention, father node C is obtained first
Can be directly to reach, be not barrier point and the node not in delete list, then will not open row in acquired node
The node of table adds doubly linked list.
Specifically, in step S350, according to one embodiment of present invention, first based on the father node C of acquisition,
The actual cost G of each node in doubly linked list is recalculated, i.e., reaches each node from start node A via father node C
Actual cost G, and the H values of each node keep constant, then according to the new actual cost G of each node, update each section
The evaluation function value F of point.After the completion of the actual cost G, the evaluation function value F that open each node in list update, to two-way
The node of chained list is ranked up, i.e., the minimum node of F values is stored in the gauge outfit position of doubly linked list.Then, will be acquired
The node do not obtained in the insertion position of doubly linked list in insertion sort mode in the node for opening list in node, and then is inserted
Enter into doubly linked list.Then, method 300 jumps to step S330, continues to delete the node of doubly linked list gauge outfit, and will delete
Node add delete list.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, knot is not been shown in detail
Structure and technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield are than the feature more features that is expressly recited in each claim.More precisely, as following
As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, abide by
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
It is used as the separate embodiments of the present invention.
Those skilled in the art should be understood the module or unit or group of the equipment in example disclosed herein
Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example
In different one or more equipment.Module in aforementioned exemplary can be combined as a module or be segmented into addition multiple
Submodule.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed
One of meaning mode can be used in any combination.
In addition, be described as herein can be by the processor of computer system or by performing for some in the embodiment
Method or the combination of method element that other devices of the function are implemented.Therefore, with for implementing methods described or method
The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, device embodiment
Element described in this is the example of following device:The device is used to implement as in order to performed by implementing the element of the purpose of the invention
Function.
As used in this, unless specifically stated so, come using ordinal number " first ", " second ", " the 3rd " etc.
Description plain objects are merely representative of the different instances for being related to similar object, and are not intended to imply that the object being so described must
Must have the time it is upper, spatially, in terms of sequence or given order in any other manner.
Claims (9)
1. a kind of map road-seeking method, suitable for being performed in computing device, the map includes the array with multiple nodes, the meter
Calculating equipment includes be stored with list memory, the list memory unlatching list and delete list, and the unlatching list includes treating
The node of pathfinding detection, the delete list includes the node deleted from list is opened, and the method comprising the steps of:
Judge whether the quantity of the array interior joint is less than predetermined value, if it is determined that the quantity of the array interior joint is less than predetermined
Value, then build up doubly linked list by the unlatching list;
The array is monitored, the start node and destination node of map pathfinding is obtained, and the start node is added described pair
To chained list;
The node of the doubly linked list gauge outfit is deleted, and the node for the doubly linked list gauge outfit deleted is added into delete list;And
Whether the node for judging deleted doubly linked list gauge outfit is destination node,
If the node of the doubly linked list gauge outfit of the deletion is destination node, continue to monitor the array,
If the node of the doubly linked list gauge outfit of the deletion is not destination node, the section of the doubly linked list gauge outfit of the deletion is obtained
The node of predetermined condition is met around point, and the acquired node for meeting the predetermined condition is added into the doubly linked list;With
And
Continue the node of the deletion doubly linked list gauge outfit, and the node for the doubly linked list gauge outfit deleted added into delete list,
Wherein, the operation for the acquired node for meeting predetermined condition being added into the doubly linked list includes:
The actual cost of each node in doubly linked list is recalculated, to update the evaluation function value of each node,
It is ranked up, since at the gauge outfit or table tail of doubly linked list, is led to opening list according to the evaluation function value after renewal
Cross insertion sort mode or Binary ordering mode finds the insertion position of node, the node for meeting predetermined condition is inserted into this inserts
Enter position.
2. map road-seeking method as claimed in claim 1, wherein the node of the doubly linked list gauge outfit for obtaining the deletion
The step of surrounding meets the node of the predetermined condition includes:
Obtaining the node of the doubly linked list gauge outfit of the deletion can directly reach, be not belonging to the delete list and non-obstacle
Node.
3. map road-seeking method as claimed in claim 1, in addition to step:
When it is determined that the node of the doubly linked list gauge outfit of the deletion is destination node, the node in the delete list is obtained
Take the shortest path between the start node and the destination node.
4. map road-seeking method as claimed in claim 1, wherein the scope of the predetermined value is 1000.
5. a kind of map pathfinding equipment, the map includes the array with multiple nodes, the equipment includes:
List memory, list and delete list are opened suitable for storage, and the unlatching list includes node to be detected, deletion row
Table includes the node deleted from list is opened.
First processor, suitable for judging whether the quantity of the array interior joint is less than predetermined value, if it is determined that saved in the array
The quantity of point is less than predetermined value, then the unlatching list is built up into doubly linked list;
Monitor, suitable for monitoring the array, to obtain the start node and destination node of map pathfinding, and starts section by described
Point adds the doubly linked list;
Second processor, the node suitable for deleting the doubly linked list gauge outfit, and the node for the doubly linked list gauge outfit deleted is added
Enter delete list;And
3rd processor, suitable for judging whether the node of deleted doubly linked list gauge outfit is destination node,
If the node of the doubly linked list gauge outfit of the deletion is destination node, continue to monitor the array,
If the node of the doubly linked list gauge outfit of the deletion is not destination node, the section of the doubly linked list gauge outfit of the deletion is obtained
The node of the predetermined condition is met around point, and the acquired node for meeting the predetermined condition is added into the Two-way Chain
Table;And
Indicate that second processor continues to delete the node of the doubly linked list gauge outfit, and by the node for the doubly linked list gauge outfit deleted
Add delete list,
Wherein, the operation for the acquired node for meeting predetermined condition being added into the doubly linked list includes:
The actual cost of each node in doubly linked list is recalculated, to update the evaluation function value of each node,
It is ranked up, since at the gauge outfit or table tail of doubly linked list, is led to opening list according to the evaluation function value after renewal
Cross insertion sort mode or Binary ordering mode finds the insertion position of node, the node for meeting predetermined condition is inserted into this inserts
Enter position.
6. map pathfinding equipment as claimed in claim 5, the 3rd processor obtains the deletion according to following manner
The node of the predetermined condition is met around the node of doubly linked list gauge outfit:
Obtaining the node of the doubly linked list gauge outfit of the deletion can directly reach, be not belonging to the delete list and non-obstacle
Node.
7. map pathfinding equipment as claimed in claim 5, the 3rd processor is further adapted for:
When it is determined that the node of the doubly linked list gauge outfit of the deletion is destination node, the node in the delete list is obtained
Take the shortest path between the start node and the destination node.
8. map pathfinding equipment as claimed in claim 5, wherein the scope of the predetermined value is 1000.
9. a kind of computing terminal, including such as any one of claim 5-8 map pathfinding equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710495173.9A CN107292107A (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method, equipment and computing terminal |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410720889.0A CN104462805B (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method based on A* algorithms, equipment and computing terminal |
CN201710495173.9A CN107292107A (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method, equipment and computing terminal |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410720889.0A Division CN104462805B (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method based on A* algorithms, equipment and computing terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107292107A true CN107292107A (en) | 2017-10-24 |
Family
ID=52908834
Family Applications (4)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710534025.3A Active CN107247805B (en) | 2014-12-02 | 2014-12-02 | Path searching method, device and computing terminal based on A-x algorithm |
CN201410720889.0A Active CN104462805B (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method based on A* algorithms, equipment and computing terminal |
CN201710495173.9A Pending CN107292107A (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method, equipment and computing terminal |
CN201710555998.5A Pending CN107357581A (en) | 2014-12-02 | 2014-12-02 | A kind of game component and computing terminal |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710534025.3A Active CN107247805B (en) | 2014-12-02 | 2014-12-02 | Path searching method, device and computing terminal based on A-x algorithm |
CN201410720889.0A Active CN104462805B (en) | 2014-12-02 | 2014-12-02 | A kind of map road-seeking method based on A* algorithms, equipment and computing terminal |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710555998.5A Pending CN107357581A (en) | 2014-12-02 | 2014-12-02 | A kind of game component and computing terminal |
Country Status (1)
Country | Link |
---|---|
CN (4) | CN107247805B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142839A (en) * | 2019-12-30 | 2020-05-12 | 武汉轻工大学 | Double-linked list folding-half insertion sorting method, device, equipment and storage medium |
CN113368499A (en) * | 2020-03-09 | 2021-09-10 | 柏项网络科技(上海)有限公司 | Path finding method and device and computer readable storage medium |
CN114234986A (en) * | 2021-10-29 | 2022-03-25 | 广州小鹏自动驾驶科技有限公司 | Map data processing method and device |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107754312B (en) * | 2017-10-25 | 2020-09-11 | 网易(杭州)网络有限公司 | Connectivity detection method and device, storage medium and terminal |
CN108489500A (en) * | 2018-03-13 | 2018-09-04 | 安徽江淮汽车集团股份有限公司 | A kind of global path planning method and system based on Energy Consumption Economy |
CN108815850B (en) * | 2018-06-15 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Method and client for controlling path finding of analog object |
CN109062223A (en) * | 2018-09-06 | 2018-12-21 | 智久(厦门)机器人科技有限公司上海分公司 | Method, apparatus, equipment and the storage medium in auto-control equipment moving path |
CN109260709B (en) * | 2018-09-11 | 2022-02-22 | 深圳市创梦天地科技有限公司 | Dynamic route generation method and device |
CN111444667B (en) * | 2018-12-29 | 2023-03-21 | 杭州广立微电子股份有限公司 | Method for quickly deleting transistor data in GDSII file |
CN112619150B (en) * | 2020-12-15 | 2022-04-15 | 成都完美天智游科技有限公司 | Path finding method and device based on game scene, equipment and medium |
CN113295166B (en) * | 2021-05-12 | 2024-02-13 | 广州达泊智能科技有限公司 | AGV path planning method, electronic device and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080192754A1 (en) * | 2007-02-12 | 2008-08-14 | Yoon-Jin Ku | Routing system and method for managing rule entries of ternary content addressable memory in the same |
CN101276334A (en) * | 2007-03-29 | 2008-10-01 | 上海新跃仪表厂 | Linked list implementing method for quickly searching data |
CN102749084A (en) * | 2012-07-10 | 2012-10-24 | 南京邮电大学 | Path selecting method oriented to massive traffic information |
CN103581358A (en) * | 2013-10-18 | 2014-02-12 | 汉柏科技有限公司 | IP address list matching method and device |
CN103716237A (en) * | 2013-12-25 | 2014-04-09 | 广东天拓资讯科技有限公司 | Path-finding method and device utilizing binary heap sorting |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050113093A (en) * | 2004-05-28 | 2005-12-01 | (주)오픈이앤씨 | Path finding engine for massive multi-player online role playing game |
US20060047421A1 (en) * | 2004-08-25 | 2006-03-02 | Microsoft Corporation | Computing point-to-point shortest paths from external memory |
CN100517346C (en) * | 2006-01-04 | 2009-07-22 | 腾讯科技(深圳)有限公司 | Path-finding method for optimal path |
JP5353291B2 (en) * | 2009-02-19 | 2013-11-27 | ソニー株式会社 | Guide route delivery apparatus, guide route delivery method, and guide route delivery program |
US8459333B2 (en) * | 2009-05-06 | 2013-06-11 | Siemens Aktiengesellschaft | Method for producing rolling stock rolled in a rolling train of a rolling mill, control and/or regulation device for rolling mill for producing rolled rolling stock, rolling mill for producing rolled rolling stock, machine readable program code and storage medium |
CN102841974A (en) * | 2011-06-24 | 2012-12-26 | 镇江华扬信息科技有限公司 | Game path searching simplification method |
JP5180357B1 (en) * | 2011-09-29 | 2013-04-10 | ファナック株式会社 | Mold clamping force setting method and mold clamping force setting device for injection molding machine |
CN103186710B (en) * | 2011-12-31 | 2016-08-31 | 北京金山软件有限公司 | Optimum route search method and system |
CN103092207B (en) * | 2013-02-27 | 2015-06-03 | 东华大学 | Robot maze search method |
CN103198234A (en) * | 2013-04-25 | 2013-07-10 | 腾讯科技(深圳)有限公司 | Routing method and routing device |
CN103714234B (en) * | 2013-08-09 | 2017-01-25 | 网易(杭州)网络有限公司 | Method and equipment for determining moving paths of objects in games |
CN103529843B (en) * | 2013-10-17 | 2016-07-13 | 电子科技大学中山学院 | Lambda path planning algorithm |
CN103971008A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Improved heuristic A * algorithm |
CN104156459B (en) * | 2014-08-20 | 2016-07-06 | 焦点科技股份有限公司 | A kind of method and system of the efficient pathfinding based on identical expense grid |
-
2014
- 2014-12-02 CN CN201710534025.3A patent/CN107247805B/en active Active
- 2014-12-02 CN CN201410720889.0A patent/CN104462805B/en active Active
- 2014-12-02 CN CN201710495173.9A patent/CN107292107A/en active Pending
- 2014-12-02 CN CN201710555998.5A patent/CN107357581A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080192754A1 (en) * | 2007-02-12 | 2008-08-14 | Yoon-Jin Ku | Routing system and method for managing rule entries of ternary content addressable memory in the same |
CN101276334A (en) * | 2007-03-29 | 2008-10-01 | 上海新跃仪表厂 | Linked list implementing method for quickly searching data |
CN102749084A (en) * | 2012-07-10 | 2012-10-24 | 南京邮电大学 | Path selecting method oriented to massive traffic information |
CN103581358A (en) * | 2013-10-18 | 2014-02-12 | 汉柏科技有限公司 | IP address list matching method and device |
CN103716237A (en) * | 2013-12-25 | 2014-04-09 | 广东天拓资讯科技有限公司 | Path-finding method and device utilizing binary heap sorting |
Non-Patent Citations (4)
Title |
---|
YNGVI BJORNSSON 等: "Fringe Search: Beating A* at Pathfinding on Game Maps", 《PROCEEDINGS OF THE 2005 IEEE SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE AND GAMES (CIG05》 * |
双向A_算法在军事路径规划中的应用_郝振国 等: "双向A_算法在军事路径规划中的应用", 《计算机工程与应用》 * |
李子强 等: "基于Silverlight网页游戏的寻径优化算法", 《计算机工程与应用》 * |
蒯锐 等: "自动寻路A_算法的应用及优化设计", 《上海应用技术学院学报(自然科学版)》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142839A (en) * | 2019-12-30 | 2020-05-12 | 武汉轻工大学 | Double-linked list folding-half insertion sorting method, device, equipment and storage medium |
CN113368499A (en) * | 2020-03-09 | 2021-09-10 | 柏项网络科技(上海)有限公司 | Path finding method and device and computer readable storage medium |
CN113368499B (en) * | 2020-03-09 | 2022-09-06 | 柏项网络科技(上海)有限公司 | Path finding method and device and computer readable storage medium |
CN114234986A (en) * | 2021-10-29 | 2022-03-25 | 广州小鹏自动驾驶科技有限公司 | Map data processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104462805B (en) | 2017-05-31 |
CN107247805B (en) | 2020-11-06 |
CN107247805A (en) | 2017-10-13 |
CN104462805A (en) | 2015-03-25 |
CN107357581A (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104462805B (en) | A kind of map road-seeking method based on A* algorithms, equipment and computing terminal | |
US11227006B2 (en) | Content-aware filter options for media object collections | |
WO2019120068A1 (en) | Thumbnail display control method and mobile terminal | |
CN108153900A (en) | A kind of image processing method and mobile terminal | |
CN109976930A (en) | Detection method, system and the storage medium of abnormal data | |
CN108156407A (en) | A kind of video clipping method and terminal | |
CN108171267A (en) | User group partitioning method and device, information push method and device | |
CN109598250B (en) | Feature extraction method, device, electronic equipment and computer readable medium | |
CN107665147A (en) | The cleaned system method and mobile device of a kind of mobile device | |
CN110366100A (en) | Localization method, positioning device, readable storage medium storing program for executing and the terminal device of terminal | |
CN107766134A (en) | The cleaned system method and mobile device of a kind of mobile device | |
CN109308516A (en) | A kind of method and apparatus of image procossing | |
CN109634481A (en) | Text display method, device, mobile terminal and storage medium | |
CN107314777A (en) | The method and mobile terminal of a kind of dynamic setting meter step threshold value | |
CN104516643A (en) | Method and device for start application, and computing terminal | |
CN106484614A (en) | A kind of method of verification picture processing effect, device and mobile terminal | |
CN111669495A (en) | Photographing method, photographing device and electronic equipment | |
CN105630166A (en) | Control method and device for mobile terminal and mobile terminal | |
CN107291531A (en) | Array manipulation method, device, mobile terminal and computer-readable recording medium | |
CN110851189B (en) | Method and device for starting application program, readable storage medium and electronic equipment | |
JP2021508116A (en) | Recommendation methods, devices, storage media, terminal equipment, and programs | |
CN109771950A (en) | Setting method, equipment and the storage medium of node map | |
CN104484513B (en) | A kind of ground drawing generating method and computing device | |
CN106294123B (en) | The matched method, device and mobile terminal in path in a kind of test of traversal | |
CN108549702A (en) | A kind of method for cleaning and mobile terminal of the picture library of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171024 |
|
RJ01 | Rejection of invention patent application after publication |