Unlock instant, AI-driven research and patent intelligence for your innovation.

Array regularization method, device, terminal and readable medium

A technology of regularizing and migrating numbers, applied in the computer field, can solve the problems of low efficiency of array regularization, long operation time, slow speed, etc., and achieve the effect of improving efficiency, disaster tolerance of regularization process, and improving disaster tolerance.

Active Publication Date: 2021-04-27
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This one-by-one migration of large batches of data takes a long time and is slow, resulting in low efficiency of array regularization

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
  • Array regularization method, device, terminal and readable medium
  • Array regularization method, device, terminal and readable medium
  • Array regularization method, device, terminal and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] figure 1 It is a flow chart of an array regularization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of array regularization. The method can be implemented by a terminal, specifically by software and / or hardware in the terminal. see figure 1 , the array regularization method includes the following steps:

[0050] S110, receiving the regularization instruction, determining the remaining memory according to the regularization instruction, determining the array length of the migration array and the array length of the backup array according to the remaining memory and the array length of the target array, defining the migration array according to the array length of the migration array, and according to the array length of the backup array The array length defines the backup array.

[0051] Among them, the remaining memory of the system is obtained according to the regularization instruction, and the array lengths of ...

Embodiment 2

[0105] figure 2 It is a schematic structural diagram of an array regularization device provided in Embodiment 2 of the present invention, and this embodiment is applicable to array regularization.

[0106] see figure 2 , the array regularization device in this embodiment includes:

[0107] The array definition module 210 is used to receive the regularization instruction, determine the remaining memory according to the regularization instruction, determine the array length of the migration array and the array length of the backup array according to the remaining memory and the array length of the target array, and define the migration array according to the array length of the migration array, And define the backup array according to the array length of the backup array;

[0108] The data is stored in the migration array module 220, which is used to scan the starting position of the target array to the end position in order to obtain the data information of the scanning pos...

Embodiment 3

[0133] This embodiment provides a terminal that can be used in the case of array regularization. image 3 It is a schematic structural diagram of a terminal provided in Embodiment 3 of the present invention. see image 3 , the terminal includes:

[0134] one or more processors 310;

[0135] memory 320, for storing one or more programs;

[0136] When the one or more programs are executed by the one or more processors 310, the one or more processors 310 implement the array regularization method as proposed in the first embodiment.

[0137] image 3 Take a processor 310 as an example; the processor 310 and the memory 320 can be connected through a bus or in other ways, image 3 Take connection via bus as an example.

[0138] As a computer-readable storage medium, the memory 320 can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the array regularization method in the embodiment of the presen...

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 embodiment of the present invention discloses an array regularization method, device, terminal and readable medium, wherein the method includes: determining the array lengths of the migration array and the backup array according to the remaining memory when receiving the normalization instruction, and defining the migration array and the backup array Array; poll and scan the target array, and store the non-empty data information obtained by scanning into the migration array; migrate the data information in the migration array to the linked list object and back it up in the backup array to improve disaster tolerance; when the scan ends , store the acquired data information in the linked list object into the temporary array; when all the data information in the linked list object is stored in the temporary array, return the data information of the temporary array to the target group number. The array regularization method, device, terminal and readable medium provided by the embodiments of the present invention realize array regularization, improve the efficiency of array regularization and the disaster tolerance of the regularization process.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to an array regularization method, device, terminal and readable medium. Background technique [0002] When the data in the array in the Android terminal is ordered data, it is often necessary to normalize the array to facilitate operations such as reading the ordered data. Among them, the regularization process can be understood as storing the ordered data in the array in the order of the index number of the array is 0, 1, 2...n, ensuring that there is no empty data among the ordered data, and placing it at the front of the array. A processing operation whose position is behind the array. At present, the commonly used array regularization method is to migrate the data in the array one by one. This one-by-one migration of large batches of data takes a long time and is slow, resulting in low efficiency of array regularization. Contents of the invention [0003...

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 Patents(China)
IPC IPC(8): G06F16/21G06F16/22G06F11/14
CPCG06F11/1448
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD