Matrix compression algorithm for calculating shortest path of expressway

A highway and shortest path technology, applied in complex mathematical operations, etc., can solve problems such as unsatisfied, and achieve the effect of reducing memory and not reducing retrieval efficiency

Inactive Publication Date: 2021-07-27
北京速通科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0037] The space complexity of the current technical solution is O(n2), and the main memory footprint is the preorder array Pre [N][N] , N is the number of midpoints in expressway network modeling, and the value of the total number of toll gates + total number of toll stations in the country is about 50000. The minimum memory space required by this technical solution is 10GB (50000*50000*4Byte), The size of this memory space is much larger than the memory size that the toll gantry system can provide, so this technical solution cannot meet the requirement of putting the minimum cost calculation on the toll gantry system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Matrix compression algorithm for calculating shortest path of expressway
  • Matrix compression algorithm for calculating shortest path of expressway
  • Matrix compression algorithm for calculating shortest path of expressway

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0060] see Figure 1-4 , the present invention provides a technical solution: a matrix compression algorithm for expressway shortest path calculation, comprising: .

[0061] Due to the relatively simple structure of the highway network model, most points are only directly connected to 1-2 points, and a small number of points are directly connected to 3 or more points. As shown in matrix 1, after the Dijkstra algorithm is run, each column in the preorder matri...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a matrix compression algorithm for calculating the shortest path of an expressway. The matrix compression algorithm comprises the following steps of: 1, calculating a matrix graph of the path with the minimum cost of the expressway by using a Dijkstra algorithm; 2, performing matrix row compression, establishing a row tag array Flag [N] (initialized as full false), traversing a preorder matrix row by row, and compressing each row in the Pre array into a two-tuple set RowListi (column number c, value v); 3, matrix column compression: traversing the matrix column by column, compressing each column in the Pre array into a triple set ColListk (a starting value s, an end value e and a value v), and compressing and neglecting special points and repeated points in the matrix; and 4, completing matrix compression, and compressing the preorder array through a matrix compression algorithm, so that the required memory is greatly reduced, and the retrieval efficiency is not reduced too much.

Description

technical field [0001] The invention relates to the technical field of expressway algorithms, in particular to a matrix compression algorithm for expressway shortest path calculation. Background technique [0002] At present, the calculation of the minimum cost path of the expressway is based on the Dijkstra algorithm. The Dijkstra algorithm is to calculate the shortest path algorithm from one vertex to the other vertices, and it solves the problem of the shortest path in the weighted graph. . The main calculation process of Dijkstra's algorithm is to adopt the strategy of greedy algorithm. Starting from the starting point, each time it traverses the adjacent nodes of the vertices that are the closest to the starting point and have never been visited, until it reaches the end point. [0003] A brief highway network such as figure 2 As shown, it can be modeled in the following way: toll gates and toll gate entrances and toll gate exits of the highway as points in the direct...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/16
CPCG06F17/16
Inventor 黄凯张翔管伟徐鑫谭梦迪华龙宇刘爱娣
Owner 北京速通科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products