CN109597866B - Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network - Google Patents

Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network Download PDF

Info

Publication number
CN109597866B
CN109597866B CN201811396521.8A CN201811396521A CN109597866B CN 109597866 B CN109597866 B CN 109597866B CN 201811396521 A CN201811396521 A CN 201811396521A CN 109597866 B CN109597866 B CN 109597866B
Authority
CN
China
Prior art keywords
road
query
moving object
moving
node
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
Application number
CN201811396521.8A
Other languages
Chinese (zh)
Other versions
CN109597866A (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.)
Chengdu Univeristy of Technology
Original Assignee
Chengdu Univeristy of Technology
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 Chengdu Univeristy of Technology filed Critical Chengdu Univeristy of Technology
Priority to CN201811396521.8A priority Critical patent/CN109597866B/en
Publication of CN109597866A publication Critical patent/CN109597866A/en
Application granted granted Critical
Publication of CN109597866B publication Critical patent/CN109597866B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Traffic Control Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a traffic rule-based method for monitoring continuous nearest neighbor of a moving object in a road network, which comprises the following steps: s1, establishing a road network model; s2, establishing an expansion tree of the query object q according to the road network model and initializing the expansion tree to obtain a k neighbor set of the query object q; and S3, updating the road network model according to the current position of the query object q and returning to the step S2, thereby realizing the monitoring of the continuous nearest neighbor of the mobile object in the road network. The latest k neighbor of the query object q is stored in the q.result, and when the k neighbor of the query object q is provided, the current query time t and a query object set { q } are used as parameters to call the method, so that the latest k neighbor q.result of the query object q at the time t can be obtained. The invention can continuously update the road network and the expansion tree, so that the method is completely applied to the monitoring of the continuous nearest neighbor of the mobile object in the road network.

Description

Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network
Technical Field
The invention relates to the field of space-time query of moving objects, in particular to a method for monitoring continuous nearest neighbor of a moving object in a road network based on traffic rules.
Background
With the rapid development of mobile computing, a number of mobile object-based applications have emerged that require efficient mobile object spatiotemporal queries. The k-Nearest Neighbor (k-NN) query is a basic problem in the research field of mobile object databases, and is widely concerned by researchers.
Early studies were primarily directed to static data spaces, looking for current nearest neighbors. With the application of the method, a plurality of k-NN-based extension researches are generated, and continuous nearest neighbor query (continuous k-NN, abbreviated as CkNN) is one of the most important extensions. It means that the moving object moves continuously in space, and the query can return the latest k neighbor of the query object in real time.
Some continuous k nearest neighbor query methods proposed earlier only aim at euclidean distance space, and cannot be used for continuous k nearest neighbor query of a road network. Another part of the study is designed to handle continuous nearest neighbor queries of static objects, i.e. query objects remain static. However, these methods have problems that the moving environment characteristics of the road network and the speed and direction of the moving object are not combined, and the practicability is poor.
Disclosure of Invention
Aiming at the defects in the prior art, the method for monitoring the continuous nearest neighbor of the moving object in the road network based on the traffic rules solves the problem that the prior k nearest neighbor query method is poor in practicability in the road network.
In order to achieve the purpose of the invention, the invention adopts the technical scheme that:
a method for monitoring the continuous nearest neighbor of a moving object in a road network based on traffic rules is provided, which comprises the following steps:
s1, obtaining the mobile object and the query object q, establishing a road network model containing traffic rules, and obtaining a road network topological structure;
s2, establishing an expansion tree of the query object q according to the road network model and initializing the expansion tree to obtain a k neighbor set of the query object q;
s3, updating the road network model according to the current positions of the mobile object and the query object q and the road network topological structure;
and S4, judging whether the nearest neighbor of the query object q needs to be monitored, if so, returning to the step S2, otherwise, finishing monitoring and finishing monitoring the continuous nearest neighbor of the mobile object in the road network.
Further, the road network model comprises a road model TedgeRoad intersection model TnodeMoving object model TobjAnd query object model Tquery
Road model TedgeIs a 6-tuple (rid,<ns,ne>,<ei.wp,ei.wn>,<spmax,snmax>,Sobjil), where rid is the number of the road;<ns,ne>respectively a starting point and an end point of the road;<ei.wp,ei.wn>the weights of the forward direction and the reverse direction of the road are respectively;<spmax,snmax>the road positive direction and the road negative direction maximum speed limit are respectively set; sobjIs the current moving object set on the road; IL is a query list affected by a road, which is a triplet<q,n,d>N is the starting point n of the roadsOr end point neD is a number which indicates that the query object q is influenced by the road, and the influence section is the range of the road starting from the node n by d, namely, all the objects in the range of the road starting from n by d belong to the k neighbor set of the query object q;
road intersection model TnodeIs a 2-tuple (contid, rules), wherein the contid represents the connection id; rules represents the set of traffic rules for the connection<RoadIDfrom,ENDfrom,RoadIDto,ENDto>;RoadIDfromAnd RoadIDtoIndicating respectively the road id, END on which the moving object is going to leave and enterfromIs a Boolean type data, and represents that the mobile object leaves the roadIDfromWhether it is at the end point n of the roadeEND if at the END of the roadfromIs 1, otherwise ENDfromIs 0; ENDtoRoadID indicating the entry of a moving object into a roadtoWhether it is at the end point n of the roadeEND if at the END of the roadtoIs 1, otherwise at the start of the road, ENDtoIs 0;
moving object model TobjIs 5-tuple (oid, e)j,tu,dist,vi) Wherein oid represents the number of the moving object; e.g. of the typejIndicating a road on which the moving object is located; t is tuIndicating the latest update time of the mobile object; dist indicates that the moving object is at tuThe time and the edge ejStart node n ofsThe distance dist therebetween; v. ofiIndicates that the moving object is at tuThe moving speed at the moment is positive and indicates that the moving object moves from the starting point to the end point, and otherwise indicates that the moving object moves from the end point to the starting point;
querying an object model as TqueryIncluding information of the mobile object, a current kNN set q.result of the query object q, a distance q.kNN _ dist from the query object q to the kth nearest neighbor, and an extended tree T of the query object qq
Further, step S2 specifically includes the following steps:
s2-1, expanding the road network along the moving direction of the query object q by adopting Dijkstra algorithm from the query object q, and storing the minimum pile H of road intersections encountered in the expansion processnodeAnd for depositing a set O of mobile objects encountered during the expansion processencountInitialized to null, expanded tree of query object qSetting a root node as a point q, initializing a query result q.result, and simultaneously setting the shortest distance from the point q to all nodes in the road network as an infinite distance;
s2-2, acquiring the road connection v of the moving object q in the road moving direction according to the moving speed of the moving object q, and recording the influence of a section from a point q to a point v on the road on the query object q;
s2-3, inserting the obtained road connection v into the expansion tree and the minimum heap HnodeRecording the shortest network distance from the q point to the v point;
s2-4, adding the moving object on the road qv into k neighbor of the query object q, and simultaneously leading the query object q to reach any moving object OiIs inserted into the moving object set O by keyencountPerforming the following steps; wherein O isiE is O, and O is a set of all moving objects on the road qv;
s2-5, judging whether the current k neighbor set of the query object q contains k objects, if so, obtaining the k neighbor set of the query object q and entering the step S3, otherwise, entering the step S2-6;
s2-6, from the smallest pile HnodeExtracting the node n with the minimum key to obtain the node n in the expansion tree TqThe road from the father node to the node n is deleted;
s2-7, sequentially selecting a division node n in the expansion tree TqAll adjacent nodes n except the parent node inadjAnd obtaining the k neighbor set of the query object q until whether the current k neighbor set of the query object q contains k objects.
Further, step S3 specifically includes the following steps:
s3-1, updating the moving object model Tobj: according to moving object OiCurrently on a new road enewUpdate of the mobile object O by the position information oniIn a moving object model TobjThe corresponding information in (1);
s3-2, updating the road model Tedge: according to the updated moving object OiId and moving object model TobjFinding a moving object containing OiRoad ejAnd from the roadejDelete moving object e in the moving object list of (2)jTo move an object ejJoining a new road enewUpdating the weight of each road in the moving object list;
s3-3, updating the query model Tquery: according to the node n and all adjacent nodes nadjUpdating k neighbor set q.result of query object q, network distance q.kNN _ dist from query object q to k neighbor and moving object set O by the formed moving object information on the roadencount
Further, the moving object set O is updated in step S3-3encountThe specific method comprises the following steps:
s3-3-1, collecting O from original moving objectencountDeleting the mobile objects which do not belong to the roads on the subtree taking the position of the current query object q as the root node;
s3-3-2, judging that the object is reserved in the moving object set OencountIf the number of the moving objects is larger than or equal to k, the step S3-3-4 is executed, otherwise, the step S3-3-3 is executed;
s3-3-3, using the position of the current query object q as the root node, adopting the same method as the steps S2-1 to S2-4 to the mobile object set O with part of the mobile objects deletedencountSupplementing;
s3-3-4, subtracting the moving distance of the query object from the distance from the reserved moving object to the position above the query object q to obtain the query object q at the current moment and an updated moving object set OencountOf each moving object.
The invention has the beneficial effects that: the latest k neighbor of a query object q is stored in q.result, when the k neighbor of the query object q is provided, the current query time t and a query object set { q } are used as parameters to call the method, the latest k neighbor q.result of the query object q at the moment t is obtained, and the latest k neighbor q.result is directly returned. The invention updates the road network and the expansion tree at each query time point, so that the method is completely applied to the monitoring of the continuous nearest neighbor of the moving object in the road network, and is beneficial to a driver to select a passenger receiving sequence or a passenger receiving route.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a schematic diagram of a road network including traffic rules and a 4NN query according to an embodiment;
FIG. 3 is a q-point based tree derived from FIG. 2;
FIG. 4 is a diagram illustrating an updated tree for 3 mobile objects in the embodiment;
FIG. 5 is a diagram of the expanded tree of FIG. 4 after the partial mark has been moved.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
As shown in fig. 1, the method for monitoring the continuous nearest neighbor of the moving object in the road network based on the traffic rules comprises the following steps:
s1, obtaining the mobile object and the query object q, establishing a road network model containing traffic rules, and obtaining a road network topological structure;
s2, establishing an expansion tree of the query object q according to the road network model and initializing the expansion tree to obtain a k neighbor set of the query object q;
s3, updating the road network model according to the current positions of the mobile object and the query object q and the road network topological structure;
and S4, judging whether the nearest neighbor of the query object q needs to be monitored, if so, returning to the step S2, otherwise, finishing monitoring and finishing monitoring the continuous nearest neighbor of the mobile object in the road network.
The road network model comprises a road model TedgeRoad intersection model TnodeMoving object model TobjAnd query object model Tquery
Road model TedgeIs a 6-tuple (rid,<ns,ne>,<ei.wp,ei.wn>,<spmax,snmax>,Sobjil), where rid is the number of the road;<ns,ne>respectively a starting point and an end point of the road;<ei.wp,ei.wn>the weights of the forward direction and the reverse direction of the road are respectively;<spmax,snmax>the road positive direction and the road negative direction maximum speed limit are respectively set; sobjIs the current moving object set on the road; IL is a query list affected by a road, which is a triplet<q,n,d>N is the starting point n of the roadsOr end point neD is a number which indicates that the query object q is influenced by the road, and the influence section is the range of the road starting from the node n by d, namely, all the objects in the range of the road starting from n by d belong to the k neighbor set of the query object q;
road intersection model TnodeIs a 2-tuple (contid, rules), wherein the contid represents the connection id; rules represents the set of traffic rules for the connection<RoadIDfrom,ENDfrom,RoadIDto,ENDto>;RoadIDfromAnd RoadIDtoIndicating respectively the road id, END on which the moving object is going to leave and enterfromIs a Boolean type data, and represents that the mobile object leaves the roadIDfromWhether it is at the end point n of the roadeEND if at the END of the roadfromIs 1, otherwise ENDfromIs 0; ENDtoRoadID indicating the entry of a moving object into a roadtoWhether it is at the end point n of the roadeEND if at the END of the roadtoIs 1, otherwise at the start of the road, ENDtoIs 0;
moving object model TobjIs 5-tuple (oid, e)j,tu,dist,vi) Wherein oid represents the number of the moving object; e.g. of the typejIndicating a road on which the moving object is located;tuindicating the latest update time of the mobile object; dist indicates that the moving object is at tuThe time and the edge ejStart node n ofsThe distance dist therebetween; v. ofiIndicates that the moving object is at tuThe moving speed at the moment is positive and indicates that the moving object moves from the starting point to the end point, and otherwise indicates that the moving object moves from the end point to the starting point;
querying an object model as TqueryIncluding information of the mobile object, a current kNN set q.result of the query object q, a distance q.kNN _ dist from the query object q to the kth nearest neighbor, and an extended tree T of the query object qq
Step S2 specifically includes the following steps:
s2-1, expanding the road network along the moving direction of the query object q by adopting Dijkstra algorithm from the query object q, and storing the minimum pile H of road intersections encountered in the expansion processnodeAnd for depositing a set O of mobile objects encountered during the expansion processencountInitializing to be empty, setting an extended tree root node of a query object q as a q point, initializing a query result q.result, and simultaneously setting the shortest distance from the q point to all nodes in a road network as an infinite;
s2-2, acquiring the road connection v of the moving object q in the road moving direction according to the moving speed of the moving object q, and recording the influence of a section from a point q to a point v on the road on the query object q;
s2-3, inserting the obtained road connection v into the expansion tree and the minimum heap HnodeRecording the shortest network distance from the q point to the v point;
s2-4, adding the moving object on the road qv into k neighbor of the query object q, and simultaneously leading the query object q to reach any moving object OiIs inserted into the moving object set O by keyencountPerforming the following steps; wherein O isiE is O, and O is a set of all moving objects on the road qv;
s2-5, judging whether the current k neighbor set of the query object q contains k objects, if so, obtaining the k neighbor set of the query object q and entering the step S3, otherwise, entering the step S2-6;
s2-6, from the smallest pile HnodeExtracting the node n with the minimum key to obtain the node n in the expansion tree TqThe road from the father node to the node n is deleted;
s2-7, sequentially selecting a division node n in the expansion tree TqAll adjacent nodes n except the parent node inadjAnd obtaining the k neighbor set of the query object q until whether the current k neighbor set of the query object q contains k objects.
Step S3 specifically includes the following steps:
s3-1, updating the moving object model Tobj: according to moving object OiCurrently on a new road enewUpdate of the mobile object O by the position information oniIn a moving object model TobjThe corresponding information in (1);
s3-2, updating the road model Tedge: according to the updated moving object OiId and moving object model TobjFinding a moving object containing OiRoad ejAnd from road ejDelete moving object e in the moving object list of (2)jTo move an object ejJoining a new road enewUpdating the weight of each road in the moving object list;
s3-3, updating the query model Tquery: according to the node n and all adjacent nodes nadjUpdating k neighbor set q.result of query object q, network distance q.kNN _ dist from query object q to k neighbor and moving object set O by the formed moving object information on the roadencount
Updating the moving object set O in step S3-3encountThe specific method comprises the following steps:
s3-3-1, collecting O from original moving objectencountDeleting the mobile objects which do not belong to the roads on the subtree taking the position of the current query object q as the root node;
s3-3-2, judging that the object is reserved in the moving object set OencountIf the number of the moving objects is larger than or equal to k, the step S3-3-4 is executed, otherwise, the step S3-3-3 is executed;
s3-3-3, using the position of the current query object q as the root node, adopting the same method as the steps S2-1 to S2-4 to the mobile object set O with part of the mobile objects deletedencountSupplementing;
s3-3-4, subtracting the moving distance of the query object from the distance from the reserved moving object to the position above the query object q to obtain the query object q at the current moment and an updated moving object set OencountOf each moving object.
In an embodiment of the present invention, fig. 2 is a schematic diagram of a road network and 4NN query, and fig. 3 is a schematic diagram of an extended tree based on fig. 2, where q.knn _ dist is 50, that is, a mobile object q arrives at a mobile object p4The network distance of (a). Wherein p1-p6 are all moving objects, n1-n13All are nodes, and the node q is a leaf node, a dotted line and a node (n) issued by the dotted line of the expanded tree3、n5、n6、n8And n12) Not belonging to the tree, and mobile objects p1, p2, p3, p4 points and p6 other than the node q do not belong to the tree, and the number of parentheses beside the node indicates the shortest network distance from the mobile object q to the node, and for n11Lower leaf node representing road n11n12Upper distance n11Division position of length 10. At the next query time of the mobile object q, it is assumed that the locations of 3 mobile objects p4, p5, and p6 are updated, and the update type includes that the mobile object is still in the extended tree TqInternal, still expanding tree TqOuter, outside-in and inside-out, the first two update types do not affect the result change, the latter two cause the k neighbor result of the moving object q to change, and fig. 4 shows the update (moving object p6 is moved to n)12The direction is moved a certain distance but still outside the extended tree, and the moving object p4 moves to n5The direction is moved by a certain distance and moves out of the range of the extended tree, and the moving object p5 moves from the road n13n1Enters the road n1n2) The subsequent moving object position. When the number of moving objects moving out of the expansion tree does not exceed the number of moving objects entering the expansion tree, the graphThe partial labels in 4 will move a certain distance towards the root node, resulting in the extended tree shown in fig. 5.
New location q from query object qnewIt can be divided into 2 types of updates:
type 1 (query object exit expansion tree) at this time qnewLocated outside the tree.
Type 2 (query object cruises in the extended tree) q at this timenewStill within the spanning tree.
In the mobile environment of fig. 2, the query object q has moved to the road n5n4The above. As can be seen from the expanded tree diagram 3 corresponding to FIG. 2, the road n5n4Is not in the extension tree range, so that the extension tree and O cannot be utilizedencountThe k neighbors of the current q are calculated by the middle information, and at this time, the following steps need to be executed: 1. deleting q from e.IL of all roads in the expanded tree; 2. reinitializing the k neighbors.
In the mobile environment of fig. 2, the query object q has moved to the road n1n7The above. At this time qnewAt branch n1n7In qnewAs a subtree of the root node to the current qnewThe k-neighbor computation of (a) is still useful and therefore can utilize this information. After the query object is updated, the road condition and O in the data model are requiredencountAnd k neighbor results are maintained, and the main steps are as follows:
1. modifying a road model Tedge: after the query object is updated, the roads that originally affected the query may no longer affect the query, so the object q needs to be deleted from the e.il of these roads. Here, it is only necessary to find the nodes not belonging to q in the extended treenewThose roads being subtrees of the root node, e.g. n in FIG. 31n2、n1n11And so on, deleting q from e.il of these roads.
2. Maintenance of Oencount: here, it is required that: (1) from OencountDeletion in not belonging to qnewIs the object of the road on the subtree of the root node. (2) Updating OencountDistance of the remaining objectFrom, only the moving distance of q needs to be subtracted from the original distance.
3. Maintaining a query model Tquery: as can be seen from the spanning tree, this time, qnewAll objects on the subtree which are root nodes still belong to qnewK is close to O through the pairencountAfter maintenance, the updated information of these objects is stored in OencountIn and OencountThe target of k neighbor which originally does not belong to q is likely to become qnewK is close to and better than non-OencountAnd (4) the target. The following steps are therefore performed at this point:
(1) mixing O withencountAdding the first k objects into a new k neighbor;
(2) if there are not enough k, then pair is qnewFor extending the subtree of the root node, the information of the subtree needs to be updated first, i.e. q is modifiednewDistances to nodes in a subtree, and then initializing H with leaf nodes of the subtreenodeAnd expanding the tree to obtain an updated expanded tree, and continuously maintaining the O in the expanding processencountAnd (4) object information.
When the weight of the road in the expanded tree changes, 2 cases are divided:
(1) and (5) processing the reduction of the road weight. For example, the road n in FIG. 21n11The weight is decreased.
This update may cause a mobile object not belonging to the tree to enter the tree, e.g. road n11n12Of moving object p6It is possible to enter the expansion tree to replace other k neighbors while T is in the expansion treeqOther part of (i.e. divide by n)1n11And with n11Subtree of root node), the distance and shortest path to q from them may change, but only T will changeqIn a subtree with node n as root, n must satisfy dist (q, n)>dist(q,n11) Otherwise no change occurs. Thus, when the road n is1n11When the weight is reduced, the following 3 steps are completed:
a) from TqDeleting a subtree having node n as root node, n satisfying dist (q, n)>dist(q,n11) And deleting q from IL of the edge contained in the subtree and simultaneously deleting q from OencountDelete the affected object;
b) update with n11Keys of all objects and nodes on subtrees of the root node, and modifying OencountCorresponding object information;
c) initializing H with leaf nodes of the current expansion treenodeAnd expanding the expansion tree.
(2) And (5) processing of increasing the road weight. For example, the road n in FIG. 21n7The weight increases.
At this time, q reaches n1n7The distance of the moving object o above should be modified to the current distance plus the weight change value. In the extended tree at n7The shortest path and distance of moving objects on all roads as the root node will have an effect (since the objects may arrive from q without passing n)1And arrives through other nodes), so it is necessary:
a) delete n from the expanded tree7A subtree which is a root node;
b) expanding the current expansion tree (initializing H by leaf nodes in the expansion tree)nodeSimultaneously to OencountMaintenance is performed).
In summary, the latest k neighbor of the query object q is stored in the q.result, and when the k neighbor of the query object q is provided, the current query time t and the query object set { q } are used as parameters to call the method, so as to obtain the latest k neighbor q.result of the query object q at the time t and directly return the latest k neighbor q.result. The method updates the road network and the expansion tree at each query time point, so that the method is completely applied to monitoring the continuous nearest neighbor of the mobile object in the road network.

Claims (4)

1. A method for monitoring the continuous nearest neighbor of a moving object in a road network based on traffic rules is characterized in that: the method comprises the following steps:
s1, obtaining the mobile object and the query object q, establishing a road network model containing traffic rules, and obtaining a road network topological structure;
s2, establishing an expansion tree of the query object q according to the road network model and initializing the expansion tree to obtain a k neighbor set of the query object q;
s3, updating the road network model according to the current positions of the mobile object and the query object q and the road network topological structure;
s4, judging whether the nearest neighbor of the query object q needs to be monitored, if so, returning to the step S2, otherwise, finishing monitoring and finishing monitoring the continuous nearest neighbor of the mobile object in the road network;
the step S2 specifically includes the following steps:
s2-1, expanding the road network along the moving direction of the query object q by adopting Dijkstra algorithm from the query object q, and storing the minimum pile H of road intersections encountered in the expansion processnodeAnd for depositing a set O of mobile objects encountered during the expansion processencountInitializing to be empty, setting an extended tree root node of a query object q as a q point, initializing a query result q.result, and simultaneously setting the shortest distance from the q point to all nodes in a road network as an infinite;
s2-2, acquiring the road connection v of the moving object q in the road moving direction according to the moving speed of the moving object q, and recording the influence of a section from a point q to a point v on the road on the query object q;
s2-3, inserting the obtained road connection v into the expansion tree and the minimum heap HnodeRecording the shortest network distance from the q point to the v point;
s2-4, adding the moving object on the road qv into k neighbor of the query object q, and simultaneously leading the query object q to reach any moving object OiIs inserted into the moving object set O by keyencountPerforming the following steps; wherein O isiE is O, and O is a set of all moving objects on the road qv;
s2-5, judging whether the current k neighbor set of the query object q contains k objects, if so, obtaining the k neighbor set of the query object q and entering the step S3, otherwise, entering the step S2-6;
S2-6. from the smallest pile HnodeExtracting the node n with the minimum key to obtain the node n in the expansion tree TqThe road from the father node to the node n is deleted;
s2-7, sequentially selecting a division node n in the expansion tree TqAll adjacent nodes n except the parent node inadjAnd obtaining the k neighbor set of the query object q until whether the current k neighbor set of the query object q contains k objects.
2. The method according to claim 1, wherein the method comprises the following steps: the road network model comprises a road model TedgeRoad intersection model TnodeMoving object model TobjAnd query object model Tquery
The road model TedgeIs a 6-tuple (rid,<ns,ne>,<ei.wp,ei.wn>,<spmax,snmax>,Sobjil), where rid is the number of the road;<ns,ne>respectively a starting point and an end point of the road;<ei.wp,ei.wn>the weights of the forward direction and the reverse direction of the road are respectively;<spmax,snmax>the road positive direction and the road negative direction maximum speed limit are respectively set; sobjIs the current moving object set on the road; IL is a query list affected by roads, being a triplet<q,n,d>N is the starting point n of the roadsOr end point neD is a number which indicates that the query object q is influenced by the road, and the influence section is the range of the road starting from the node n by d, namely, all the objects in the range of the road starting from n by d belong to the k neighbor set of the query object q;
the road intersection model TnodeIs a 2-tuple (contid, rules), wherein the contid represents the connection id; rules represents the set of traffic rules for the connection<RoadIDfrom,ENDfrom,RoadIDto,ENDto>;RoadIDfromAnd RoadIDtoIndicating respectively the road id, END on which the moving object is going to leave and enterfromIs a Boolean type data, and represents that the mobile object leaves the roadIDfromWhether it is at the end point n of the roadeEND if at the END of the roadfromIs 1, otherwise ENDfromIs 0; ENDtoRoadID indicating the entry of a moving object into a roadtoWhether it is at the end point n of the roadeEND if at the END of the roadtoIs 1, otherwise at the start of the road, ENDtoIs 0;
the moving object model TobjIs 5-tuple (oid, e)j,tu,dist,vi) Wherein oid represents the number of the moving object; e.g. of the typejIndicating a road on which the moving object is located; t is tuIndicating the latest update time of the mobile object; dist indicates that the moving object is at tuThe time and the edge ejStart node n ofsThe distance dist therebetween; v. ofiIndicates that the moving object is at tuThe moving speed at the moment is positive and indicates that the moving object moves from the starting point to the end point, and otherwise indicates that the moving object moves from the end point to the starting point;
the query object model is TqueryIncluding information of the mobile object, a current kNN set q.result of the query object q, a distance q.kNN _ dist from the query object q to the kth nearest neighbor, and an extended tree T of the query object qq
3. The method for monitoring the moving object nearest neighbor in the road network based on the traffic rules as claimed in claim 1, wherein said step S3 specifically comprises the steps of:
s3-1, updating the moving object model Tobj: according to moving object OiCurrently on a new road enewUpdate of the mobile object O by the position information oniIn a moving object model TobjThe corresponding information in (1);
s3-2, updating the road model Tedge: according to the updated moving object OiId and moving object model TobjFinding a moving object containing OiRoad ejAnd from road ejDelete moving object e in the moving object list of (2)jTo move an object ejJoining a new road enewUpdating the weight of each road in the moving object list;
s3-3, updating the query model Tquery: according to the node n and all adjacent nodes nadjUpdating k neighbor set q.result of query object q, network distance q.kNN _ dist from query object q to k neighbor and moving object set O by the formed moving object information on the roadencount
4. The method for monitoring the nearest neighbor of the moving object in the road network based on traffic rules as claimed in claim 3, wherein said step S3-3 is to update the set of moving objects OencountThe specific method comprises the following steps:
s3-3-1, collecting O from original moving objectencountDeleting the mobile objects which do not belong to the roads on the subtree taking the position of the current query object q as the root node;
s3-3-2, judging that the object is reserved in the moving object set OencountIf the number of the moving objects is larger than or equal to k, the step S3-3-4 is executed, otherwise, the step S3-3-3 is executed;
s3-3-3, using the position of the current query object q as the root node, adopting the same method as the steps S2-1 to S2-4 to the mobile object set O with part of the mobile objects deletedencountSupplementing;
s3-3-4, subtracting the moving distance of the query object from the distance from the reserved moving object to the position above the query object q to obtain the query object q at the current moment and an updated moving object set OencountOf each moving object.
CN201811396521.8A 2018-11-22 2018-11-22 Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network Expired - Fee Related CN109597866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811396521.8A CN109597866B (en) 2018-11-22 2018-11-22 Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811396521.8A CN109597866B (en) 2018-11-22 2018-11-22 Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network

Publications (2)

Publication Number Publication Date
CN109597866A CN109597866A (en) 2019-04-09
CN109597866B true CN109597866B (en) 2020-05-19

Family

ID=65960381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811396521.8A Expired - Fee Related CN109597866B (en) 2018-11-22 2018-11-22 Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network

Country Status (1)

Country Link
CN (1) CN109597866B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420414B (en) * 2021-05-27 2022-08-30 四川大学 Short-term traffic flow prediction model based on dynamic space-time analysis

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5333815B2 (en) * 2008-02-19 2013-11-06 株式会社日立製作所 k nearest neighbor search method, k nearest neighbor search program, and k nearest neighbor search device
CN103034678A (en) * 2012-11-01 2013-04-10 沈阳建筑大学 RkNN (reverse k nearest neighbor) inquiring method based on Voronoi diagram
CN103544291B (en) * 2013-10-29 2016-05-18 东北林业大学 Mobile object CKNN querying method based on RRN-Tree in road network

Also Published As

Publication number Publication date
CN109597866A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
WO2022022256A1 (en) Loopback detection method and system, readable storage medium, and electronic device
CN110794832B (en) Mobile robot path planning method based on reinforcement learning
CN102810118B (en) A kind of change weighs net K nearest neighbor search method
CN108458717A (en) A kind of unmanned plane paths planning method of the Quick Extended random tree IRRT of iteration
CN108827335B (en) Shortest path planning method based on one-way search model
CN103473248B (en) A kind of continuous moving K-nearest neighbor query method under road network environment
CN110487279A (en) A kind of paths planning method based on improvement A* algorithm
Anwar et al. Capturing the spatiotemporal evolution in road traffic networks
CN110207706A (en) A kind of automatic homing chair path planning algorithm based on grating map
CN113449910B (en) Automatic generating method of flight path based on sequential storage binary tree
CN109211242B (en) Three-dimensional space multi-target path planning method integrating RRT and ant colony algorithm
CN108827311A (en) A kind of manufacturing shop unmanned handling system paths planning method
CN109597866B (en) Traffic rule-based continuous nearest neighbor monitoring method for moving object in road network
CN106780058A (en) The group dividing method and device of dynamic network
CN112579921A (en) Track indexing and query method and system based on inverted sorting index and prefix tree
CN113063419B (en) Unmanned aerial vehicle path planning method and system
CN117873115A (en) Autonomous navigation obstacle avoidance path planning method based on SLAM
CN105025013B (en) The method for building up of dynamic IP Matching Model based on priority Trie trees
CN116817947B (en) Random time path planning method based on variable step length mechanism
CN104596527A (en) A method of dividing guiding roads at different levels and detailed streets
CN110995876B (en) Method and device for storing and searching IP
CN112836145B (en) Neighbor query method facing mobile object in dynamic directed road network
CN109840620A (en) The querying method of k nearest neighbors pair in more attribute timing transportation networks
CN108804582A (en) Method based on the chart database optimization of complex relationship between big data
Lü et al. A heuristic path-estimating algorithm for large-scale real-time traffic information calculating

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
GR01 Patent grant
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: 20200519

Termination date: 20201122