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

Array regularization method, device, terminal and readable medium

A regularization and quantity technology, applied in the computer field, can solve the problems of low efficiency, slow speed, and long operation time of array regularization, and achieve the effect of improving the efficiency of array regularization, efficient storage rate, and reducing the time-consuming of array regularization.

Inactive Publication Date: 2019-03-01
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 1 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

[0043] 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:

[0044] S110. Receive a regularization instruction, determine the number of sub-threads according to the regularization instruction, open up sub-threads according to the number of sub-threads, and divide and sort the position intervals of the target array according to the number of sub-threads.

[0045] Wherein, the regularization instruction may be an instruction generated by the user by pressing a physical button of the terminal or a virtual button on the terminal screen. Among them, the regularization instruction can also be generated after the underlying program automatically detects the trigger condition. For...

Embodiment 2

[0089] 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.

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

[0091] The location interval division module 210 is used to receive the regularization instruction, determine the number of sub-threads according to the regularization instruction, open up sub-threads according to the number of sub-threads, and divide and sort the location intervals of the target array according to the number of sub-threads;

[0092] The position interval scanning module 220 is used to scan each position interval in each sub-thread, and obtain the data information of the scanning position. When it is judged that the data information is not empty, the data information is stored in the scan array corresponding to the sub-thread, and press The sorting of the position range adds th...

Embodiment 3

[0115] 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:

[0116] one or more processors 310;

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

[0118] 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.

[0119] 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.

[0120] The memory 320, as a computer-readable storage medium, 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 prese...

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 invention discloses an array regularization method, device, a terminal and a readable medium, wherein, the method comprises the following steps: determining the number of sub-threads according to the received regularization instruction, opening sub-threads according to the number of sub-threads, and dividing and sorting the position interval of the target array; scanning eachposition interval in each child thread, storing the data information whose scanning position is not empty in the scan array corresponding to the child thread, and adding the data information in the scan array to the linked list object according to the order of the position interval; storing the data information in the linked list object into a temporary array when the scanning of each position interval is finished; when all the data information in the linked list object is stored in the temporary array, the data information of the temporary array is returned to the target array number. The embodiment of the invention provides an array regularization method, a device, a terminal and a readable medium, which realizes array regularization, reduces the time consuming of array regularization and improves the array regularization efficiency.

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
IPC IPC(8): G06F16/21G06F16/215G06F16/22
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD