Grid self-adaptive sorting method and device based on multi-dimensional conflict detection
The grid adaptive sorting method based on multi-dimensional conflict detection solves the problem of poor sorting reliability in user interfaces with mixed-size controls, and improves layout stability and operational smoothness.
Patent Information
- Application Number
- CN202611208976.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-11
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies suffer from poor sorting reliability when dealing with user interfaces where controls of mixed sizes coexist. In particular, during high-frequency dynamic interactions, it is difficult to balance layout stability and interaction smoothness, leading to interface display errors.
A mesh adaptive sorting method based on multidimensional conflict detection is adopted. The mesh is parsed by receiving control operation instructions. Combining the analysis of fracture risk, spatial conflict, drag conflict and drag speed, a comprehensive scoring model is used to analyze multidimensional risks and generate sorting execution instructions to adjust the controls.
It effectively solves the problems of interface layout disorder and awkward interaction caused by multi-dimensional conflicts in mixed-size grid layout, and improves layout stability and operation smoothness.
Smart Images

Figure CN123157306A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer software technology, and in particular to a grid adaptive sorting method and apparatus based on multidimensional conflict detection. Background Technology
[0002] With the rapid development of intelligent terminal in-vehicle systems and human-machine interfaces, grid layout has become the mainstream form for displaying functional controls, information cards, and multimedia components. In a grid environment with a fixed number of columns, users typically need to drag and drop to personalize the rearrangement of interface elements to meet different usage habits and scenario requirements. Existing technical solutions generally adopt a collision detection mechanism based on rectangular bounding boxes. This mechanism compares the coordinate positions, width, height, and other geometric parameters of controls to determine whether overlap has occurred, and updates the layout state according to preset swapping logic or a global rearrangement algorithm. This type of method can maintain basic interface order and achieve relative adjustment of control positions when handling simple list sorting of controls of a single size.
[0003] However, existing technologies still face significant challenges in handling high-frequency dynamic interactions within complex grid scenarios where controls of different sizes coexist. When controls of varying widths move across rows or columns within a grid with limited column widths, structural breaks in the layout due to the periodic boundaries of modulo operations can easily occur, leading to display errors. Furthermore, traditional conflict resolution strategies lack comprehensive consideration of multi-dimensional dynamic factors, making it difficult to balance layout stability and interaction smoothness under complex operation paths. This makes it ineffective in handling real-time sorting requirements under high-density control arrangements, impacting user experience and system response consistency in dynamic interactive environments. Existing technologies for user interfaces with coexisting controls of different sizes suffer from poor sorting reliability. Summary of the Invention
[0004] This invention provides a grid adaptive sorting method and apparatus based on multidimensional conflict detection, aiming to solve the problem of poor sorting reliability in existing methods for user interfaces with mixed size controls.
[0005] In a first aspect, embodiments of the present invention provide a grid adaptive sorting method based on multidimensional collision detection, wherein the method is applied in a smart terminal, the smart terminal including a display screen for displaying a user interface, and the method includes: If a user inputs a control operation command, the user interface is parsed to obtain the corresponding grid parsing information; The control operation instructions are subjected to fracture risk detection based on the preset fracture detection rules and the mesh parsing information to obtain the corresponding fracture risk detection information. Based on the preset spatial conflict detection rules and the grid parsing information, the control operation instructions are subjected to two-dimensional spatial conflict detection to obtain the corresponding spatial conflict detection information. Based on the preset drag conflict detection rules and the grid parsing information, drag conflict risk detection is performed on the control operation instructions to obtain the corresponding drag conflict detection information. The drag speed of the control operation command is parsed according to the preset drag speed parsing rules to obtain the corresponding drag speed parsing information; The fracture risk detection information, spatial conflict detection information, drag conflict detection information, and drag speed analysis information are analyzed according to the preset comprehensive scoring model to obtain the corresponding comprehensive risk score. Based on the preset strategy configuration model and the comprehensive risk score, obtain the sorted execution instructions that match the control operation instructions; The sorting instruction is executed to rearrange the controls contained in the user interface.
[0006] Secondly, embodiments of the present invention also provide a mesh adaptive sorting device based on multidimensional collision detection, wherein the device is configured in a smart terminal, the smart terminal includes a display screen for displaying a user interface, and the device is used to execute the mesh adaptive sorting method based on multidimensional collision detection as described in the first aspect above, the device comprising: The grid parsing unit is used to perform grid parsing on the user interface and obtain corresponding grid parsing information if it receives a control operation instruction input by the user. A fracture risk detection unit is used to perform fracture risk detection on the control operation command according to the preset fracture detection rules and the mesh parsing information, and obtain the corresponding fracture risk detection information. The spatial conflict detection unit is used to perform two-dimensional spatial conflict detection on the control operation command according to the preset spatial conflict detection rules and the grid parsing information, and obtain the corresponding spatial conflict detection information. The drag conflict detection unit is used to perform drag conflict risk detection on the control operation instructions according to the preset drag conflict detection rules and the grid parsing information, and obtain the corresponding drag conflict detection information. The drag speed analysis unit is used to analyze the drag speed of the control operation instructions according to the preset drag speed analysis rules, and obtain the corresponding drag speed analysis information. The comprehensive risk score acquisition unit is used to analyze the fracture risk detection information, the spatial conflict detection information, the drag conflict detection information and the drag speed analysis information according to the preset comprehensive score model to obtain the corresponding comprehensive risk score; The sorting execution instruction acquisition unit is used to acquire sorting execution instructions that match the control operation instructions based on the preset strategy configuration model and the comprehensive risk score. The sorting adjustment unit is used to execute the sorting execution instruction to sort the controls contained in the user interface.
[0007] Thirdly, embodiments of the present invention also provide a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the steps of the grid adaptive sorting method based on multidimensional collision detection described in the first aspect above.
[0008] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the grid adaptive sorting method based on multidimensional collision detection as described in the first aspect above.
[0009] This invention provides a mesh adaptive sorting method and apparatus based on multi-dimensional conflict detection. The method includes: receiving control operation instructions and performing mesh parsing on the user interface; performing fracture risk detection, two-dimensional spatial conflict detection, drag conflict risk detection, and drag speed analysis to obtain multi-dimensional detection information; analyzing each detection information using a comprehensive scoring model to obtain a comprehensive risk score; obtaining a matching sorting execution instruction based on a strategy configuration model and the comprehensive risk score; and adjusting the sorting of controls according to the sorting execution instruction. This method, by obtaining a comprehensive score through multi-dimensional conflict detection and generating a corresponding matching sorting execution instruction, can effectively solve the problems of interface layout disorder and awkward interaction caused by multi-dimensional conflicts in mixed-size mesh layouts, improving layout stability and operational smoothness. Attached Figure Description
[0010] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 Flowchart of the mesh adaptive sorting method based on multidimensional collision detection provided in this embodiment of the invention Figure 2 A schematic block diagram of a grid adaptive sorting device based on multidimensional collision detection provided in an embodiment of the present invention; Figure 3 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0013] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0014] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0015] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0016] This invention application provides an embodiment of a mesh adaptive sorting method based on multidimensional collision detection. This method is applied to a smart terminal, where the smart terminal executes a stored software program to implement the aforementioned mesh adaptive sorting method based on multidimensional collision detection. The smart terminal includes a display screen for displaying the user interface; therefore, the smart terminal can be an in-vehicle terminal, a tablet computer, etc. Figure 1 As shown, the method includes steps S110 to S180.
[0017] S110. If a user input control operation instruction is received, the user interface is parsed to obtain the corresponding grid parsing information.
[0018] Smart terminals can receive user input of control operation commands, respond to the user's interaction intent based on the control operation commands, and transform the visual layout in the user interface into the view layout that the user ultimately wants to see. Smart terminals present the user interface through their display screens. When users input control operation commands through touch, mouse, or physical buttons, the system captures the operation commands and triggers the parsing process.
[0019] Grid parsing refers to the process of scanning the layout of controls currently displayed in the user interface and extracting the geometric attributes and positional relationships of each control. This process obtains the coordinate parameters of each control in the grid system by reading the configuration file of the interface layout or traversing the view tree structure. Specifically, the system extracts information such as the globally unique identifier, the number of columns occupied, the number of rows occupied, the starting column index, the ending column index, and the row index of each control from the layout data.
[0020] For example, for a layout with a total of C columns, the starting column of control i can be calculated using prefix sum and modulo operation, i.e., startColumn(i) = (∑ k=0 i-1 The grid is calculated as spanCount[k] mod C, where spanCount[k] is the number of columns occupied by the preceding control (control i); the ending column of control i is defined as endColumn(i) = startColumn(i) + spanCount[i] - 1. Through the above calculation, the system generates grid parsing information containing the position and size parameters of all controls, providing a data foundation for subsequent collision detection.
[0021] S120. Based on the preset fracture detection rules and the mesh parsing information, the control operation command is subjected to fracture risk detection to obtain the corresponding fracture risk detection information.
[0022] The system can combine the obtained network parsing information to perform break risk detection on control operation instructions. This step is used to identify the potential risk of layout breakage across rows due to control movement during dragging. This risk usually occurs in grids with a fixed number of columns when large controls move to the boundary of a specific column. The break detection rules are built based on the principle of one-dimensional modular arithmetic to predict whether column offset within the movement range will cause the control to cross to the next row. By pre-calculating the periodic boundary of modular arithmetic, the system can identify risk points that may cause interface errors before executing dragging actions.
[0023] In a specific embodiment, step S120 includes the following sub-steps: obtaining detection judgment parameters in the fracture detection rules that match the target control size of the control operation instruction, and setting corresponding detection conditions; obtaining control position parameters of the associated controls corresponding to the control operation instruction in the mesh parsing information; and determining whether the control position parameters of each associated control meet the detection conditions to obtain the corresponding fracture risk detection information.
[0024] When performing break risk detection, the size of the target control to be dragged is first determined, which determines its occupancy pattern in a fixed-column grid. Specifically, the target control size includes the number of columns occupied by the control, spanCount[i] (e.g., 1 or 2), and the number of rows occupied, spanHeight[i] (e.g., 1). Based on the target control size, matching detection parameters are retrieved from the break detection rule base. These parameters define the modulo operation constraints and boundary judgment logic corresponding to that size. For a 1×1 control, the detection parameters focus on determining whether there is an anomaly in parity that would cause a row crossing within its forward or backward movement interval. If the target control moves forward, the modulo matching value is set to 0; if the target control moves backward, the modulo matching value is set to 1. For a 2×1 control, the detection parameters focus on determining its boundary constraints at the start of an even or odd column. If the target control moves forward, the modulo matching value is set to 1; if the target control moves backward, the modulo matching value is set to 0.
[0025] The set modulo matching value is the retrieved detection judgment parameter. Based on the retrieved detection judgment parameter, the corresponding detection condition is constructed. This condition exists in the form of a Boolean expression or a logical judgment statement. For example, it determines whether the result of taking the modulo of the starting column index startColumn(i) of the associated control with 2 is equal to the preset detection judgment parameter. The detection condition serves as the benchmark for subsequent position parameter comparison, ensuring adaptive matching between the break detection logic and the target control size.
[0026] After determining the detection conditions, the spatial states of other controls directly affected by the current drag operation are extracted from the grid parsing information of the current interface. These controls are called associated controls. Associated controls can refer to all other controls on the target control's movement path or within the area affected by the movement and compression. The grid parsing information is parsed to obtain the control position parameters of each associated control. These parameters quantify the exact position of the associated control in the current grid coordinate system. Control position parameters include, but are not limited to: the row index (row(j), the starting column index (startColumn(j), and the ending column index (endColumn(j)) of the associated control. These parameters are obtained by reading the layout matrix or control attribute list maintained by the grid layout engine, reflecting the true physical distribution of the affected area. The accurate extraction of associated control position parameters provides a data foundation for real-time determination of fracture risk.
[0027] The position parameters of each associated control are substituted into the detection conditions set in the above steps for individual judgment. This judgment process is a logical operation, specifically including: for each 2×1 size associated control within the movement range, its starting column index startColumn(i) is substituted into the above detection conditions, and it is determined whether the modulo result is equal to the corresponding modulo matching value. If they are equal, the associated control is determined to meet the detection conditions; otherwise, the associated control is determined not to meet the detection conditions. The judgment results of each associated control are obtained as the corresponding fracture risk detection information.
[0028] For example, in a scenario where a 2×1 target control is dragged to the right, if the startColumn(j) mod2 of the associated control equals 1, then it is determined that the detection condition is met. Through this logical comparison based on modulo operation and position parameters, the potential layout disorder risk caused by the movement of mixed-size controls in a fixed column grid can be accurately identified.
[0029] S130. Perform two-dimensional spatial conflict detection on the control operation command according to the preset spatial conflict detection rules and the grid parsing information to obtain the corresponding spatial conflict detection information.
[0030] Furthermore, based on the spatial conflict detection rules and the mesh parsing information obtained in the above steps, two-dimensional spatial conflict detection is performed on the control operation instructions to obtain the corresponding spatial conflict detection information. This step aims to detect the spatial overlap of controls on the two-dimensional plane, ensuring that the target position is not occupied by other controls. The spatial conflict detection rules are constructed based on the intersection judgment logic of row and column intervals, used to determine whether there is partial or complete overlap between controls of different sizes.
[0031] The pre-defined spatial conflict detection rules define the mathematical conditions for conflict determination: within the same row, any two controls whose column intervals intersect are considered to have a spatial conflict. This rule compensates for the deficiency of only detecting complete overlap, and can cover partial overlap cases. During the detection process, the system extracts the position parameters of the target control corresponding to the control operation instruction and its surrounding related controls, and applies the conflict determination function for calculation. For example, for controls i and j, the determination function can be expressed as: conflict(i,j)=[startColumn(i)]<endColumn(j)]∩[endColumn(i)> startColumn(j)]∩[row(i)=row(j)];conflict(i,j) is 1, which indicates that there is a conflict between the two controls, and conflict(i,j) is 0, which indicates that there is no conflict between the controls; row(i) is the row number of the i-th control; row(j) is the row number of the j-th control.
[0032] The system iterates through all controls in the row containing the target control and its adjacent rows, calculating the overlap between their column intervals and the target control's column intervals. If any column interval of an associated control intersects with that of the target control, a spatial conflict is identified, and corresponding spatial conflict detection information is generated. This information includes the identifier of the conflicting control and parameters of the overlapping area. If no intersection is detected, the target area is deemed spatially usable. Through this refined interval detection, the system can accurately identify visual occlusion or overlap, providing spatial constraints for subsequent drag-and-drop strategy selection.
[0033] S140. Based on the preset drag conflict detection rules and the grid parsing information, drag conflict risk detection is performed on the control operation instructions to obtain the corresponding drag conflict detection information.
[0034] Furthermore, drag conflict risk detection is performed on control operation commands using drag conflict detection rules and grid parsing information. This step is used to assess the dynamic conflict risk on the drag path and, combined with the drag direction and speed, predict possible collisions or occlusions during the movement.
[0035] In a specific embodiment, step S140 includes the following sub-steps: parsing the drag direction vector corresponding to the control operation instruction according to the drag parsing parameters in the drag conflict detection rule to obtain the corresponding drag direction determination information; determining the direction weight coefficient corresponding to the drag direction determination information according to the coefficient mapping table in the drag conflict detection rule; and performing weighted calculation on the associated controls corresponding to the control operation instruction in the grid parsing information according to the drag detection function in the drag conflict detection rule and the direction weight coefficient to obtain the drag conflict risk factor as the corresponding drag conflict detection information.
[0036] This approach abstracts the physical operations of a user on a smart terminal screen into mathematical direction vectors, aiming to quantify and represent the user's operational intentions and the movement trends of interface elements. In this process, the smart terminal collects displacement data from the user's input in real time using sensors, and constructs a drag direction vector based on the changes in displacement.
[0037] Specifically, the construction of the drag direction vector depends on the parsing of control operation commands. Specifically, it involves capturing the coordinate data at the start and current times of the drag, calculating the cumulative offset dx along the X-axis and the cumulative offset dy along the Y-axis, thus forming a vector like... The vector reflects the spatial orientation of the operational trajectory.
[0038] The coefficient mapping table stores the mapping relationship between different drag directions and spatial conflict weights, reflecting the directional sensitivity of conflict risk. This mapping table reflects the differences in the probability and severity of interface space conflicts under different drag actions, and is a key data structure for achieving refined risk assessment.
[0039] The coefficient mapping table is constructed based on historical interaction data or user experience experiments during system initialization or strategy configuration. The construction process statistically analyzed the probability of layout chaos caused by downward overlap in horizontal drag scenarios and the probability of occlusion caused by downward overlap in vertical drag scenarios. Based on statistical data, a baseline weight of 1.0 was set. For horizontal drag scenarios, because it easily causes column-direction compression and breakage, the column-direction conflict weight coefficient was increased to 1.5; for vertical drag scenarios, because it mainly involves row-direction occlusion, the row-direction conflict weight coefficient was increased to 1.5; for diagonal dragging, the weights of both directions were combined or compromised, with the horizontal direction (row direction) as the primary direction. If the ratio is 0.8, then the column direction conflict weight coefficient corresponding to the vertical direction (column direction) can be determined to be 1.5 × 0.8 = 1.2. Therefore, the obtained direction weight coefficient includes both the column direction conflict weight coefficient and the row direction conflict weight coefficient.
[0040] By combining spatial geometric relationships with directional weights through mathematical functions, a quantitative risk value is output. The drag-and-drop conflict risk factor is not a Boolean value (conflict present / no conflict), but a continuous value characterizing the severity of the conflict. It is a comprehensive quantitative description of spatial overlap and directional sensitivity.
[0041] The drag detection function takes into account spatial parameters of the associated controls (such as start column, end column, and row number) from the grid parsing information, as well as directional weight coefficients obtained in the preceding steps. Its calculation logic involves a weighted evaluation of the spatial overlap between controls, formally expressed as: ; In the formula, This indicates dragging and dropping conflict risk factors. This represents the horizontal conflict weighting coefficient. This represents the vertical conflict weighting coefficient, where C is the total number of grid columns and H is the total number of grid rows. This represents the collection of associated controls. spanCount(i) represents the number of columns occupied by the associated controls, and spanHeight(i) represents the number of rows occupied by the associated controls.
[0042] In practice, the location information of associated controls surrounding the target control is extracted from the grid parsing information, and the number of columns and rows occupied by the associated controls is determined. Unlike existing technologies that only determine overlap, this embodiment incorporates conflict weight coefficients in the horizontal and vertical directions into the calculation process. These conflict weight coefficients are adaptively adjusted based on the drag direction, accurately obtaining the corresponding drag conflict risk factor. This factor, as a core parameter, is output to the subsequent comprehensive scoring model, realizing a shift from qualitative judgment to quantitative analysis in conflict detection.
[0043] In a specific embodiment, the step of parsing the drag direction vector corresponding to the control operation instruction according to the drag parsing parameters in the drag conflict detection rules to obtain the corresponding drag direction determination information includes: obtaining the corresponding drag direction vector according to the start and end operation positions of the control operation instruction; identifying the main direction of the drag direction vector; determining whether the horizontal axis movement distance ratio of the drag direction vector is within the diagonal determination interval of the drag parsing parameters; if it is within the diagonal determination interval, obtaining drag direction determination information for diagonal dragging along the main direction; if it is not within the diagonal determination interval, obtaining drag direction determination information for dragging in the main direction.
[0044] Based on this, drag direction determination information is generated by comparing vector components and judging a threshold. The determination rule is set as follows: If If so, then the main direction is determined to be horizontal; if If this is the initial determination, the main direction is vertical. To further distinguish diagonal dragging scenarios, calculations are performed. The ratio is used to determine whether a drag is diagonal. If the ratio falls within the diagonal judgment range (e.g., between 0.3 and 3), the drag is considered diagonal; otherwise, it is considered a pure drag in the main direction. Through the above analysis and judgment, the ambiguous interactive gestures are transformed into precise directional state information, laying the foundation for subsequent differentiated weight configuration.
[0045] S150. The drag speed of the control operation command is parsed according to the preset drag speed parsing rules to obtain the corresponding drag speed parsing information.
[0046] The drag-and-drop speed is analyzed according to the drag-and-drop speed analysis rules. This step can match the corresponding system response mode according to the speed of the user's drag-and-drop operation, so as to balance the smoothness of interaction and the computational overhead.
[0047] In a specific embodiment, step S150 includes the following sub-steps: obtaining the drag speed corresponding to the control operation instruction; classifying the drag speed according to the drag speed parsing rules to obtain the corresponding drag speed level as the corresponding drag speed parsing information.
[0048] To obtain the drag speed corresponding to the control operation command, for example, the drag speed v can be obtained by the formula: v=Δpos / Δt, where Δpos is the displacement change of the target control and Δt is the time change.
[0049] In this embodiment, a preset drag speed analysis rule is introduced to discretize and classify the calculated drag speed. The preset drag speed analysis rule includes a set of speed classification thresholds to define the boundaries of different interaction rhythms. The formation process of this rule is, for example, during the system development phase, based on a large amount of user operation habit data in interactive scenarios such as in-vehicle terminals, statistical analysis is performed on the speed distribution range under different operation intentions to determine the speed boundaries that distinguish between low-speed fine operations, medium-speed regular operations, and high-speed rapid operations. In this embodiment, the speed classification thresholds may include, for example, a low-speed threshold vlow and a high-speed threshold vhigh, where vlow is used to distinguish between fine operations and regular operations, and vhigh is used to distinguish between regular operations and rapid operations. Specific values can be set, for example, vlow = 50px / s, vhigh = 200px / s, etc.
[0050] The real-time drag speed *v* is compared with preset speed grading thresholds to determine the current drag speed level. This grading logic forms a conditional mapping mechanism, mapping continuous speed values to discrete state quantities that can be directly invoked by the strategy model. For example, when *v* is detected to be less than the low-speed threshold *vlow*, it is determined to be a slow drag level, indicating that the user is performing fine-tuning operations; when *v* is between the low-speed threshold *vlow* and the high-speed threshold *vhigh*, it is determined to be a medium-speed drag, indicating a normal interaction rhythm; when *v* is greater than or equal to the high-speed threshold *vhigh*, it is determined to be a high-speed drag, indicating that the user expects to complete the drag action quickly. The final drag speed level (such as low-speed, medium-speed, or high-speed) serves as the corresponding drag speed parsing information, which is passed to the subsequent comprehensive scoring model as a key basis for calculating Rspeed (speed risk factor). Through this speed dimension parsing, the interaction strategy can dynamically adapt to the user's operational intentions, significantly improving the system's intelligent response level.
[0051] S160. Analyze the fracture risk detection information, spatial conflict detection information, drag conflict detection information, and drag speed analysis information according to the preset comprehensive scoring model to obtain the corresponding comprehensive risk score.
[0052] The four sets of analytical information obtained from the above four analyses are comprehensively analyzed based on a pre-configured comprehensive scoring model to obtain a comprehensive risk score. In other words, the risk information from the four dimensions mentioned above is quantitatively integrated to form a unified comprehensive risk score, which serves as the decision-making basis for subsequent ranking operations. The comprehensive scoring model defines the weight allocation and calculation formula for each risk factor.
[0053] The pre-built comprehensive scoring model was constructed during the offline training phase based on historical layout adjustment data and expert experience. This model calculates the comprehensive risk score R using a weighted summation method, with a formula for example: R = w1·Rmod + w2·Rspace + w3·Rdir + w4·Rspeed.
[0054] Wherein, Rmod is the fracture risk factor corresponding to the fracture risk detection information, with a value range of, for example, {0, 0.6, 1.0}. The fracture risk detection information comes from the detection results of step S120. For example, in the fracture risk detection information, the ratio of the number of associated controls that meet the detection conditions to the total number of associated controls is less than 0.15, then the fracture risk factor is set to 0. If the ratio of the number of associated controls that meet the detection conditions to the total number of associated controls is greater than 0.5, then the fracture risk factor is set to 1. In other cases, the fracture risk factor is set to 0.6. Rspace is the spatial conflict risk factor corresponding to the spatial conflict detection information, with a value range of, for example, [0, 1]. The spatial conflict detection information comes from the detection results of step S130. If the fracture risk detection information indicates that there is no control conflict, then the corresponding spatial conflict risk factor is set to 0. If the fracture risk detection information indicates that there is a control conflict, then the corresponding spatial conflict risk factor is determined based on the overlapping area between the conflicting controls. Since the maximum overlapping area is 1, the maximum value of the spatial conflict risk factor is also 1. Rdir is the drag conflict risk factor in the drag conflict detection information, with a value range of, for example, [0, 0.5]. The drag conflict detection information comes from the detection result of step S140. Rspeed is the speed risk factor corresponding to the drag speed parsing information, with a value range of, for example, [0, 0.3]. The drag speed parsing information comes from the detection result of step S150. For example, if the drag speed parsing information is slow dragging, the speed risk factor is determined to be 0. If the drag speed parsing information is fast dragging, the speed risk factor is determined to be 0.3. If the drag speed parsing information is medium-speed dragging, a speed risk factor between 0 and 0.3 is determined based on the actual drag speed. For example, the speed risk factor can be determined to be 0.3 × (v - vlow) / (vhigh - vlow). w1, w2, w3, and w4 are the corresponding weight coefficients. The default configuration is, for example, w1=0.5, w2=0.3, w3=0.1, and w4=0.1. These coefficients can be dynamically adjusted according to the control density and interaction frequency of the actual scenario.
[0055] During the calculation process, the system maps the detection information output from each step to the corresponding risk factor values and substitutes them into the above formula for calculation. The final comprehensive risk score R is a quantitative value used to characterize the overall risk level of the current drag operation. This score not only covers the static risks of layout breakage and spatial overlap, but also incorporates the dynamic drag direction and speed characteristics, providing a precise and interpretable quantitative benchmark for subsequent strategy selection.
[0056] S170. Obtain the sorting execution instructions that match the control operation instructions based on the preset strategy configuration model and the comprehensive risk score.
[0057] Further, based on the strategy matching model and the comprehensive risk score obtained from the above steps, the sorting execution instructions that match the control operation instructions are obtained. That is, the optimal sorting adjustment strategy is automatically selected based on the comprehensive risk score. The strategy configuration model defines the mapping relationship between risk score ranges and sorting execution strategies. The preset strategy configuration model is established during the system configuration phase, and its internal structure includes, for example, multiple conditional branches, each corresponding to a risk score range and a corresponding sorting execution instruction.
[0058] In a specific embodiment, step S170 includes the following sub-steps: obtaining a ranking strategy corresponding to the comprehensive risk score based on the strategy configuration model; and generating a ranking execution instruction corresponding to the ranking strategy based on the start and end operation positions of the target control in the control operation instruction.
[0059] The strategy configuration model establishes a mapping between comprehensive risk scores and specific operational strategies. It pre-stores rules corresponding to different risk value ranges and ranking strategies. This model is typically built offline or through rule setting. The process includes: dividing the risk level ranges into multiple ranges (e.g., safe, medium-risk, high-risk); assigning a specific ranking strategy type to each range (e.g., sliding insertion, local minimum substitution, exchange, and abort / backoff); and storing the mapping relationships as key-value pairs or logical decision trees. Based on the comprehensive risk score calculated in the preceding steps, the system determines the risk level range to which the score belongs through table lookup or logical operations, and then matches and outputs the corresponding ranking strategy. For example, if the preset safety range is a comprehensive risk score less than 0.3, when the score is 0.2, the model outputs a sliding insertion strategy; if the score is 0.5 and falls into the medium-risk range (e.g., 0.3 < and ≤ 0.7), it outputs a local minimum replacement strategy; if the score is 0.85 (e.g., 0.7 < and ≤ 0.9), it enters the high-risk range and outputs a swap strategy; if the score is 0.98 (e.g., 0.9 <), it enters the prohibited range and the backoff strategy is terminated. With the help of the strategy configuration model, the system can quickly locate the matching processing strategy based on the quantified risk score, providing a decision-making basis for subsequently generating specific execution actions.
[0060] The starting position refers to the initial coordinates of the target control in the user interface grid when the user begins the drag operation, and the ending position refers to the target coordinates of the target control in the user interface grid when the user ends the drag operation or releases the gesture. The sorting execution instructions are a set of instructions that drive the underlying rendering engine to complete the interface layout adjustment, including the moved object, movement path, target coordinates, and information about the affected related controls. Control operation instructions are parsed to extract the coordinate parameters (such as row and column indices or screen pixel coordinates) of the starting and ending positions. The displacement vector and target insertion point of the control are calculated using these coordinate parameters, and spatial transformation logic is constructed based on the determined sorting level strategy. When the sorting level strategy is local minimum permutation, the affected continuous control sequence is identified based on the starting and ending positions, the movement direction (such as left or right shift) and step size of the sequence are calculated, and a sorting execution instruction containing sequence rotation logic is generated. When the strategy is sliding insertion, an instruction is generated to remove the target control from the starting position and insert it into the ending position, while simultaneously instructing subsequent controls to automatically move backward. By integrating location information with sorting strategies, the generated sorting execution instructions contain precise spatial location information and operational logic, ensuring that the underlying system accurately executes layout adjustments and achieves a precise mapping from risk assessment to physical actions.
[0061] In a specific embodiment, after obtaining the ranking strategy corresponding to the comprehensive risk score according to the strategy configuration model, the method further includes: determining whether the termination position of the target control in the control operation instruction and the size of the target control meet a preset idle degree evaluation condition; if the idle degree evaluation condition is met, executing the step of generating a ranking execution instruction corresponding to the ranking strategy based on the start and end positions of the target control in the control operation instruction; if the idle degree evaluation condition is not met, downgrading the ranking strategy and executing the step of generating a ranking execution instruction corresponding to the ranking strategy based on the start and end positions of the target control in the control operation instruction.
[0062] Before generating the final sorting execution instructions, the space capacity of the target location must be verified to prevent insertion failure or layout overflow due to insufficient space. This verification process is performed based on a preset idle space evaluation condition, which characterizes the minimum contiguous space standard required to provide effective placement space for target controls of a specific size in a grid layout.
[0063] The idle space evaluation criteria can be constructed based on the parameters set during system initialization. According to the control size specifications supported by the application scenario (e.g., support for mixed 1×1 and 2×1 layouts) and the total number of columns in the grid, the required number of consecutive empty cells for controls of different sizes is defined. Specifically, for a 1×1 control occupying one column width, the idle space evaluation criteria are set to at least one empty cell starting from the target column; for a 2×1 control occupying two columns width, the criteria are set to at least two consecutive empty cells starting from the target column. This logic can be implemented using the function `freeSpace(col) = Σempty(col + k, row)`, where the value of `k` is determined by the control size, `empty(col, row)` is a Boolean function used to determine whether the cell at the specified coordinates is empty, and `freeSpace(col)` is a consecutive empty cell evaluation function used to detect whether k consecutive cells starting from column `col` are empty. The constructed idle space evaluation criteria are encapsulated into a set of rules, which are called at runtime to verify the validity of the target position.
[0064] Based on the drag termination position and target control size attributes obtained from the preceding steps, specific judgment calculations are performed. Taking a 2×1 control as an example, the row index and target column index of its termination position are calculated, and then it is checked whether the target column and the adjacent next column (col+1) simultaneously satisfy the empty function as true. If the detection result shows that the number of consecutive empty cells is greater than or equal to the number of cells required by the control, the empty space evaluation condition is determined to be met; otherwise, it is determined not to be met. This mechanism ensures that the system has pre-examined the resource sufficiency of the target area before performing physical sorting adjustments.
[0065] When the spatial status of the target location meets the requirements of the idleness assessment, it indicates that the current sorting level strategy has a sufficient physical basis for implementation and will not fail due to space constraints. At this point, the sorting level strategy calculated in the previous steps remains unchanged, and the process directly enters the instruction generation stage.
[0066] If the determination result indicates that the target position does not meet the idle space evaluation conditions, such as a 2×1 control attempting to insert into an area with only one empty cell, or when dragging across lists, the end space of the target list is insufficient to accommodate a large-sized control, directly executing the original high-interaction strategy (such as sliding insertion or partial replacement) can easily lead to layout collapse or calculation errors. To ensure the robustness of the system, a strategy degradation mechanism is introduced.
[0067] For example, if the current sorting level strategy is a swap strategy, and this sorting level strategy is downgraded, then the corresponding sorting level strategy can be determined to be an abort / rollback strategy.
[0068] Strategy degradation refers to the process of automatically switching to a more conservative strategy with lower space requirements and greater compatibility when a higher-level interaction strategy cannot be executed due to resource constraints. In this embodiment, for example, the original sorting strategy based on sliding insertion (remove+add) can be downgraded to a minimum replacement strategy, or the local minimum replacement strategy can be downgraded to a simple pairwise swap strategy. In extreme cases where dragging is aborted and the process is reversed, the strategy can even be downgraded to maintaining the status quo. This degradation process sacrifices some interaction smoothness (e.g., the inability to achieve automatic sliding effects) in exchange for an absolute success rate of the operation, avoiding program errors or interface glitches.
[0069] After the strategy downgrade is completed, the corresponding sorting and execution instructions are generated based on the new downgraded strategy, combined with the start and end operation positions.
[0070] S180. Execute the sorting instruction to adjust the sorting of controls contained in the user interface.
[0071] This step is the final execution stage of the entire method, aiming to translate the selected strategy into actual visual changes on the user interface. Based on the sorting execution instructions obtained in step S107, the system calls the corresponding layout adjustment interfaces or functions to update the physical positions of controls in the user interface.
[0072] For example, if the sorting instruction is a sliding insertion (remove+add), the system first removes the original position record of the target control at the data level, then inserts it into the new target index position, and triggers a list refresh, causing controls after the original position to automatically shift forward or backward to fill the gap. If the instruction is a local minimum permutation, the system calculates the length of the affected control sequence; if the length is short, it performs a circular shift operation within the sequence. If the instruction is a swap, the system directly swaps the index data of the target control and the control at the target position.
[0073] If the sorting execution instruction corresponds to the minimum replacement strategy, the corresponding replacement operation algorithm is as follows: Step 1: Scan forward / backward from the target position of the target control to find the first unaffected control as the boundary; Step 2: Calculate the length L of the affected control sequence; Step 3: If L≤4, perform a circular right shift (when dragging left) or left shift (when dragging right) within the sequence; Step 4: If L>4, downgrade to a pairwise swap strategy.
[0074] During the dragging process, when a series of move events are triggered, the system not only detects the final hover position of the dragged target control, but also detects the instantaneous spatial conflict on its movement path: pathConflict(t) = conflict(pos(t)), ∀t∈[t0,tcurrent]; where t0 is the start time of the drag, tcurrent is the current time, and pos(t) is the position coordinate of the dragged target control at time t. The conflict judgment process is the same as the above steps.
[0075] The specific execution logic is as follows: If a momentary conflict is detected on the path (i.e., the dragged target control overlaps with an existing control in a row or column when passing through an intermediate position), the system does not block the drag operation. Instead, it automatically calculates the minimum avoidance offset Δoffset=(Δx,Δy) and uses a binary search method to find the feasible coordinates closest to the original path in adjacent spaces, guiding the dragged element to slide along a conflict-free "safe channel" to the target position. After the user releases the drag, the final layout adjustment steps are triggered based on the sorting instructions corresponding to different sorting level strategies. This mechanism significantly improves drag responsiveness and visual smoothness while ensuring zero breaks in the final layout.
[0076] Furthermore, if it is a drag-and-drop operation across lists, in addition to executing the sorting execution instructions mentioned above, continuous empty space verification and cascading synchronization are performed. The steps for cross-list drag-and-drop control between the source list and the target list include: (1) Continuous empty space verification: Before the 2×1 control is moved into the target list, it is verified whether there are two consecutive empty spaces in the target row (implemented by calling the freeSpace function in the above steps). If freeSpace<2, the move-in is prohibited and the rollback is performed. (2) Cascading left shift to fill: After the 2×1 control is removed from the source list, a cascading left shift is triggered to fill the gaps, ensuring that there are no empty spaces left in the source list. (3) Cascading right shift to make room: Before the 2×1 control is inserted into the target list, a cascading right shift is triggered to make room for the insertion. (4) Cross-list direction awareness: When dragging from the left list to the right list (drag across columns to the right), the priority of the target position is the rightmost consecutive empty space in the row; when dragging from the right list to the left list (drag across columns to the left), the priority of the target position is the leftmost consecutive empty space in the row.
[0077] After updating the data layer, the system controls the smart terminal's display to re-render the user interface, showing the adjusted control layout. This process ensures that the interface state seen by the user is consistent with the internal logical state of the system. Through these steps, the system achieves response and feedback to control operation commands, completing a closed-loop control from risk detection to strategy execution and interface presentation.
[0078] The grid adaptive sorting method based on multi-dimensional conflict prediction provided in this application obtains structured layout information through grid parsing and simultaneously initiates four parallel detection methods: fracture risk detection, spatial conflict detection, drag conflict risk detection, and drag speed analysis. Fracture risk detection focuses on the critical state of cross-row fractures caused by column offsets; spatial conflict detection determines the intersection of column intervals within the same row of controls; drag conflict detection combines directional priority and diagonal judgment to introduce directional weights to achieve differentiated conflict quantification; and speed analysis discretizes dynamic dragging behavior into a three-level response mode. The four types of detection outputs are weighted and fused by a comprehensive scoring model to generate a comprehensive risk score. This score drives the strategy configuration model to output three levels of execution instructions: sliding insertion, local minimum replacement, or swapping, ultimately completing the control rearrangement. This multi-dimensional collaborative detection and decision-making mechanism not only eliminates layout fractures in mixed-size grids at their source but also achieves an optimal balance between layout stability and interaction smoothness through a hierarchical strategy, especially in cross-list scenarios. This solution effectively solves the insertion overflow problem when large-size controls are moved into the target list through continuous empty space verification and cascading filling, significantly improving the interaction robustness under complex grid layouts.
[0079] This invention discloses a mesh adaptive sorting method based on multi-dimensional conflict detection. The method includes: receiving control operation instructions and performing mesh parsing on the user interface; performing fracture risk detection, two-dimensional spatial conflict detection, drag conflict risk detection, and drag speed analysis to obtain multi-dimensional detection information; analyzing each detection information using a comprehensive scoring model to obtain a comprehensive risk score; obtaining a matching sorting execution instruction based on a strategy configuration model and the comprehensive risk score; and adjusting the sorting of controls according to the sorting execution instruction. This method, by obtaining a comprehensive score through multi-dimensional conflict detection and generating a corresponding matching sorting execution instruction, can effectively solve the problems of interface layout disorder and awkward interaction caused by multi-dimensional conflicts in mixed-size mesh layouts, improving layout stability and operational smoothness.
[0080] This invention also provides a mesh adaptive sorting device based on multidimensional collision detection. This device can be configured in a smart terminal and is used to execute any embodiment of the aforementioned mesh adaptive sorting method based on multidimensional collision detection. Specifically, please refer to... Figure 2 , Figure 2 This is a schematic block diagram of a grid adaptive sorting device based on multidimensional conflict detection provided in an embodiment of the present invention.
[0081] like Figure 2As shown, the mesh adaptive sorting device 100 based on multidimensional conflict detection includes a mesh parsing unit 110, a fracture risk detection unit 120, a spatial conflict detection unit 130, a drag conflict detection unit 140, a drag speed parsing unit 150, a comprehensive risk score acquisition unit 160, a sorting execution instruction acquisition unit 170, and a sorting adjustment unit 180.
[0082] The grid parsing unit 110 is used to perform grid parsing on the user interface and obtain corresponding grid parsing information if it receives a control operation instruction input by the user.
[0083] The fracture risk detection unit 120 is used to perform fracture risk detection on the control operation command according to the preset fracture detection rules and the mesh parsing information, and obtain the corresponding fracture risk detection information.
[0084] The spatial conflict detection unit 130 is used to perform two-dimensional spatial conflict detection on the control operation command according to the preset spatial conflict detection rules and the grid parsing information, and obtain the corresponding spatial conflict detection information.
[0085] The drag conflict detection unit 140 is used to perform drag conflict risk detection on the control operation instructions according to the preset drag conflict detection rules and the grid parsing information, and obtain the corresponding drag conflict detection information.
[0086] The drag speed analysis unit 150 is used to analyze the drag speed of the control operation instructions according to the preset drag speed analysis rules, and obtain the corresponding drag speed analysis information.
[0087] The comprehensive risk score acquisition unit 160 is used to analyze the fracture risk detection information, the spatial conflict detection information, the drag conflict detection information and the drag speed analysis information according to the preset comprehensive score model to obtain the corresponding comprehensive risk score.
[0088] The sorting execution instruction acquisition unit 170 is used to acquire sorting execution instructions that match the control operation instructions based on the preset strategy configuration model and the comprehensive risk score.
[0089] The sorting adjustment unit 180 is used to execute the sorting execution instruction to sort and adjust the controls contained in the user interface.
[0090] The mesh adaptive sorting device based on multidimensional conflict detection provided in this embodiment of the invention applies the aforementioned mesh adaptive sorting method based on multidimensional conflict detection. It receives control operation instructions and performs mesh parsing on the user interface; it performs fracture risk detection, two-dimensional spatial conflict detection, drag conflict risk detection, and drag speed analysis to obtain multidimensional detection information; it uses a comprehensive scoring model to analyze each detection information to obtain a comprehensive risk score; it obtains a matching sorting execution instruction based on the strategy configuration model and the comprehensive risk score; and it adjusts the sorting of controls according to the sorting execution instruction. This application's calculation method obtains a comprehensive score through multidimensional conflict detection and generates a corresponding matching sorting execution instruction, which can effectively solve the problems of interface layout disorder and stiff interaction caused by multidimensional conflicts in mixed-size mesh layouts, improving layout stability and operational smoothness.
[0091] The aforementioned grid adaptive sorting device based on multidimensional collision detection can be implemented as a computer program, which can be used in, for example... Figure 3 It runs on the computer device shown.
[0092] Please see Figure 3 , Figure 3 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device may be an intelligent terminal for executing a grid adaptive sorting method based on multidimensional collision detection to adaptively sort the user interface grid.
[0093] See Figure 3 The computer device 500 includes a processor 502, a memory, and a communication interface 505 connected via a communication bus 501. The memory may include a storage medium 503 and internal memory 504.
[0094] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to execute a grid adaptive sorting method based on multidimensional collision detection. The storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0095] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0096] The internal memory 504 provides an environment for the execution of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a grid adaptive sorting method based on multidimensional collision detection.
[0097] This communication interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 3The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device 500 to which the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0098] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned grid adaptive sorting method based on multidimensional collision detection.
[0099] Those skilled in the art will understand that Figure 3 The embodiments of the computer device shown do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 3 The embodiments shown are consistent and will not be repeated here.
[0100] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0101] In another embodiment of the invention, a computer-readable storage medium is provided. This computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps included in the above-described mesh adaptive sorting method based on multidimensional collision detection.
[0102] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0103] In the embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.
[0104] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0105] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0106] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.
[0107] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A grid adaptive sorting method based on multidimensional conflict detection, characterized in that, The method is applied in a smart terminal, the smart terminal including a display screen for displaying a user interface, the method comprising: If a user inputs a control operation command, the user interface is parsed to obtain the corresponding grid parsing information; The control operation instructions are subjected to fracture risk detection based on the preset fracture detection rules and the mesh parsing information to obtain the corresponding fracture risk detection information. Based on the preset spatial conflict detection rules and the grid parsing information, the control operation instructions are subjected to two-dimensional spatial conflict detection to obtain the corresponding spatial conflict detection information. Based on the preset drag conflict detection rules and the grid parsing information, drag conflict risk detection is performed on the control operation instructions to obtain the corresponding drag conflict detection information. The drag speed of the control operation command is parsed according to the preset drag speed parsing rules to obtain the corresponding drag speed parsing information; The fracture risk detection information, spatial conflict detection information, drag conflict detection information, and drag speed analysis information are analyzed according to the preset comprehensive scoring model to obtain the corresponding comprehensive risk score. Based on the preset strategy configuration model and the comprehensive risk score, obtain the sorted execution instructions that match the control operation instructions; The sorting instruction is executed to rearrange the controls contained in the user interface.
2. The grid adaptive sorting method based on multidimensional collision detection according to claim 1, characterized in that, The step of performing fracture risk detection on the control operation command according to the preset fracture detection rules and the mesh parsing information to obtain the corresponding fracture risk detection information includes: Obtain the detection judgment parameters in the fracture detection rules that match the target control size of the control operation instruction, and set the corresponding detection conditions; Obtain the control position parameters of the associated control corresponding to the control operation instruction from the grid parsing information; Determine whether the control position parameters of each associated control meet the detection conditions to obtain the corresponding fracture risk detection information.
3. The grid adaptive sorting method based on multidimensional collision detection according to claim 2, characterized in that, The step of performing drag conflict risk detection on the control operation instructions based on preset drag conflict detection rules and the grid parsing information to obtain corresponding drag conflict detection information includes: The drag direction vector corresponding to the control operation command is parsed according to the drag parsing parameters in the drag conflict detection rule to obtain the corresponding drag direction determination information; The direction weight coefficient corresponding to the drag direction determination information is determined according to the coefficient mapping table in the drag conflict detection rule. Based on the drag detection function in the drag conflict detection rules and the direction weight coefficient, the associated controls corresponding to the control operation instructions in the grid parsing information are weighted and calculated to obtain the drag conflict risk factor as the corresponding drag conflict detection information.
4. The grid adaptive sorting method based on multidimensional collision detection according to claim 3, characterized in that, The step of parsing the drag direction vector corresponding to the control operation command according to the drag parsing parameters in the drag conflict detection rule to obtain the corresponding drag direction determination information includes: Obtain the corresponding drag direction vector based on the start and end positions of the control operation instructions; Identify the main direction of the drag direction vector; Determine whether the horizontal axis movement distance ratio of the drag direction vector is within the diagonal determination interval of the drag parsing parameters; If it is located within the oblique determination interval, drag direction determination information for oblique dragging along the main direction is obtained; If it is not located within the diagonal determination range, the drag direction determination information for the main direction drag is obtained.
5. The mesh adaptive sorting method based on multidimensional collision detection according to any one of claims 1-4, characterized in that, The step of parsing the control operation instructions according to preset drag speed parsing rules to obtain corresponding drag speed parsing information includes: Obtain the drag speed corresponding to the control operation command; The drag speed is classified according to the drag speed parsing rules to obtain the corresponding drag speed level as the corresponding drag speed parsing information.
6. The mesh adaptive sorting method based on multidimensional collision detection according to claim 5, characterized in that, The step of obtaining the sorted execution instructions that match the control operation instructions based on the preset strategy configuration model and the comprehensive risk score includes: Based on the strategy configuration model, obtain the ranking level strategy corresponding to the comprehensive risk score; Based on the start and end positions of the target control in the control operation instructions, a sorting execution instruction corresponding to the sorting level strategy is generated.
7. The mesh adaptive sorting method based on multidimensional collision detection according to claim 6, characterized in that, After obtaining the ranking strategy corresponding to the comprehensive risk score based on the strategy configuration model, the method further includes: Determine whether the termination position of the target control in the control operation instruction and the size of the target control meet the preset idle degree evaluation conditions; If the idle time evaluation condition is met, the step of generating a sorting execution instruction corresponding to the sorting level strategy based on the start and end operation positions of the target control in the control operation instruction is executed. If the idle time evaluation condition is not met, the sorting level strategy is downgraded, and the step of generating a sorting execution instruction corresponding to the sorting level strategy based on the start and end operation positions of the target control in the control operation instruction is executed.
8. A grid adaptive sorting device based on multidimensional conflict detection, characterized in that, The device is configured in a smart terminal, the smart terminal including a display screen for displaying a user interface, the device being used to execute the mesh adaptive sorting method based on multidimensional collision detection as described in any one of claims 1-7, the device comprising: The grid parsing unit is used to perform grid parsing on the user interface and obtain corresponding grid parsing information if it receives a control operation instruction input by the user. A fracture risk detection unit is used to perform fracture risk detection on the control operation command according to the preset fracture detection rules and the mesh parsing information, and obtain the corresponding fracture risk detection information. The spatial conflict detection unit is used to perform two-dimensional spatial conflict detection on the control operation command according to the preset spatial conflict detection rules and the grid parsing information, and obtain the corresponding spatial conflict detection information. The drag conflict detection unit is used to perform drag conflict risk detection on the control operation instructions according to the preset drag conflict detection rules and the grid parsing information, and obtain the corresponding drag conflict detection information. The drag speed analysis unit is used to analyze the drag speed of the control operation instructions according to the preset drag speed analysis rules, and obtain the corresponding drag speed analysis information. The comprehensive risk score acquisition unit is used to analyze the fracture risk detection information, the spatial conflict detection information, the drag conflict detection information and the drag speed analysis information according to the preset comprehensive score model to obtain the corresponding comprehensive risk score; The sorting execution instruction acquisition unit is used to acquire sorting execution instructions that match the control operation instructions based on the preset strategy configuration model and the comprehensive risk score. The sorting adjustment unit is used to execute the sorting execution instruction to sort the controls contained in the user interface.
9. A computer device, characterized in that, The device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the steps of the grid adaptive sorting method based on multidimensional collision detection as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the grid adaptive sorting method based on multidimensional collision detection as described in any one of claims 1-7.
