A vehicle path planning method and system based on cloud network edge
By constructing an empty Huffman tree and calculating the optimization degree of the target character and encoding, and generating matching pairs to fill the Huffman tree, the problem of slow data transmission rate in the traditional encoding method is solved, and higher compression rate and path planning are achieved. efficiency.
Patent Information
- Application Number
- CN202410809639.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-21
AI Technical Summary
In vehicle path planning, traditional Huffman coding uses the principle of random accumulation when encoding characters with the same frequency, resulting in non-unique encoding and inability to effectively use LZ77 encoding for re-compression, resulting in slow data transmission rates.
By constructing an empty Huffman tree, calculate the optimization degree of the target character and the optimization degree of the target encoding, generate matching pairs, fill the Huffman tree, improve the repeatability of the encoding, and thereby improve the compression rate of LZ77 encoding.
It improves the transmission rate of vehicle path planning data, reduces bandwidth requirements, and improves the efficiency and real-time performance of path planning.
Smart Images

Figure CN118376258B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a vehicle path planning method and system based on cloud network edge. Background Art
[0002] When planning vehicle routes, a large amount of data needs to be processed in the cloud and at the edge nodes of the network. For example, in the paper "Research on Vehicle Path Planning Algorithms Based on Real-time Traffic Information", a large amount of real-time traffic data needs to be collected and transmitted to the edge computing nodes. Under limited bandwidth, the transmission of a large amount of real-time traffic data will increase the time delay of data processing. Especially when the computing resources of edge computing nodes and vehicles are limited, the data processing delay may increase further, affecting the real-time and efficiency of path planning. Therefore, it is necessary to compress the data. At the receiving end or processing node, the compressed data can reduce the burden of data processing, so that the edge computing nodes can complete data analysis and processing tasks faster.
[0003] In traditional lossless compression algorithms, Huffman coding can optimize the storage efficiency of a single character, while LZ77 coding can capture and utilize the long-distance repetitive pattern of data. Therefore, Huffman coding can be used to compress a single character into a "01" code, and then LZ77 coding can be used to further compress the continuous repetitions in the "01" code, which can achieve better compression than a single coding method. However, when Huffman coding is used to compress vehicle path planning data, it contains a large number of characters with the same frequency. When traditional Huffman coding encodes characters with the same frequency, the principle of "random accumulation" is used to construct the Huffman tree, making it impossible to determine the encoding of characters with the same frequency, so it is impossible to ensure that the vehicle path planning data is first compressed by Huffman coding to complete the "01" code, and then compressed again by LZ77 coding. The compression effect cannot reach the optimal level, that is, the size of the compressed data is still large, and the transmission rate is still too slow when transmitting vehicle path planning data. Summary of the invention
[0004] The purpose of the present invention is to provide a vehicle path planning method and system based on cloud network edge, so as to solve the technical problem of slow transmission rate when transmitting vehicle path planning data.
[0005] In a first aspect, the present invention provides a vehicle path planning method based on cloud network edge, which adopts the following technical solution:
[0006] An empty Huffman tree is constructed according to the vehicle path planning data, and a plurality of target code sequences to be adjusted and target character sequences corresponding to the target code sequences to be adjusted are obtained; the degree of optimization of the target characters is calculated according to the number of binary character combinations of any target character in the target character sequence and the information entropy of the binary character combinations of all target characters in the target character sequence, wherein the number of binary character combinations of any target character is positively correlated with the degree of optimization, and the information entropy of the binary character combinations of all target characters is negatively correlated with the degree of optimization; the priority degree of the target code is calculated according to the ratio of the number of code element transformations to the code length of each target code in the target code sequence to be adjusted, and the priority degree characterizes the repeatability of the target code; for the target character sequence, the target character sequence is sorted in descending order according to the degree of optimization, and for the target code sequence to be adjusted, the target character sequence is sorted in descending order according to the degree of optimization, and the two sorting results are matched one by one according to the index position of the sorting result to form a plurality of matching pairs; the empty Huffman tree is filled according to the matching pairs and the vehicle path planning data is compressed, and the compressed data is transmitted to the edge computing node to complete the planning of the vehicle path.
[0007] The effect is that when the vehicle path planning data is transmitted to the edge computing node, the present invention compresses the vehicle path planning data to reduce the bandwidth required for transmitting the path planning data and improve the transmission rate; the present invention calculates the preferred degree of all target codes to be adjusted in the target code sequence to be adjusted and the optimizability of all target characters in the target character sequence corresponding to the target code sequence to be adjusted, obtains matching pairs according to the preferred degree of all target codes to be adjusted and the optimizability of all target characters, completes the filling of the Huffman tree, makes the "01" code after the vehicle path planning data is compressed by the filled Huffman tree have higher repeatability, further improves the compression rate of the compression by LZ77 code, thereby reducing the bandwidth required for transmitting the vehicle path planning data and improving the transmission rate.
[0008] In one embodiment, the process of constructing an empty Huffman tree according to the vehicle path planning data and obtaining a plurality of target code sequences to be adjusted and target character sequences corresponding to the target code sequences to be adjusted comprises the following steps:
[0009] Constructing an empty Huffman tree according to the character frequency of each character in the vehicle path planning data, and forming a target code sequence from the codes corresponding to all leaf nodes with equal character frequencies in the empty Huffman tree; and selecting a plurality of target code sequences to be adjusted from all target code sequences;
[0010] Characters having the same character frequency as the character frequency corresponding to the target coding sequence to be adjusted constitute a target character sequence corresponding to the target coding sequence to be adjusted.
[0011] In one embodiment, the step of screening multiple target coding sequences to be adjusted from all target coding sequences comprises the steps of:
[0012] The structural degree mean of all coding combinations in any target coding sequence is taken as the structural similarity degree of the target coding sequence, and the target coding sequence with a structural similarity less than a preset structural similarity threshold is taken as the target coding sequence to be adjusted.
[0013] The effect is that if the target coding sequence with a large degree of structural similarity is also adjusted, a large amount of calculation is required. However, since their structures are relatively similar, the optimization effect of the compression rate after adjustment is small. Therefore, the present invention obtains the target coding sequence to be adjusted by presetting the structural similarity threshold to achieve the purpose of reducing the amount of calculation.
[0014] In one embodiment, the structural degree satisfies the relationship:
[0015] ;
[0016] In the formula, Indicates the first The code and The degree of structure of the code ; Indicates the first The depth of the leaf node corresponding to the encoding in the Huffman tree; Indicates the first The depth of the leaf node corresponding to the encoding in the Huffman tree; Indicates the first The code and The lowest common ancestor node of the leaf nodes corresponding to the encoding; Expressed as a natural constant The exponential function of base .
[0017] The effect is that the structural degree of any two codes in the target coding sequence comprehensively considers the positional structural characteristics of the two codes in the Huffman tree, and the structural degree of the two codes is calculated by the positions of the two codes in the Huffman tree. The closer the positions of the two codes in the Huffman tree, the greater their structural degree, which means that the two codes are more similar.
[0018] In one embodiment, the lowest common ancestor node is:
[0019] From the leaf nodes corresponding to any two codes, traverse all their ancestor nodes along their paths in the Huffman tree toward the root node. The first overlapping ancestor node among all the traversed ancestor nodes is recorded as the lowest common ancestor node of the leaf nodes corresponding to the two codes.
[0020] In one embodiment, the degree of optimizability satisfies the relationship:
[0021] ;
[0022] In the formula, The first character in the target character sequence The degree of optimizability of the target characters; The first character in the target character sequence The number of binary character combinations of the target character; The first character in the target character sequence The total number of different types of binary character combinations of target characters; The first character in the target character sequence The binary character combination ordinal of the target character; The first character in the target character sequence The target character The ratio of the frequency of occurrence of a bigram combination to the total number of bigram combinations of all target characters; Represents the standard normalization function.
[0023] The effect is that the degree of optimization of the target character comprehensively considers the number of binary character combinations of the target character and the information entropy of the binary character combinations of the target character. The number of binary character combinations of the target character reflects the frequency of occurrence of the target character in the vehicle path planning data, and the information entropy of the binary character combinations of the target character reflects the uniformity of the frequency distribution of the binary character combinations of the target character. By comprehensively considering the number of binary character combinations of the target character and the information entropy of the binary character combinations of the target character, the target character with higher occurrence frequency and more uneven distribution of binary character combinations can have higher degree of optimization.
[0024] In one embodiment, the preference level satisfies the relationship:
[0025] ;
[0026] In the formula, Indicates the first The degree of preference of the target encoding; Indicates The number of code element changes for a target code; Indicates The code length of the target code; is a preset hyperparameter, which represents the worst reference standard for the proportion of symbol transformation times; represents the standard normalization function; Represents the absolute value symbol.
[0027] The effect is that the preferred degree of the target code comprehensively considers the number of code element changes and the code length of the target code. The number of code element changes reflects the number of "01" alternations of the target code. The repeatability characteristics of the target code are calculated by the ratio of the number of code element changes to the code length.
[0028] In a second aspect, the present invention provides a vehicle path planning system based on cloud network edge, which adopts the following technical solution:
[0029] A vehicle path planning system based on a cloud network edge includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned vehicle path planning method based on a cloud network edge is implemented.
[0030] By adopting the above-mentioned technical solution, the above-mentioned vehicle path planning method based on the cloud network edge is generated into a computer program and stored in the memory to be loaded and executed by the processor, so that a terminal device is made according to the memory and the processor for easy use.
[0031] The present invention has the following technical effects: the present invention calculates the preference of target codes in the target code sequence to be adjusted and the optimizability of target characters, obtains matching pairs according to the optimizability of target characters and the preference of each target code, and fills the Huffman tree with the matching pairs, so that the data compressed by the system using Huffman coding has high repeatability, reduces the file size compressed again using LZ77 coding, thereby reducing the delay in data transmission to edge processing nodes and improving the processing efficiency of path planning data.
[0032] Furthermore, the leaf nodes with equal frequencies are screened by calculating the structural similarity of the codes corresponding to the leaf nodes with equal frequencies, thereby avoiding the huge amount of calculation caused by calculating all leaf nodes with equal frequencies and improving the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0034] Figure 1This is a method flow chart of a vehicle path planning method based on cloud network edge in an embodiment of the present invention.
[0035] Figure 2 It is a schematic diagram of the lowest common ancestor node of step S3 in a vehicle path planning method based on cloud network edge in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0037] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0038] The embodiment of the present invention discloses a vehicle path planning method based on cloud network edge, referring to Figure 1 , comprising steps S1 to S5:
[0039] S1: construct an empty Huffman tree according to the vehicle path planning data, and obtain multiple target code sequences to be adjusted and target character sequences corresponding to the target code sequences to be adjusted.
[0040] It should be noted that the vehicle path planning data includes vehicle position, road grid, traffic lights, intersection information, and lane restrictions. These data are usually stored in the format of Geographic Information System (GIS) and need to be transmitted to the edge computing node for use by the path planning algorithm. The present invention has the same processing method for any one of the vehicle path planning data, namely, vehicle position, road grid, traffic lights, intersection information, and lane restrictions. In the present invention, the vehicle position data is taken as an example for compression.
[0041] In one embodiment, the vehicle location data can be collected by a vehicle-mounted GPS device and transmitted to a GIS, and the collected location information can be converted into raster data using GIS, wherein each grid represents a two-dimensional longitude and latitude point collected by the vehicle-mounted GPS device.
[0042] It should be noted that the present invention does not limit the period for collecting vehicle location information using the vehicle-mounted GPS device, and the implementer can set it according to actual conditions, for example, 0.2S.
[0043] In one embodiment, all characters in the vehicle path planning data and the character frequency of each character are counted, and an empty Huffman tree is constructed according to all the character frequencies using the traditional Huffman coding method to construct a Huffman tree. The code corresponding to each character frequency is obtained according to the constructed empty Huffman tree, and the codes corresponding to all leaf nodes with equal character frequencies are taken as a set and recorded as a target code sequence. The above steps are repeated to obtain multiple target code sequences.
[0044] It should be noted that the empty Huffman tree, that is, all leaf nodes therein, only contain probability information, but do not contain character information corresponding to the probability.
[0045] It should be noted that, when constructing the Huffman tree, the traditional Huffman coding adopts a random accumulation order for the characters with the same frequency to construct the Huffman tree, so the codes corresponding to the characters with the same frequency have a certain degree of randomness, that is, the codes corresponding to multiple characters with the same frequency are not unique. The non-unique codes will make the "01" code after compression using the Huffman coding, and the compression effect of re-compression using the LZ77 code cannot reach the optimal. Therefore, the present invention needs to adjust the accumulation order of the characters with the same frequency so that the corresponding codes are unique, and after compression using the Huffman coding, it can be ensured that there are more consecutive repeated "01" codes in the local range, and the compression effect of re-compressing them using LZ77 is better.
[0046] It should be further explained that the closer the positions of characters with the same frequency in the Huffman tree are, the more similar the codes corresponding to these characters are. For characters that are more similar, the optimization effect is not great when adjusting the corresponding codes, and a large amount of calculation is required. Therefore, the present invention needs to calculate the structural similarity of the target code sequence according to the positions of all codes in the target code sequence in the Huffman tree, and adjust the target code sequence with lower code similarity.
[0047] In one embodiment, for any target coding sequence:
[0048] 1. Calculate the structural degree of any two codes in the target coding sequence: obtain the depth of the leaf nodes corresponding to any two codes in any target coding sequence in the Huffman tree and the depth of the lowest common ancestor node of the leaf nodes corresponding to the two codes in the Huffman tree. The lowest common ancestor node of the leaf nodes corresponding to the two codes is obtained by traversing all the ancestor nodes of the leaf nodes corresponding to the two codes along their paths in the Huffman tree toward the root node. The first overlapping ancestor node among all the ancestor nodes traversed by the two codes is recorded as the lowest common ancestor node of the leaf nodes corresponding to the two codes, such as Figure 2 The lowest common ancestor node is shown schematically.
[0049] The structural degree of the two codes is calculated according to the depth of the leaf nodes corresponding to the two codes in the Huffman tree and the depth of the lowest common ancestor node of the two codes in the Huffman tree. The calculation formula is as follows:
[0050]
[0051] In the formula, Indicates the first The code and The degree of structure of the code, ; Indicates the first The depth of the leaf node corresponding to the encoding in the Huffman tree; Indicates the first The depth of the leaf node corresponding to the encoding in the Huffman tree; Indicates the first The code and The lowest common ancestor node of the leaf nodes corresponding to the encoding; Expressed as a natural constant The exponential function of base .
[0052] in, Indicates the depth difference of the leaf nodes corresponding to the two codes in the Huffman tree. The smaller the difference, the closer the depths of the two are, and the more similar the structures of the two are. Indicates the depth difference between the leaf nodes corresponding to the two codes and their lowest common ancestor node. The smaller the value, the closer the leaf nodes corresponding to the two codes are to their lowest common ancestor node, the closer their cumulative order in the Huffman tree is, and the more similar their structures are. The depth difference between the leaf nodes corresponding to the two codes and their lowest common ancestor node is normalized.
[0053] 2. Calculate the structural similarity of the target coding sequence based on the structural degree of any one coding in the target coding sequence and all other codings. The steps are as follows:
[0054] All codes in any target coding sequence are combined in pairs to obtain all coding combinations, and the structural degree mean of all possible coding combinations is used as the structural similarity of the target coding sequence.
[0055] It should be noted that if the structural similarity of a target coding sequence is higher, it means that the structural degree of each code in the target coding sequence is higher, and when the corresponding relationship between each code and the character is adjusted, the optimization effect is smaller and a larger amount of calculation is required. Therefore, by presetting the structural similarity threshold, a target coding sequence with a smaller structural similarity is obtained, so that a better optimization effect can be achieved when the corresponding relationship between each code and the character in the target coding sequence with a smaller structural similarity is adjusted.
[0056] In one embodiment, a target coding sequence whose structural similarity is less than a preset structural similarity threshold is used as a target coding sequence to be adjusted, and all codes in the target coding sequence to be adjusted are used as target codes. It can be set by the implementer according to the actual implementation situation, for example =0.65, no specific limitation is given.
[0057] For any target code sequence to be adjusted, all characters corresponding to the target code sequence to be adjusted are obtained as a target character sequence.
[0058] At this point, the screening of multiple target coding sequences is completed, and the target coding sequence to be adjusted and the target character sequence are obtained.
[0059] S2: Calculating the degree of optimization of the target character according to the number of binary character combinations of any target character in the target character sequence and the information entropy of the binary character combinations of all target characters in the target character sequence.
[0060] It should be noted that, for any target code sequence to be adjusted, the character frequencies corresponding to all codes in the target code sequence to be adjusted are equal, and the characters have different repetitions before and after in the acquired vehicle path planning data, and different repetitions correspond to different degrees of optimization. Therefore, the present invention needs to obtain the degree of optimization of each target character according to the repetition degree of all target characters in the target code sequence to be adjusted.
[0061] In one embodiment, for any target character in the target character sequence, the vehicle path planning data is traversed, and each target character and the next adjacent character of the target character in the vehicle path planning data are used as the binary character combination of the target character, and all binary character combinations of each target character in the target coding sequence to be adjusted are obtained, and the frequency of each binary character combination of each target character in the target coding sequence to be adjusted is counted, and the frequency of each binary character combination of each target character in the target coding sequence to be adjusted and all binary character combinations of all target characters is obtained.
[0062] For example, the vehicle path planning data is: "abacbacacadccb", where the target characters are "a" and "c". For the target character "a", there are three types of binary character combinations, namely: "ab", "ac", and "ad", where the frequency of occurrence of the binary character combination "ab" is 1, the frequency of occurrence of the binary character combination "ac" is 3, and the frequency of occurrence of the binary character combination "ad" is 1; for the target character "c", there are three types of binary character combinations, namely: "cb", "ca", and "cc", where the frequency of occurrence of the binary character combination "cb" is 2, the frequency of occurrence of the binary character combination "ca" is 2, and the frequency of occurrence of the binary character combination "cc" is 1. The frequency of the binary character combination "ab" is , the frequency of the binary character combination "ac" is , the frequency of the binary character combination "ad" is , the frequency of the binary character combination "cb" is , the frequency of the binary character combination "ca" is , the frequency of the binary character combination "cc" is .
[0063] The degree of optimization of each target character in the target coding sequence to be adjusted is calculated according to the frequency of each binary character combination of each target character in the target coding sequence to be adjusted and all binary character combinations of all target characters. The specific calculation formula is as follows:
[0064]
[0065] In the formula, The first character in the target character sequence The optimizability of the target characters; The first character in the target character sequence The number of binary character combinations of the target character; The first character in the target character sequence The total number of different types of binary character combinations of target characters; The first character in the target character sequence The binary character combination ordinal of the target character; The first character in the target character sequence The target character The ratio of the frequency of occurrence of the first two-character combination to the total number of all two-character combinations of all target characters is the first two-character combination of the target character sequence. The target character The frequency of two-character combinations; Represents the standard normalization function.
[0066] in, The first character in the target character sequence The number of binary character combinations of a target character. The larger the value, the higher the frequency of occurrence of the target character, that is, the higher the degree of optimization of the character. The first character in the target character sequence The distribution of binary character combinations of target characters. The larger the value, the higher the distribution of binary character combinations of target characters. The more evenly the binary character combination types of the target character are distributed, the more other character types the target character needs to match, and the smaller the optimization effect after adjusting the character. Therefore, the larger its value is, the lower the degree of optimization of the target character is.
[0067] It should be noted that the degree of optimizability of the target character is represented by the priority size of the matching code of each target character. The above formula is only a preferred method for obtaining the degree of optimizability. Implementers can use other methods to obtain the degree of optimizability. The obtained degree of optimizability can be represented by the priority size of the matching code of each target character.
[0068] At this point, the degree of optimizability of any target character in any target encoding sequence to be adjusted is obtained.
[0069] S3: Calculate the preference level of the target code according to the ratio of the number of symbol transformations of the target code in the target code sequence to be adjusted to the code length.
[0070] It should be noted that Huffman coding is a set of coding sequences composed of "0" and "1". The higher the repeatability of a code, the higher the repeatability of the code after combining it with other codes. The repeatability of a code can be expressed by the number of times the code element of the code is encoded. If the number of times the code element of the code is changed is close to "0", it means that the code does not change, that is, the higher the repeatability of the code is. If the number of times the code element of the code is changed is close to the code length of the code, it means that the frequency of occurrence of the code "01" or "10" is high, that is, the higher the repeatability of the code is. Therefore, the present invention calculates the preference of any target code according to the number of times the code element of the target code is changed.
[0071] Obtain the coding length and the number of code element changes of any target coding, wherein the number of code element changes of any target coding is the number of different adjacent code elements in the target coding, for example: for the target coding "011110", the number of code element changes of the target coding is 2; for the target coding "111111", the number of code element changes of the target coding is 0.
[0072] The preferred degree of the target code is calculated according to the code length and the number of code element transformations of any target code in any target code sequence. The calculation formula is as follows:
[0073]
[0074] In the formula, Indicates The first of the target codes to be adjusted The degree of preference of the target encoding; Indicates The number of code element changes for a target code; Indicates The code length of the target code; It is a preset hyperparameter, which indicates the worst reference standard for the proportion of symbol transformation times. The implementers can adjust it according to the specific implementation situation; represents the standard normalization function; Represents the absolute value symbol.
[0075] in, Indicates the proportion of code element transformation times. The closer its value is to 1, the more code element transformation times there are, the more times the "01" or "10" code appears, that is, the higher the repeatability of the target code, the higher the matching degree when the target code is combined with other codes, that is, the higher the preference of the target code; the closer its value is to 0, the fewer code element transformation times there are, the fewer transformation times of code "0" and code "1", and the closer the target code is to all "0" or all "1", that is, the higher the repeatability of the target code, the higher the matching degree when the target code is combined with other codes, that is, the higher the preference of the target code; the closer its value is to At this time, the lower the repeatability of the target code, the lower the matching degree when the target code is combined with other codes, that is, the lower the preference of the target code.
[0076] It should be noted that the degree of optimization only represents the repeatability of the target code. The above formula is only a preferred method for obtaining repeatability. Implementers can use other methods to obtain repeatability as long as the repeatability obtained can represent the repeatability of the target code.
[0077] At this point, the preference level of any target code in any target code sequence to be adjusted is obtained.
[0078] S4: For the target character sequence, sort it in descending order according to the degree of optimization; for the target encoding sequence to be adjusted, sort it in descending order according to the degree of preference; and correspond the two sorting results one by one according to the index position of the sorting result to form multiple matching pairs.
[0079] It should be noted that for the acquired vehicle path planning data, if the vehicle is waiting for a red light, the vehicle is in a stationary state, and the acquired vehicle position data at this time will contain more repetitive data. Therefore, when matching the target code with the target character, the present invention will assign a target code with a higher degree of preference to a target character with a higher degree of optimization.
[0080] All target characters in the target character sequence are sorted from large to small according to the degree of optimization, and all target codes in the target code sequence to be adjusted are sorted from large to small according to the degree of preference, and the sorted target characters and target codes are matched one by one according to the same index, so as to obtain multiple matching pairs. For example, the result of sorting all target characters in the target character sequence from large to small according to the degree of optimization is: "b", "c", "a", and the result of sorting all target codes in the target code sequence to be adjusted from large to small according to the degree of preference is: "0000", "0101", "1001", and the multiple matching pairs obtained are: (b, 0000), (c, 0101), (a, 1001).
[0081] S5: Fill the empty Huffman tree according to the matching pairs and compress the vehicle path planning data, and transmit the compressed data to the edge computing node to complete the vehicle path planning.
[0082] In one embodiment, the empty Huffman tree is filled according to the matching pairs. The vehicle path planning data is compressed using the Huffman coding and compressed again using the LZ77 coding using the filled Huffman tree. It should be noted that the Huffman coding and the LZ77 coding are prior arts and will not be described in detail here.
[0083] By transmitting the compressed data to the edge computing node, the edge computing node uses the existing path planning algorithm to calculate the transmitted vehicle path planning data to obtain the optimal planning path. The cloud network edge mode distributes the path planning calculation tasks of the vehicle path planning data to multiple edge computing nodes for distributed processing, which can improve the processing speed of path planning and improve the real-time performance of vehicle path planning.
[0084] It should be noted that the existing path planning algorithms include but are not limited to: LPA* (Lifelong Planning A*) algorithm and D* Lite (Dynamic A* Lite) algorithm, which are existing technologies and are known in the art, and therefore, will not be described in detail here.
[0085] An embodiment of the present invention also discloses a vehicle path planning system based on a cloud network edge, including a processor and a memory, wherein the memory stores computer program instructions. When the computer program instructions are executed by the processor, a vehicle path planning method based on a cloud network edge according to the present invention is implemented.
[0086] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0087] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory, a dynamic random access memory, a static random access memory, an enhanced dynamic random access memory, a high bandwidth memory, a hybrid storage cube, etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.
[0088] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0089] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A vehicle path planning method based on cloud network edge, characterized in that: Includes steps: Construct an empty Huffman tree according to the vehicle path planning data, and obtain a plurality of target code sequences to be adjusted and target character sequences corresponding to the target code sequences to be adjusted; Calculating the degree of optimization of the target character according to the number of binary character combinations of any target character in the target character sequence and the information entropy of the binary character combinations of all target characters in the target character sequence, wherein the number of binary character combinations of any target character is positively correlated with the degree of optimization, and the information entropy of the binary character combinations of all target characters is negatively correlated with the degree of optimization; Calculating the preferred degree of the target code according to the ratio of the number of symbol transformations of the target code in the target code sequence to be adjusted to the code length, wherein the preferred degree represents the repeatability of the target code; For the target character sequence, sorting is performed in descending order according to the degree of optimization, and for the target encoding sequence to be adjusted, sorting is performed in descending order according to the degree of preference, and the two sorting results are matched one by one according to the index position of the sorting result to form a plurality of matching pairs; Fill the empty Huffman tree according to the matching pairs and compress the vehicle path planning data, and transmit the compressed data to the edge computing node to complete the vehicle path planning; The method of constructing an empty Huffman tree according to the vehicle path planning data, obtaining a plurality of target code sequences to be adjusted and target character sequences corresponding to the target code sequences to be adjusted, comprises the steps of: Constructing an empty Huffman tree according to the character frequency of each character in the vehicle path planning data, and forming a target code sequence from the codes corresponding to all leaf nodes with equal character frequencies in the empty Huffman tree; and selecting a plurality of target code sequences to be adjusted from all target code sequences; The characters having the same character frequency as the character frequency corresponding to the target coding sequence to be adjusted constitute the target character sequence corresponding to the target coding sequence to be adjusted; The method of screening a plurality of target coding sequences to be adjusted from all target coding sequences comprises the steps of: The structural degree average of all coding combinations in any target coding sequence is used as the structural similarity of the target coding sequence, and the target coding sequence with a structural similarity less than a preset structural similarity threshold is used as the target coding sequence to be adjusted; The structural degree satisfies the relationship: ; In the formula, Indicates the first The code and The degree of structure of the code ; Indicates the first The depth of the leaf node corresponding to the encoding in the Huffman tree; Indicates the first The depth of the leaf node corresponding to the encoding in the Huffman tree; Indicates the first The code and The lowest common ancestor node of the leaf nodes corresponding to the encoding; Expressed as a natural constant The exponential function with base ; The lowest common ancestor node is: From the leaf nodes corresponding to any two codes, traverse all their ancestor nodes along their paths in the Huffman tree toward the root node. The first overlapping ancestor node among all the traversed ancestor nodes is recorded as the lowest common ancestor node of the leaf nodes corresponding to the two codes.
2. The vehicle path planning method based on cloud network edge according to claim 1 is characterized in that: The degree of optimization satisfies the relationship: ; In the formula, The first character in the target character sequence The optimizability of the target characters; The first character in the target character sequence The number of binary character combinations of the target character; The first character in the target character sequence The total number of different types of binary character combinations of target characters; The first character in the target character sequence The binary character combination ordinal of the target character; The first character in the target character sequence The target character The ratio of the frequency of occurrence of a bigram combination to the total number of bigram combinations of all target characters; Represents the standard normalization function.
3. The vehicle path planning method based on cloud network edge according to claim 1 is characterized in that: The preference degree satisfies the relationship: ; In the formula, Indicates the first The degree of preference of the target encoding; Indicates The number of code element changes for a target code; Indicates The code length of the target code; is a preset hyperparameter, which represents the worst reference standard for the proportion of symbol transformation times; represents the standard normalization function; Represents the absolute value symbol.
4. A vehicle path planning system based on cloud network edge, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a cloud-network-edge-based vehicle path planning method is implemented according to any one of claims 1-3.
Citation Information
Patent Citations
Vehicle trajectory data compression method and device based on fuzzy coding
CN115909545A
Social security information processing method and system
CN117278056A
