CN111352549B - Data object display method, device, equipment and storage medium - Google Patents

Data object display method, device, equipment and storage medium Download PDF

Info

Publication number
CN111352549B
CN111352549B CN202010117321.5A CN202010117321A CN111352549B CN 111352549 B CN111352549 B CN 111352549B CN 202010117321 A CN202010117321 A CN 202010117321A CN 111352549 B CN111352549 B CN 111352549B
Authority
CN
China
Prior art keywords
data object
editing operation
information
editing
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010117321.5A
Other languages
Chinese (zh)
Other versions
CN111352549A (en
Inventor
杜玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010117321.5A priority Critical patent/CN111352549B/en
Publication of CN111352549A publication Critical patent/CN111352549A/en
Application granted granted Critical
Publication of CN111352549B publication Critical patent/CN111352549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a data object display method, a device, equipment and a storage medium; the method comprises the following steps: displaying an original data object on a data object display page, and receiving a display type switching instruction aiming at the original data object displayed on the data object display page, wherein the display type switching instruction is used for displaying a new data object on the data object display page through switching the display type; responding to the display type switching instruction, and acquiring a new display type from the display type switching instruction; the new display type is the display type after switching; acquiring a data object according to the new display type to obtain a new data object; acquiring minimum editing operation information between a new data object and an original data object; and editing the displayed original data object according to the minimum editing operation information and the new data object so as to display the new data object on the data object display page. By the embodiment of the invention, the performance of data object display can be improved.

Description

Data object display method, device, equipment and storage medium
Technical Field
The present invention relates to data processing technologies in the field of computers, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a data object.
Background
When the display type is switched for the currently displayed data object, the displayed data object is changed and the position of the same data object is also changed compared with the currently displayed data object for the data object to be displayed after switching. That is, when the currently displayed data object needs to be updated and displayed due to the switching of the display types, the currently displayed data object needs to be edited according to the data object to be displayed.
Generally, when the display types are switched, the insertion, replacement, deletion and movement operations provided by the operating system are usually adopted to implement, that is, a single data object is taken as a unit, and according to the data object to be displayed, an editing operation is performed on the currently displayed data object, so as to display the data object corresponding to the switched display type. However, in the above editing operation process, the editing operation information is manually determined according to the currently displayed data object and the data object to be displayed, and there is a redundant operation; thus, the performance of data object presentation is low.
Disclosure of Invention
The embodiment of the invention provides a data object display method, a data object display device, data object display equipment and a storage medium, which can improve the performance of data object display.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a data object display method, which comprises the following steps:
displaying an original data object on a data object display page, and receiving a display type switching instruction aiming at the original data object displayed on the data object display page, wherein the display type switching instruction is used for displaying a new data object on the data object display page by switching a display type;
responding to the display type switching instruction, and acquiring a new display type from the display type switching instruction; the new display type is the display type after switching;
acquiring a data object according to the new display type to obtain the new data object;
acquiring minimum editing operation information between the new data object and the original data object; the minimum editing operation information is minimum processing information for performing editing operation by switching from displaying the original data object to displaying the new data object;
and editing the displayed original data object according to the minimum editing operation information and the new data object so as to display the new data object on the data object display page.
An embodiment of the present invention provides a data object display apparatus, including:
the display device comprises an instruction receiving module, a display type switching module and a display module, wherein the instruction receiving module is used for displaying an original data object on a data object display page and receiving a display type switching instruction aiming at the original data object displayed on the data object display page, and the display type switching instruction is used for displaying a new data object on the data object display page by switching a display type;
the type acquisition module is used for responding to the display type switching instruction and acquiring a new display type from the display type switching instruction; the new display type is the display type after switching;
the object acquisition module is used for acquiring a data object according to the new display type to obtain the new data object;
the operation acquisition module is used for acquiring minimum editing operation information between the new data object and the original data object; the minimum editing operation information is minimum processing information for performing editing operation by switching from displaying the original data object to displaying the new data object;
and the display module is used for editing the displayed original data object according to the minimum editing operation information and the new data object so as to display the new data object on the data object display page.
An embodiment of the present invention provides a data object display apparatus, including:
a memory for storing executable instructions;
and the processor is used for realizing the data object display method provided by the embodiment of the invention when the executable instructions stored in the memory are executed.
The embodiment of the invention provides a computer-readable storage medium, which stores executable instructions and is used for causing a processor to execute the executable instructions so as to realize the data object display method provided by the embodiment of the invention.
The embodiment of the invention has the following beneficial effects: when the display type of the currently displayed original data object is switched to display a new data object, the switching is realized through the minimum editing operation information between the new data object and the original data object; the minimum editing operation information is the minimum processing information for performing editing operation for switching the display of the original data object into the display of the new data object, so that the realization efficiency is high, and the performance of data object display is improved.
Drawings
FIG. 1 is a diagram of an exemplary application switching presentation types in photo management;
FIG. 2 is a diagram of another exemplary application for switching presentation types in photo management;
FIG. 3 is an alternative architectural diagram of a data object presentation system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of an alternative data object displaying method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an exemplary data object presentation provided by an embodiment of the present invention;
FIG. 7 is a diagram illustrating exemplary initial dynamic programming table information provided by an embodiment of the present invention;
FIG. 8 is a diagram illustrating another exemplary initial dynamic programming table information provided by an embodiment of the present invention;
FIG. 9 is a diagram illustrating exemplary initialized initial dynamic programming table information provided by an embodiment of the invention;
FIG. 10 is a diagram illustrating another exemplary initialized initial dynamic programming table information provided by an embodiment of the invention;
FIG. 11 is a diagram illustrating exemplary target dynamic programming table information provided by an embodiment of the present invention;
FIG. 12 is a diagram illustrating exemplary target dynamic programming table information provided by an embodiment of the present invention;
fig. 13 is a diagram illustrating an exemplary method for determining edit manipulation information in a unit cell according to an embodiment of the present invention;
fig. 14 is a schematic diagram of another exemplary method for determining edit manipulation information in a cell according to an embodiment of the present invention;
FIG. 15 is a schematic flow chart of another alternative data object displaying method according to an embodiment of the present invention;
FIG. 16 is a flow diagram illustrating an exemplary operational integration provided by an embodiment of the present invention;
FIG. 17 is a diagram of exemplary operational step information provided by an embodiment of the present invention;
fig. 18 is a schematic diagram of exemplary obtaining insertion operation information according to an embodiment of the present invention;
FIG. 19 is a diagram illustrating exemplary target operation step information provided by an embodiment of the present invention;
fig. 20 is a schematic diagram of exemplary obtaining target deletion operation information according to an embodiment of the present invention;
FIG. 21 is a schematic diagram of an exemplary one-time operation simplification provided by embodiments of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, to enable embodiments of the invention described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the embodiments of the present invention is for the purpose of describing the embodiments of the present invention only and is not intended to be limiting of the present invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) The Fisher-Wagner-Fischer algorithm (Wagner-Fischer algorithm) is a dynamic programming algorithm in computer science and is used for solving the Lavenstein distance; and the levenstein distance refers to the minimum number of editing operations between two character strings, and the operations allowed by a single character include replacement, insertion, and deletion; in the embodiment of the present invention, when the data object is regarded as a single character, the levenstein distance of two data object sets can be obtained by using the fisher-wagner algorithm to obtain the minimum editing operation information between the two data object sets (the original data object and the new data object).
2) Dynamic Programming (DP), which is a process of decomposing a problem to be solved into a plurality of subproblems, storing solutions of the subproblems to avoid calculating repeated subproblems, and obtaining a solution of an original problem from the solutions of the subproblems; are often used to solve problems of some sort with the most significant nature.
It should be noted that, when the display type is switched for the currently displayed data object (for example, the data object is a photo, the currently displayed photo is a display based on a filter photo, and the display type is switched to a similar photo), the data object to be displayed after switching has a possibility that the displayed data object is changed and the position where the same data object is located is also changed compared with the currently displayed data object. For example, referring to fig. 1, fig. 1 is a diagram illustrating an exemplary application switching presentation types in photo management; as shown in fig. 1, a process of clearing photos for a cell phone housekeeper is described, a data object is a photo, and a currently displayed data object, such as a page 1-1, is displayed based on a display type of a filter photo; when the data object is displayed based on the similar photos, a page 1-2 is obtained; and when the data object is determined to be displayed based on the network photo, pages 1-3 are obtained. It is easy to know that the photos 1-11 in the page 1-1 and the photos 1-21 in the page 1-2 are the same photos, but the positions in the page 1-1 and the page 1-2 are different; photos 1-22 in page 1-2 and photos 1-31 in page 1-3 are the same photos, but the positions in page 1-2 and page 1-3 are different.
For another example, referring to fig. 2, fig. 2 is a schematic diagram of another exemplary application for switching presentation types in photo management; as shown in fig. 2, the process of still performing photo cleaning for the mobile phone housekeeper is described, the data object is a photo, and the currently displayed data object, such as page 2-1, is displayed based on the display type of date; when the data object is displayed based on the photo type, a page 2-2 is obtained; and when the data object is determined to be displayed based on the degree of preference, pages 2-3 are obtained. It is easy to know that, in the page 2-1 and the page 2-2, only the positions of the photograph 11 and the photograph 14 are not changed, and the positions of the photographs 1 to 10, 12, 13, and 15 in the page 2-1 and the page 2-3 are changed (at least one of the order, the number, and the position); in addition, photos 4, 8, and 12 are hidden in pages 2-3, and photos 16-18 (disliked photos hidden, favorite photos newly inserted) are newly inserted.
That is, when the currently displayed data object needs to be updated due to the switching of the display types, the currently displayed data object needs to be edited according to the switched data object to be displayed.
Generally, when the display types are switched, a full refresh method is usually adopted, that is, a new display view is reloaded, and the data object corresponding to the switched display type is displayed on the new display view. Therefore, on one hand, because the switching is realized based on the display view, the change process of the data object cannot be displayed, the change mode cannot be displayed aiming at the change of the data object, and the switching effect is poor; on the other hand, when a new display view is displayed, parameters such as the corresponding size and the like when each data object is displayed need to be recalculated, and the performance is low; on the other hand, because the display view is changed during switching, the page cannot be kept at the current browsing position of the user, and the user experience is poor.
In addition, when the display types are switched, the insertion, replacement, deletion and movement operations provided by the operating system can be adopted, that is, a single data object is taken as a unit, and the editing operation is performed on the currently displayed data object according to the data object to be displayed, so that the display of the data object corresponding to the switched display type is performed. However, in the above editing operation process, the editing operation information is manually determined according to the currently displayed data object and the data object to be displayed, and therefore, the intelligence for determining the editing operation information is low, resulting in low performance of data object display. Moreover, the process of manually determining the editing operation information needs to be carried out for different users according to different numbers and types of the user pictures, and no data object display method with high universality can be suitable for each user; and, in each operation in the running system, there is a limitation that the deletion operation precedes the insertion operation, the calculation difficulty of correct index of the data object to be operated is large, and especially when the amount of the data object to be changed is large, the accuracy of the editing operation information determined manually is low and the cost is high.
Based on this, the embodiment of the invention provides a data object display method, device, equipment and storage medium, without reloading a page and providing excessive parameters, a user can remain at a current browsing position, animation can be displayed in a switching process, display modes are enriched, and display effects are improved; and the position of the picture to be inserted and deleted can be directly positioned, and the display type can be switched with high performance and accuracy.
An exemplary application of the data object display device according to the embodiment of the present invention is described below, and the data object display device according to the embodiment of the present invention may be implemented as various types of user terminals such as a smart phone, a tablet computer, and a notebook computer, and may also be implemented as a server. In the following, an exemplary application will be explained when the data object presentation device is implemented as a terminal.
Referring to fig. 3, fig. 3 is an alternative architecture diagram of a data object presentation system according to an embodiment of the present invention, for supporting a data object presentation application; in the data object presentation system 100, the terminal 400 is connected to the server 200 through the network 300, and the network 300 may be a wide area network or a local area network, or a combination of both.
A terminal 400, configured to display an original data object on a data object display page (a graphical interface 410 of the terminal 400), and receive a display type switching instruction for displaying a new data object on the data object display page by switching a display type for the original data object displayed on the data object display page; responding to the display type switching instruction, and acquiring a new display type from the display type switching instruction; the new display type is the display type after switching; acquiring a data object from the server 200 through the network 300 according to the new display type to obtain a new data object; acquiring minimum editing operation information between a new data object and an original data object; the minimum editing operation information is the minimum processing information for carrying out editing operation by switching the display original data object into the display new data object; and editing the displayed original data object according to the minimum editing operation information and the new data object so as to display the new data object on the data object display page.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal 400 shown in fig. 4 includes: at least one processor 410, memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal 400 are coupled together by a bus system 440. It is understood that the bus system 440 is used to enable communications among the components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 440 in fig. 4.
The processor 410 may be an integrated circuit chip having signal processing capabilities, such as a general purpose processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable the presentation of media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 450 includes either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 450 described in embodiments of the invention is intended to comprise any suitable type of memory. Memory 450 optionally includes one or more storage devices physically located remote from processor 410.
In some embodiments, memory 450 is capable of storing data, examples of which include programs, modules, and data structures, or a subset or superset thereof, to support various operations, as exemplified below.
An operating system 451, including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
a network communication module 452 for communicating to other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: bluetooth, wireless-compatibility authentication (Wi-Fi), and Universal Serial Bus (USB), etc.;
a display module 453 for enabling presentation of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more output devices 431 (e.g., display screens, speakers, etc.) associated with user interface 430;
an input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the apparatus provided by the embodiments of the present invention may be implemented in software, and fig. 4 shows a data object presentation apparatus 455 stored in the memory 450, which may be software in the form of programs and plug-ins, and includes the following software modules: an instruction receiving module 4551, a type acquiring module 4552, an object acquiring module 4553, an operation acquiring module 4554, and a presentation module 4555, the functions of which will be described below.
In other embodiments, the data object displaying apparatus provided in the embodiments of the present invention may be implemented in hardware, and for example, the data object displaying apparatus provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the data object displaying method provided in the embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
In the following, the data object display method provided by the embodiment of the present invention will be described in conjunction with exemplary applications and implementations of the terminal provided by the embodiment of the present invention.
Referring to fig. 5, fig. 5 is an alternative flowchart of a data object displaying method according to an embodiment of the present invention, which will be described with reference to the steps shown in fig. 5.
S101, displaying an original data object on a data object display page, and receiving a display type switching instruction aiming at the original data object displayed on the data object display page, wherein the display type switching instruction is used for displaying a new data object on the data object display page through switching the display type.
In the embodiment of the present invention, the data object display device displays the data object through a data object display page (for example, page 1-1 in fig. 1), where the data object displayed on the current data object display page is an original data object; when the user switches the display types through the data object display equipment, the data object display equipment also receives a display type switching instruction aiming at the original data object displayed on the data object display page.
It should be noted that the display type switching instruction is used for displaying a new data object on the data object display page by switching the display type; the data object refers to data to be presented, such as files and pictures.
S102, responding to a display type switching instruction, and acquiring a new display type from the display type switching instruction; the new presentation type is the switched presentation type.
In the embodiment of the invention, after the data object display equipment receives the display type switching, the data object display equipment responds to the display type switching instruction; here, since the display type switching is used to switch the display type, the display type switching instruction includes a new display type, and thus the data object display device can acquire the new display type from the display type switching instruction.
It should be noted that the original data object displayed on the data object display page corresponds to a display type, which is referred to as an original display type herein, and the display type switching instruction indicates to switch the display type from the original display type to a new display type; and the new display type is the display type after switching and is different from the original display type.
S103, acquiring the data object according to the new display type to obtain a new data object.
It should be noted that different display types correspond to different data objects, and therefore, a new display type also corresponds to its own data object; thus, the data object presentation device can acquire a data object corresponding to the new presentation type, referred to herein as a new data object.
In the embodiment of the invention, the data object display equipment can match out the data object matched with the new display type from the data object library; the matching process may be a process of classifying the data object, or a process of acquiring the data object corresponding to the category represented by the new presentation type.
S104, acquiring minimum editing operation information between a new data object and an original data object; the minimum editing operation information is minimum processing information for performing an editing operation by switching from presenting an original data object to presenting a new data object.
In the embodiment of the present invention, because different display types correspond to different data objects, when the display type is switched from the original display type to the new display type by the data object display device, the data object displayed on the data object display page may also change: changing the display original data object into a display new data object; in order to implement the above-mentioned change of the presentation of the data object, it is necessary to acquire editing operation information between the new data object and the original data object. Here, the editing operation information obtained by the data object presentation device is the minimum editing operation information between the new data object and the original data object; and the minimum editing operation information is the minimum processing information for performing the editing operation by switching the display original data object to display a new data object.
And S105, editing the displayed original data object according to the minimum editing operation information and the new data object, so as to display the new data object on the data object display page.
In the embodiment of the invention, the data object display equipment obtains the minimum editing operation information, and the switching from the display of the original data object to the display of the new data object is completed after the displayed original data object is edited according to the difference between the new data object and the original data object, so that the new data object is displayed on the data object display page, and the switching of the display types is completed.
It can be understood that the data object display device can display the new data object by acquiring the minimum editing operation information between the new data object and the original data object through the minimum editing operation information, and complete the switching of the display types, so that the data object display efficiency is improved.
Further, in the embodiment of the present invention, S104 may be implemented by S1041-S1044; that is, the data object presenting device obtains the minimum editing operation information between the new data object and the original data object, including S1041-S1044, and the following steps are respectively explained.
S1041, according to a preset dynamic programming table establishing technology, establishing a dynamic programming table about the original data object and the new data object to obtain initial dynamic programming table information.
In the embodiment of the invention, after the data object display equipment obtains the original data object and the new data object, a dynamic programming table, namely a dp table, about the original data object and the new data object is established, and the information of the initial dynamic programming table is obtained; to determine the minimum editing operation information between the original data object and the new data object from the initial dynamic schedule information.
It should be noted that the preset dynamic programming table establishing technology is used for establishing a dynamic programming table, the data object display device obtains the data object length of the original data object and the data object length of the new data object according to the preset dynamic programming table establishing technology, and constructs a table in which the number of rows (or columns) is the data object length of the original data object plus 2 and the number of columns is the data object length of the new data object plus 2; filling each of the empty data objects and the new data objects in turn, starting from the second cell of the first row (or first column); filling the empty data objects and the original data objects in the table in sequence from the second cell of the first column (or the first row); after the completion, the initial dynamic programming table information is obtained.
Illustratively, when the new data object is "a, d, c", the original data object is "a, b, c", as shown in fig. 6; the initial dynamic schedule information is as shown in fig. 7 and 8, where the null data object is "null".
S1042, initializing initial dynamic programming table information based on first editing operation information of an original data object to be changed into a null data object and second editing operation information of the null data object to be changed into a new data object.
In the embodiment of the present invention, after the data object display device obtains the initial dynamic programming table information, the initial dynamic programming table information is initialized, so as to determine the minimum editing operation information between the new data object and the original data object according to the initialized initial dynamic programming table information.
It should be noted that, the data object display device sequentially fills, starting from the third cell in the second row (or the second column), the editing operation information corresponding to the pre-sub data object that is changed from the empty data object to the new data object, that is, the second editing operation information; sequentially filling editing operation information corresponding to the front sub data objects changed from the original data objects to the empty data objects from the third cell of the second column (or the second row); at this time, the initialization of the initial dynamic programming table information is completed. Here, the precursor data object of the new data object is at least one data object consecutive from the first data object in the new data object; similarly, the precursor data object of the original data object is at least one data object which is continuous from the first data object in the original data object; for example, if the new data object is "a, d, c", then "a", "a, d" and "a, d, c" are all the previous data objects of the new data object.
For example, for the initial dynamic programming table information in fig. 7, the initialized initial dynamic programming table information shown in fig. 9 is obtained after initialization; for the initial dynamic programming table information in fig. 8, the initialized initial dynamic programming table information shown in fig. 10 is obtained after initialization.
And S1043, determining the editing operation information of each cell in the initialized initial dynamic programming table information to obtain target dynamic programming table information.
In the embodiment of the present invention, after the data object display device obtains the initialized initial dynamic programming table information, the editing operation information of each cell in the table region corresponding to the initialized initial dynamic programming table information of the new data object and the original data object is determined, so as to obtain a final dp table, that is, the target dynamic programming table information.
For example, for the initialized initial dynamic programming table information in fig. 9, the target dynamic programming table information shown in fig. 11 is obtained after the editing operation information of each cell is determined; for the initialized initial dynamic programming table information in fig. 10, the target dynamic programming table information shown in fig. 12 is obtained after the editing operation information of each cell is determined.
And S1044, taking the editing operation information of the cells corresponding to the last data object representing the new data object and the last data object of the original data object in the target dynamic programming table information as the minimum editing operation information.
It should be noted that the editing operation information of each cell in the target dynamic programming table information represents the minimum editing operation information between the front sub data object with the minimum number of data objects corresponding to the original data object and the front sub data object with the minimum number of data objects corresponding to the new data object; thus, in the target dynamic schedule information, the editing operation information of the cell corresponding to the last data object of the new data object and the last data object of the original data object, that is, the minimum editing operation information between the new data object and the original data object, is characterized. For example, the minimum editing operation information is the contents of the lower right cell in fig. 11 and 12: 1 replacement.
Further, in the embodiment of the present invention, S1043 may be implemented by S10431-S10432; that is, the data object displaying device determines the editing operation information of each cell in the initialized initial dynamic programming table information to obtain the target dynamic programming table information, which includes S10431 to S10432, and the following steps are respectively described.
S10431, comparing the identity of the current child original data object of the original data object with each data object of the new data object.
It should be noted that each cell in the initialized initial dynamic programming table information corresponds to one data object of the original data object and one data object of the new data object; thus, the data object presentation apparatus can determine the editing operation information in each cell in the initial dynamic programming table information after the initialization based on the sameness of each data object of the original data object to each data object of the new data object, respectively. Here, identity representations are the same or different.
In the embodiment of the present invention, the data object presentation device traverses each data object of the original data objects, and during the traversal, for any data object in the original data objects, that is, the current child original data object of the original data object; that is, the current child raw data object is any one of the raw data objects.
And S10432, determining editing operation information of the cells corresponding to each data object of the original data objects and each data object of the new data objects respectively based on the sameness.
In the embodiment of the present invention, after the data object display device obtains the identity, the editing operation information of the cell corresponding to each data object of the original data object and each data object of the new data object can be determined based on the identity.
The editing operation information for specifying the editing operation information of each cell is sequentially executed from the cell corresponding to the first data object of the original data object and the first data object of the new data object. When the data object display device finishes the comparison of the sameness of the last data object of the original data object and the last data object of the new data object, the editing operation information of each cell in the initialized initial dynamic programming table information is obtained, and therefore the target dynamic programming table information is obtained.
Further, in the embodiment of the present invention, S10432 may be implemented by S104321-S104322; that is, the data object presentation apparatus determines the editing operation information of the cell corresponding to each of the current child original data object and the new data object based on the identity, including S104321 to S104322, and the following steps are respectively described.
S104321, when the identity characterizing data objects are the same, taking the editing operation information of the cell corresponding to the previous object of the current sub-original data object and the previous object of each data object of the new data object as the editing operation information of the cell corresponding to the current sub-original data object and each data object of the new data object.
In the embodiment of the invention, the data object display equipment respectively determines the editing operation information of the corresponding cells in different modes according to two conditions (same or different) represented by the identity.
When the identity representation data objects are the same, the data object display device obtains editing operation information of cells corresponding to a previous object of a current sub-original data object and a previous object of each data object of a new data object in current initialized initial dynamic programming table information, and takes the editing operation information of the cells corresponding to the previous object of the current sub-original data object and the previous object of each data object of the new data object as the editing operation information of the cells corresponding to the current sub-original data object and each data object of the new data object.
Exemplarily, referring to fig. 13, since a and a are the same, the editing operation information at the corresponding cell is a null data object and the editing operation information corresponding to the null data object, i.e., 0.
S104322, when the identity characterizing data objects are different, obtaining first previous editing operation information of a cell corresponding to a previous object of each of the current sub-original data object and the new data object, second previous editing operation information of a cell corresponding to a previous object of each of the current sub-original data object and the new data object, and third previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and each of the new data object; and obtaining the editing operation information of the cell corresponding to each data object of the current sub-original data object and the new data object based on the preset editing operation corresponding relation, the first pre-editing operation information, the second pre-editing operation information and the third editing operation information.
It should be noted that the previous object of the current child raw data object includes: any one of a null data object and an original data object; the previous one of the new data objects comprises: an empty data object and either object in the new data pair.
Further, in this embodiment of the present invention, the data object displaying device in S104322 obtains, based on the preset editing operation correspondence, the first previous editing operation information, the second previous editing operation information, and the third editing operation information, the editing operation information of the cell corresponding to each data object of the current sub-original data object and the new data object, including S1043221-S1043224, which describes each step separately below.
S1043221, determining a minimum number of editing operations from the first previous editing operation information, the second previous editing operation information, and the third editing operation information.
In the embodiment of the present invention, the editing operation information includes an editing operation frequency and an editing operation, where the editing operation frequency represents position information corresponding to the data object, and the editing operation represents processing on the data object corresponding to the editing operation frequency. Here, the data object presentation apparatus finds the minimum number of editing operations by comparing three numbers of editing operations among the first previous editing operation information, the second previous editing operation information, and the third editing operation information, and thus obtains the minimum number of editing operations.
And S1043222, adding one to the minimum number of editing operations.
In the embodiment of the invention, after the data object display device obtains the minimum editing operation times, the minimum editing operation times is added with one, and then the current editing operation times is obtained.
S1043223, determining, from the preset editing operation corresponding relationship, editing operation information corresponding to the position corresponding to the minimum number of editing operations, to obtain editing operation information to be determined.
It should be noted that the data object display device is preset with a preset editing operation corresponding relationship for representing the editing operation at the position of the selected editing operation; such as: the left side represents that an insert operation needs to be added, the upper side represents that a delete operation needs to be added, and the upper left corner represents that a replace operation needs to be added.
In the embodiment of the present invention, the data object displaying device obtains the position corresponding to the minimum number of editing operations, and takes the editing operation information at the position corresponding to the minimum number of editing operations in the preset editing operation corresponding relationship as the current editing operation, so as to obtain the editing operation information to be determined.
S1043224, combining the minimum editing operation frequency after the one adding processing and the editing operation information to be determined into the editing operation information of the cell corresponding to each of the current sub-original data object and the new data object.
In the embodiment of the invention, the data object display device combines the minimum editing operation times and the editing operation information to be determined, so that the editing operation information of the cells corresponding to each data object of the current sub-original data object and the new data object is obtained.
Illustratively, referring to fig. 14, since a and d are different, the minimum number of editing operations is determined from "0, 1 insert, 2 insert": 0, the relationship of the preset editing operation is as follows: if the left side represents that an insertion operation needs to be added, the upper side represents that a deletion operation needs to be added, and the upper left corner represents that a replacement operation needs to be added, the editing operation information to be determined is determined to be insertion according to the left side of the position corresponding to 0, and then the editing operation information at the cell corresponding to a and d is obtained as follows: 1 insertion.
Further, in the embodiment of the present invention, S104 may also be implemented through S1045-S1048; that is, the data object display device obtains the minimum editing operation information between the new data object and the original data object, including S1045-S1048, and the following steps are respectively described.
And S1045, taking the original data object or the new data object as a first target data object, and taking the data object except the first target data object in the original data object and the new data object as a second target data object.
In the embodiment of the invention, the data object display equipment realizes the acquisition of the minimum editing operation information between the new data object and the original data object by utilizing two data structures. First, the data object presentation device takes the original data object or the new data object as the first target data object. Meanwhile, when the original data object is used as a first target data object, a new data object is used as a second target data object; when the new data object is taken as the first target data object, the original data object is taken as the second target data object.
S1046, based on the editing operation information corresponding to the change between the first target data object and the empty data object, constructing an initial pre-editing operation set.
In the embodiment of the present invention, when the first target data object is a new data object, the data object display device constructs an array in combination with the null operation and the editing operation information of the first target data object changed from the null data object, so as to obtain an initial pre-editing operation set. Or, when the first target data object is an original data object, the data object display device constructs an array by combining the null operation and the editing operation information of changing the first target data object into the null data object, and obtains an initial pre-editing operation set.
It should be noted that, the data object display device obtains the data object length of the first target data object, and constructs an array of the data object length of the first target data object plus one length, and each element in the array is a null operation in turn and editing operation information of the change between the pre-sub data object and the null data object of the first target data object.
Illustratively, when the first target data object is a new data object and the new data object is "a, d, c", the initial set of pre-edit operations is [ no operation, 1 insert, 2 insert, 3 insert ]; when the first target data object is an original data object and the original data object is "a, b, c", the initial set of pre-edit operations is [ no operation, 1 delete, 2 delete, 3 delete ].
S1047, traversing each data object of the second target data object based on the initial pre-editing operation set to obtain a target current editing operation set.
It should be noted that, the data object display device traverses each data object of the second target data object to determine, based on the initial pre-editing operation set, the editing operation information between each data object of the second target data object and each data object of the first target data object; and when the traversal is completed, obtaining a target current editing operation set.
Here, the target current editing operation set represents a set of the last data object of the second target data object and the editing operation information corresponding to the null data object and the first target data object, respectively.
And S1048, taking the last element in the target current editing operation set as the minimum editing operation information between the new data object and the original data object.
In the embodiment of the invention, the target current editing operation set represents a set formed by the last data object of the second target data object and the editing operation information corresponding to the empty data object and the first target data object respectively; therefore, the data object display device obtains the last element in the target current editing operation set, and obtains the minimum editing operation information between the new data object and the original data object.
It should be noted that S104 can be implemented in two ways. Thus, referring to fig. 15, fig. 15 is another alternative flow chart of the data object displaying method according to the embodiment of the present invention.
Further, in the embodiment of the present invention, S1047 may be implemented by S10471-S10473; that is, the data object presenting device traverses each data object of the second target data object based on the initial pre-editing operation set to obtain a target current editing operation set, including:
and S10471, based on the initial pre-editing operation set, editing operation information corresponding to changes between the current data object and the empty data object in the second target data object, the identity of each data object of the first target data object compared with the current data object, and a preset editing operation corresponding relation, constructing a current editing operation set.
It should be noted that the current editing operation set, that is, the current data object in the second target data object, is in the data row or data column corresponding to the target dynamic schedule information.
And S10472, when the comparison between the last data object of the first target data object and the current data object is completed, replacing the editing operation information in the initial previous editing operation set with the editing operation information in the current editing operation set.
It should be noted that, when the comparison between the last data object of the first target data object and the current data object is completed, it indicates that the comparison between the next data object of the current data object and each data object of the first target data object needs to be performed to obtain the current editing operation set; at this time, the data object display device replaces the editing operation information in the initial previous editing operation set with the editing operation information in the current editing operation set.
S10473, continuously updating the current editing operation set based on the replaced initial previous editing operation set, the editing operation information corresponding to the change between the next data object of the current data object in the second target data object and the empty data object, the identity of each data object of the first target data object compared with the next data object of the current data object, and the preset editing operation corresponding relation; and stopping updating the current editing operation set until the next data object of the current data object is the last data object in the second target data object, so as to obtain a target current editing operation set.
It should be noted that, when the data object displaying apparatus completes the acquisition of the element of the array corresponding to the last data object in the second target data object, the target current editing operation set including the least editing operation information is obtained.
For example, for the presentation of the data object shown in fig. 6, the process of obtaining the target current editing operation set is as follows: [ null operation, 1 insertion, 2 insertion, 3 insertion ], combining the preset editing operation correspondence "the left side represents that an insertion operation needs to be added, the upper side represents that a deletion operation needs to be added, and the upper left corner represents that a replacement operation needs to be added", to obtain: [1 insert, null operation, 1 delete, 2 delete ]; [1 insert, null operation, 1 delete, 2 delete ], combining the preset editing operation correspondence "the left side represents that an insert operation needs to be added, the upper side represents that a delete operation needs to be added, and the upper left corner represents that a replace operation needs to be added", to obtain: [2 insertion, 1 substitution, 1 deletion +1 substitution ]; [2 insert, 1 replace, 1 delete +1 replace ], combining the preset editing operation correspondence "the left side represents that an insert operation needs to be added, the upper side represents that a delete operation needs to be added, and the upper left corner represents that a replace operation needs to be added", to obtain: [3 insertion, 2 insertion, 1 substitution +1 insertion, 1 substitution ].
It can be understood that, in the embodiment of the present invention, the data object display device obtains the minimum editing operation information by using two data structures, namely, a table and an array; when the table is used, the space complexity is O (mn), wherein m is the length of the original data object, and n is the length of the new data object; when there are many data objects, a large amount of memory is consumed. However, considering that only the calculation results of the previous row (or column) and the current row (or column) are needed when calculating the editing operation information of each step, only two arrays can be used for storing the calculation results during calculation, and the spatial complexity of the algorithm is reduced to o (m) or o (n); therefore, space complexity is optimized, and memory consumption is reduced.
Further, in the embodiment of the present invention, S105 may be implemented by S1051-S1052; that is, the data object exhibition apparatus performs an editing operation on the exhibited original data object according to the minimum editing operation information and the new data object to exhibit the new data object on the data object exhibition page, including S1051-S1052, which are described below.
S1051, according to the original data object and the new data object, converting the least editing operation information into operation step information.
In the embodiment of the invention, after the data object display device obtains the minimum editing operation information, the minimum editing operation information is converted into the executable operation steps according to the original data object and the new data object, and then the operation step information is obtained.
It should be noted that the operation step information characterizes an editing operation on the original data object according to the new data object. For example, add operation: the method comprises the steps of containing a data object needing to be operated and inserted position information; and (3) deleting operation: the method comprises the steps of containing a data object needing to be operated and deleted position information; and (3) replacement operation: the method comprises the steps of containing a new data object, an old data object needing to be replaced and position information needing to be replaced; moving operation: including data objects that need to be manipulated, old locations, new location information that needs to be moved to.
And S1052, editing the displayed original data object according to the operation step information so as to display a new data object on the data object display page.
It should be noted that, after the data object display device obtains the operation step information, the operation step information is executed, so that the editing operation on the displayed original data object is realized, and thus, the display of a new data object on the data object display page is completed, and the switching of the display types is realized.
Further, in the embodiment of the present invention, S1052 may also be implemented by S10521-S10522; that is, the data object display apparatus performs an editing operation on the displayed original data object according to the operation step information to display a new data object on the data object display page, including S10521-S10522, which are described below.
And S10521, performing operation integration on the operation step information based on the preset editing operation information to obtain target operation step information.
In the embodiment of the present invention, the data object displaying device provides a fixed editing operation, that is, preset editing operation information, such as: insert, replace, move, and delete. Therefore, before the data object display device performs the operation, the operation step information is preprocessed based on the preset editing operation information to perform operation integration, so as to obtain the final target operation step information to be performed.
S10522, according to the target operation step information, editing the displayed original data object, so as to display a new data object on the data object display page.
In the embodiment of the present invention, after the data object display device obtains the target operation step information, the target operation step information is executed, so that the editing operation on the displayed original data object is realized, thereby completing the display of a new data object on the data object display page, and realizing the switching of the display types.
Further, in the embodiment of the present invention, S10521 may be implemented by S105211 to S105214; that is, the data object displaying apparatus performs operation integration on the operation step information based on the preset editing operation information to obtain target operation step information, which includes S105221 to S105224, and the following steps are respectively described.
S105211, traversing each operation information in the operation step information, and when the current operation information is the insertion operation information, obtaining the data object from the current operation information to obtain the current insertion data object.
It should be noted that, because the data object is inserted and deleted, i.e. the data object is moved; therefore, the data object presentation device extracts the insertion operation information in the operation step information by traversing each operation information in the operation step information, and acquires the data object in the extracted insertion operation information.
S105212, when the target deletion operation information corresponding to the currently inserted data object is acquired from the operation step information, acquiring the target deletion position corresponding to the deletion operation information, acquiring the target insertion position corresponding to the currently inserted operation information, and generating the target movement operation information including moving the currently inserted data object from the target deletion position to the target insertion position.
It should be noted that, after the data object display device obtains the data objects in each piece of insertion operation information, a moving operation, that is, a target moving operation, is generated; and the moving track of the moved data object, namely the current inserted data object, is moved from the position corresponding to the target deletion operation information to the position corresponding to the current operation information.
S105213 replaces the current operation information in the operation procedure information with the destination move operation information, and deletes the destination delete operation information.
In the embodiment of the present invention, after the data object display device obtains the target moving operation information, the target moving operation information is substituted for the current operation information in the operation step information, and the target deleting operation information in the operation step information is deleted.
S105214, continuing the operation integration processing until the current operation information is the last insertion operation information of the operation step information, ending the operation integration of the operation step information, and using the operation step information after the operation integration as the target operation step information.
It is noted that, referring to fig. 16, fig. 16 is a schematic flow chart of an exemplary operation integration provided by the embodiment of the present invention; as shown in fig. 16, first, the data object display device traverses the operation step information, determines whether the traversed current operation information is insertion operation information, if not, takes the next operation information as the current operation information, and if so, obtains the current insertion data object from the current operation information; and further judging whether the operation step information contains deletion operation information of the current inserted data object or not, if so, obtaining target deletion operation information, then obtaining a target deletion position from the target deletion operation information, obtaining a target insertion position from the current operation information, and generating target movement operation information according to the target deletion position, the target insertion position and the current inserted data object. Then, replacing the current operation information with the target mobile operation information, deleting the target deletion operation information, judging whether the current operation information is the last insertion operation information, and if so, ending the operation integration flow; and if not, taking the next operation information as the current operation information. In addition, if it is determined that the deletion operation information including the currently inserted data object does not exist in the operation step information, the next operation information is also taken as the current operation information.
Exemplarily, when the obtained operation step information is as shown in fig. 17, traversing the operation step information to obtain three pieces of insertion operation information as shown in fig. 18; for each piece of insertion operation information, the deletion operation information corresponding to the same data object is acquired from the operation step information, the movement operation information is generated to replace the insertion operation information, and the corresponding deletion operation information is deleted to obtain the target operation step information, as shown in fig. 19. For example, for "insert 1", the corresponding information is determined to be data object 1; thereby facilitating the data object 1 to find the deletion operation information corresponding to "insert 1", i.e., "delete 1", from the operation step information, as shown in fig. 20; at this time, "move 1" is generated from "insert 1" and "delete 1", as shown in fig. 21.
It can be understood that the operation integration can be matched with inherent preset editing operation information provided by the data object display equipment, and the compatibility is high.
Further, in the embodiment of the present invention, S10522 may be implemented by S105221-S105224; that is, the data object display apparatus performs an editing operation on the displayed original data object according to the target operation step information to display a new data object on the data object display page, including S105221 to S105224, which are described below.
S105221, from the target operation step information, acquiring the target editing data object and the target editing operation corresponding to the target editing data object.
It should be noted that the target operation step information is composed of a target editing data object and a target editing operation, where the target editing data object refers to a data object to be operated, and the target editing operation refers to an operation performed on the target editing data object; therefore, the data object display device can acquire the target editing data object and the target editing operation corresponding to the target editing data object from the target operation step information.
S105222, determining target editing mode display information corresponding to the target editing operation from the corresponding relation between the preset editing operation and the editing mode display information.
In the embodiment of the invention, the data object display equipment comprises the corresponding relation between the preset editing operation and the editing mode display information, and when one editing operation is given, the editing mode display information corresponding to the given editing operation can be determined from the corresponding relation between the preset editing operation and the editing mode display information; and the target editing mode display information is editing mode display information corresponding to the target editing operation.
And S105223, editing the target editing data object according to the target operation step information, and displaying the target editing mode display information in the editing operation process.
In the embodiment of the present invention, after the data object display device obtains the target editing mode display information, the target editing mode display information is displayed in the process of executing the target operation step information.
S105224, when the editing operation of the target editing data object is finished, determining to finish the editing operation of the displayed original data object, thereby realizing the display of the new data object on the data object display page.
It should be noted that when the data object display device completes the editing operation on the target edited data object, it is determined that the editing operation on the displayed original data object is completed, so that the new data object is displayed on the data object display page.
In addition, in the embodiment of the invention, when the data object is displayed on the page in the display view, each cell in the display view is used for displaying one data object.
In the following, an exemplary application of the embodiments of the present invention in a practical application scenario will be described.
It should be noted that, when the data object is a picture, the data object display method provided in the embodiment of the present invention includes the following steps: displaying an original picture on a picture display page, and receiving a display type switching instruction aiming at the original picture displayed on the picture display page; responding to the display type switching instruction, and acquiring a new display type from the display type switching instruction; acquiring a data object according to the new display type to obtain a new picture; acquiring minimum editing operation information between a new picture and an original picture; and editing the displayed picture according to the minimum editing operation information and the new picture so as to display the new picture on the picture display page.
Further, obtaining initial dynamic programming table information according to the establishment of a dynamic programming table about the original picture and the new picture; initializing initial dynamic programming table information based on first editing operation information of changing an original picture into an empty picture and second editing operation information of changing the empty picture into a new picture; determining the editing operation information of each cell in the initialized initial dynamic programming table information to obtain target dynamic programming table information; and in the target dynamic programming table information, the editing operation information of the cell corresponding to the last picture representing the new picture and the last picture representing the original picture is used as the minimum editing operation information.
Further, comparing the current sub-primitive of the original picture in sequence, and further comparing the identity of each picture of the new picture; and determining the editing operation information of the cells corresponding to each picture of the current sub-original picture and the new picture based on the identity, and obtaining the editing operation information of each cell in the initialized initial dynamic programming list information so as to obtain the target dynamic programming list information.
Further, when the identity representation pictures are the same, taking the editing operation information of the cell corresponding to the previous object of the current sub original picture and the previous object of each picture of the new picture as the editing operation information of the cell corresponding to each picture of the current sub original picture and the new picture; when the identity representation pictures are different, acquiring first previous editing operation information of a cell corresponding to a previous object of the current sub-original picture and a previous object of each picture of the new picture, second previous editing operation information of a cell corresponding to a previous object of each picture of the current sub-original picture and the new picture, and third previous editing operation information of a cell corresponding to a previous object of the current sub-original picture and each picture of the new picture; and obtaining the editing operation information of the cell corresponding to each picture of the current sub-original picture and the new picture based on the preset editing operation corresponding relation, the first previous editing operation information, the second previous editing operation information and the third editing operation information.
Further, determining the minimum number of editing operations from the first pre-editing operation information, the second pre-editing operation information and the third editing operation information; adding one to the minimum number of editing operations; determining editing operation information corresponding to the position corresponding to the minimum editing operation frequency from the preset editing operation corresponding relation to obtain editing operation information to be determined; and combining the minimum editing operation times after one addition processing and the editing operation information to be determined into the editing operation information of the cell corresponding to each of the current sub original picture and the new picture.
Further, the original picture or the new picture is taken as a first target picture, and the pictures except the first target picture in the original picture and the new picture are taken as second target pictures; constructing an initial pre-editing operation set based on editing operation information corresponding to the change between the first target picture and the empty picture; traversing each picture of the second target picture based on the initial pre-editing operation set to obtain a target current editing operation set; and taking the last element in the target current editing operation set as the minimum editing operation information between the new picture and the original picture.
Further, based on the initial pre-editing operation set, editing operation information corresponding to changes between the current picture and the empty picture in the second target picture, the identity of each picture of the first target picture compared with the current picture and a preset editing operation corresponding relation are established, and a current editing operation set is established; when the comparison between the last picture of the first target picture and the current picture is finished, replacing the editing operation information in the editing operation set before the initial by using the editing operation information in the current editing operation set; continuously updating the current editing operation set based on the replaced initial previous editing operation set, the editing operation information corresponding to the change between the next picture of the current picture in the second target picture and the empty picture, the identity of each picture of the first target picture compared with the next picture of the current picture and the preset editing operation corresponding relation; and stopping updating the current editing operation set until the next picture of the current picture is the last picture in the second target picture to obtain a target current editing operation set.
Further, converting the minimum editing operation information into operation step information according to the original picture and the new picture; and editing the displayed original picture according to the operation step information so as to display a new picture on the picture display page.
Further, operation integration is carried out on the operation step information based on preset editing operation information to obtain target operation step information; and editing the displayed original picture according to the target operation step information so as to display a new picture on the picture display page.
Further, traversing each operation information in the operation step information, and when the current operation information is the insertion operation information, acquiring a picture from the current operation information to obtain a current insertion picture; when target deletion operation information corresponding to the current inserted picture is acquired from the operation step information, acquiring a target deletion position corresponding to the deletion operation information, acquiring a target insertion position corresponding to the current insertion operation information, and generating target movement operation information including moving the current inserted picture from the target deletion position to the target insertion position; replacing the current operation information in the operation step information with the target moving operation information, and deleting the target deleting operation information; and continuing the operation integration processing until the current operation information is the last insertion operation information of the operation step information, finishing the operation integration of the operation step information, and taking the operation step information after the operation integration as the target operation step information.
Further, acquiring a target editing picture and a target editing operation corresponding to the target editing picture from the target operation step information; determining target editing mode display information corresponding to the target editing operation from the corresponding relation between the preset editing operation and the editing mode display information; editing the target editing picture according to the target operation step information, and displaying target editing mode display information in the process of editing; and when the editing operation of the target editing picture is finished, determining that the editing operation of the displayed original picture is finished, thereby realizing the display of a new picture on the picture display page.
Exemplarily, when a data object is a picture, when a picture cleaning module of a cell phone manager is used for cleaning the picture, the pictures displayed in a page are different in sequence, quantity and position according to different screening modes; at this time, a single data object is used as a single character, and the Levinstein distance between the picture sets respectively corresponding to the two screening modes is obtained by using the Fisher-Wagner algorithm, so that the minimum editing operation information is obtained. When the minimum editing operation information is the "1 replacement" operation of fig. 11 and 12, converting the minimum editing operation information into operation step information; here, since the indexes of the pictures are sequentially defined from 0, the operation step information is to replace the picture at the 2 nd position of the original position with the 2 nd picture in the new picture set (new data object). Next, an operation animation (target editing animation) corresponding to the replacement is acquired, and when b is replaced with d on the page, the operation animation corresponding to the replacement is displayed.
Continuing with the exemplary structure of the data object exhibition apparatus 455 provided by the embodiments of the present invention implemented as software modules, in some embodiments, as shown in fig. 4, the software modules stored in the data object exhibition apparatus 455 of the memory 450 may include:
an instruction receiving module 4551, configured to receive, for an original data object displayed on a data object display page, a display type switching instruction, where the display type switching instruction is used to display a new data object by switching a display type on the data object display page;
a type obtaining module 4552, configured to respond to the display type switching instruction, and obtain a new display type from the display type switching instruction; the new display type is the display type after switching;
the object acquisition module is used for acquiring a data object aiming at the new display type to obtain the new data object;
an operation obtaining module 4553, configured to obtain minimum editing operation information between the new data object and the original data object; the minimum editing operation information is minimum processing information for performing editing operation by switching from displaying the original data object to displaying the new data object;
a displaying module 4554, configured to perform an editing operation on the displayed original data object according to the minimum editing operation information and the new data object, so as to display the new data object on the data object display page.
Further, the operation obtaining module 4553 is further configured to establish a dynamic programming table about the original data object and the new data object according to a preset dynamic programming table establishing technology, so as to obtain initial dynamic programming table information; the preset dynamic programming table establishing technology is used for establishing a dynamic programming table; initializing the initial dynamic programming table information based on first editing operation information of changing the original data object into a null data object and second editing operation information of changing the null data object into the new data object; determining the editing operation information of each cell in the initialized initial dynamic programming table information to obtain target dynamic programming table information; and editing operation information of a cell corresponding to the last data object representing the new data object and the last data object representing the original data object in the target dynamic programming table information is used as the minimum editing operation information.
Further, the operation obtaining module 4553 is further configured to compare identities of current sub original data objects of the original data objects with each data object of the new data objects in sequence; the current sub-original data object is any data object in the original data objects; and determining the editing operation information of the cells corresponding to the current sub-original data object and each data object of the new data object based on the identity, and obtaining the editing operation information of each cell in the initialized initial dynamic programming table information, thereby obtaining the target dynamic programming table information.
Further, the operation obtaining module 4553 is further configured to, when the identity characterizing data objects are the same, use the editing operation information of the cell corresponding to the previous object of the current sub-original data object and the previous object of each data object of the new data object as the editing operation information of the cell corresponding to the current sub-original data object and each data object of the new data object; when the identity representation data objects are different, acquiring first previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and a previous object of each data object of the new data object, second previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and each data object of the new data object, and third previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and each data object of the new data object; and obtaining editing operation information of the cell corresponding to each data object of the current sub-original data object and the new data object based on a preset editing operation corresponding relationship, the first pre-editing operation information, the second pre-editing operation information and the third editing operation information.
Further, the operation obtaining module 4553 is further configured to determine a minimum number of editing operations from among the first previous editing operation information, the second previous editing operation information, and the third editing operation information; adding one to the minimum editing operation times; determining editing operation information corresponding to the position corresponding to the minimum editing operation frequency from the preset editing operation corresponding relation to obtain editing operation information to be determined; and combining the minimum editing operation times after one addition processing and the editing operation information to be determined into the editing operation information of the cell corresponding to each data object of the current sub-original data object and the new data object.
Further, the operation obtaining module 4553 is further configured to use the original data object or the new data object as a first target data object, and use a data object, other than the first target data object, of the original data object and the new data object as the second target data object; based on the editing operation information corresponding to the change between the first target data object and the empty data object, constructing an initial pre-editing operation set; traversing each data object of the second target data object based on the initial pre-editing operation set to obtain a target current editing operation set; the target current editing operation set represents a set formed by the last data object of the second target data object and the editing operation information corresponding to the empty data object and the first target data object; and taking the last element in the target current editing operation set as the minimum editing operation information between the new data object and the original data object.
Further, the operation obtaining module 4553 is further configured to, based on the initial pre-editing operation set, edit operation information corresponding to a change between a current data object and an empty data object in the second target data object, identity of each data object of the first target data object compared with the current data object, and a preset editing operation corresponding relationship, construct a current editing operation set; when the comparison between the last data object of the first target data object and the current data object is completed, replacing the editing operation information in the initial pre-editing operation set by using the editing operation information in the current editing operation set; continuing to update the current editing operation set based on the replaced initial previous editing operation set, editing operation information corresponding to changes between a next data object of a current data object in the second target data object and a null data object, the identity of each data object of the first target data object compared with the next data object of the current data object, and the preset editing operation corresponding relation; and stopping updating the current editing operation set until the next data object of the current data object is the last data object in the second target data object, so as to obtain the target current editing operation set.
Further, the presentation module 4554 is further configured to convert the minimum editing operation information into operation step information according to the original data object and the new data object; and editing the displayed original data object according to the operation step information so as to display the new data object on the data object display page.
Further, the display module 4554 is further configured to perform operation integration on the operation step information based on preset editing operation information to obtain target operation step information; and editing the displayed original data object according to the target operation step information so as to display the new data object on the data object display page.
Further, the presentation module 4554 is further configured to traverse each operation information in the operation step information, and when the current operation information is insertion operation information, obtain a data object from the current operation information to obtain a current insertion data object; when target deletion operation information corresponding to the currently inserted data object is acquired from the operation step information, acquiring a target deletion position corresponding to the deletion operation information, acquiring a target insertion position corresponding to the currently inserted operation information, and generating target movement operation information including moving the currently inserted data object from the target deletion position to the target insertion position; replacing the current operation information in the operation step information with the target mobile operation information, and deleting the target deletion operation information; and continuing operation integration processing until the current operation information is the last insertion operation information of the operation step information, finishing operation integration on the operation step information, and taking the operation step information after the operation integration as the target operation step information.
Further, the presentation module 4554 is further configured to obtain a target editing data object and a target editing operation corresponding to the target editing data object from the target operation step information; determining target editing mode display information corresponding to the target editing operation from the corresponding relation between preset editing operation and editing mode display information; editing the target editing data object according to the target operation step information, and displaying the target editing mode display information in the process of editing; and when the editing operation of the target editing data object is finished, determining to finish the editing operation of the displayed original data object, thereby realizing the display of the new data object on the data object display page.
Embodiments of the present invention provide a computer-readable storage medium storing executable instructions, which when executed by a processor, will cause the processor to perform a data object presentation method provided by embodiments of the present invention, for example, the data object presentation method shown in fig. 5.
In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts stored in a hypertext markup language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, according to the embodiments of the present invention, when the display type of the currently displayed original data object is switched to display a new data object, the new data object is displayed by using the minimum editing operation information between the new data object and the original data object; the minimum editing operation information is the minimum processing information for performing editing operation for switching the display of the original data object into the display of the new data object, so that the realization efficiency is high, and the performance of data object display is improved.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A method for displaying data objects, comprising:
displaying an original data object on a data object display page, and receiving a display type switching instruction aiming at the original data object displayed on the data object display page, wherein the display type switching instruction is used for displaying a new data object on the data object display page by switching a display type;
responding to the display type switching instruction, and acquiring a new display type from the display type switching instruction; the new display type is the display type after switching;
acquiring a data object according to the new display type to obtain the new data object;
acquiring minimum editing operation information between the new data object and the original data object; the minimum editing operation information is minimum processing information for performing editing operation by switching from displaying the original data object to displaying the new data object;
editing the displayed original data object according to the minimum editing operation information and the new data object so as to display the new data object on the data object display page;
wherein, the editing operation of the displayed original data object according to the minimum editing operation information and the new data object includes: converting the minimum editing operation information into operation step information according to the original data object and the new data object; editing the displayed original data object according to the operation step information;
the editing operation of the displayed original data object according to the operation step information comprises the following steps: performing operation integration on the operation step information based on preset editing operation information to obtain target operation step information; and editing the displayed original data object according to the target operation step information.
2. The method of claim 1, wherein the obtaining of the minimum editing operation information between the new data object and the original data object comprises:
according to a preset dynamic programming table establishing technology, establishing a dynamic programming table about the original data object and the new data object to obtain initial dynamic programming table information;
initializing the initial dynamic programming table information based on first editing operation information of changing the original data object into a null data object and second editing operation information of changing the null data object into the new data object;
determining the editing operation information of each cell in the initialized initial dynamic programming table information to obtain target dynamic programming table information;
and editing operation information of a cell corresponding to the last data object representing the new data object and the last data object representing the original data object in the target dynamic programming table information is used as the minimum editing operation information.
3. The method according to claim 2, wherein the determining editing operation information of each cell in the initialized initial dynamic programming table information to obtain target dynamic programming table information comprises:
sequentially comparing the identity of the current sub-original data object of the original data object with each data object of the new data object;
and determining the editing operation information of the cells corresponding to the current sub-original data object and each data object of the new data object based on the identity, and obtaining the editing operation information of each cell in the initialized initial dynamic programming table information, thereby obtaining the target dynamic programming table information.
4. The method of claim 3, wherein the determining editing operation information for the cell corresponding to each of the current child original data object and the new data object based on the identity comprises:
when the identity representation data objects are the same, taking the editing operation information of the cell corresponding to the previous object of the current sub-original data object and the previous object of each data object of the new data object as the editing operation information of the cell corresponding to the current sub-original data object and each data object of the new data object;
when the identity representation data objects are different, acquiring first previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and a previous object of each data object of the new data object, second previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and each data object of the new data object, and third previous editing operation information of a cell corresponding to a previous object of the current sub-original data object and each data object of the new data object; and are
And obtaining the editing operation information of the cell corresponding to each data object of the current sub-original data object and the new data object based on a preset editing operation corresponding relationship, the first pre-editing operation information, the second pre-editing operation information and the third pre-editing operation information.
5. The method according to claim 4, wherein obtaining the editing operation information of the cell corresponding to each of the current sub-original data object and the new data object based on the preset editing operation correspondence, the first previous editing operation information, the second previous editing operation information, and the third previous editing operation information comprises:
determining a minimum number of editing operations from the first pre-editing operation information, the second pre-editing operation information, and the third pre-editing operation information;
adding one to the minimum editing operation times;
determining editing operation information corresponding to the position corresponding to the minimum editing operation frequency from the preset editing operation corresponding relation to obtain editing operation information to be determined;
and combining the minimum editing operation times after one addition processing and the editing operation information to be determined into the editing operation information of the cell corresponding to each data object of the current sub-original data object and the new data object.
6. The method of claim 1, wherein the obtaining of the minimum editing operation information between the new data object and the original data object comprises:
taking the original data object or the new data object as a first target data object, and taking a data object except the first target data object in the original data object and the new data object as a second target data object;
based on the editing operation information corresponding to the change between the first target data object and the empty data object, constructing an initial pre-editing operation set;
traversing each data object of the second target data object based on the initial pre-editing operation set to obtain a target current editing operation set;
and taking the last element in the target current editing operation set as the minimum editing operation information between the new data object and the original data object.
7. The method of claim 6, wherein traversing each data object of the second target data object based on the initial set of pre-editing operations to obtain a target set of current editing operations comprises:
based on the initial pre-editing operation set, editing operation information corresponding to changes between a current data object and a null data object in the second target data object, the identity of each data object of the first target data object compared with the current data object, and a preset editing operation corresponding relation, constructing a current editing operation set;
when the comparison between the last data object of the first target data object and the current data object is completed, replacing the editing operation information in the initial pre-editing operation set by using the editing operation information in the current editing operation set;
continuing to update the current editing operation set based on the replaced initial previous editing operation set, editing operation information corresponding to changes between a next data object of a current data object in the second target data object and a null data object, the identity of each data object of the first target data object compared with the next data object of the current data object, and the preset editing operation corresponding relation;
and stopping updating the current editing operation set until the next data object of the current data object is the last data object in the second target data object, so as to obtain the target current editing operation set.
8. The method according to claim 1, wherein the performing operation integration on the operation step information based on preset editing operation information to obtain target operation step information comprises:
traversing each operation information in the operation step information, and when the current operation information is insertion operation information, acquiring a data object from the current operation information to obtain a current insertion data object;
when target deletion operation information corresponding to the currently inserted data object is acquired from the operation step information, acquiring a target deletion position corresponding to the target deletion operation information, acquiring a target insertion position corresponding to the currently inserted operation information, and generating target movement operation information including moving the currently inserted data object from the target deletion position to the target insertion position;
replacing the current operation information in the operation step information with the target mobile operation information, and deleting the target deletion operation information;
and continuing operation integration processing until the current operation information is the last insertion operation information of the operation step information, finishing operation integration on the operation step information, and taking the operation step information after the operation integration as the target operation step information.
9. The method according to claim 1, wherein the performing an editing operation on the presented original data object according to the target operation step information includes:
acquiring a target editing data object and a target editing operation corresponding to the target editing data object from the target operation step information;
determining target editing mode display information corresponding to the target editing operation from the corresponding relation between preset editing operation and editing mode display information;
editing the target editing data object according to the target operation step information, and displaying the target editing mode display information in the process of editing;
and when the editing operation on the target editing data object is finished, determining that the editing operation on the displayed original data object is finished.
10. A data object presentation device, comprising:
the display device comprises an instruction receiving module, a display type switching module and a display module, wherein the instruction receiving module is used for displaying an original data object on a data object display page and receiving a display type switching instruction aiming at the original data object displayed on the data object display page, and the display type switching instruction is used for displaying a new data object on the data object display page by switching a display type;
the type acquisition module is used for responding to the display type switching instruction and acquiring a new display type from the display type switching instruction; the new display type is the display type after switching;
the object acquisition module is used for acquiring a data object according to the new display type to obtain the new data object;
the operation acquisition module is used for acquiring minimum editing operation information between the new data object and the original data object; the minimum editing operation information is minimum processing information for performing editing operation by switching from displaying the original data object to displaying the new data object;
the display module is used for editing the displayed original data object according to the minimum editing operation information and the new data object so as to display the new data object on the data object display page;
the display module is further configured to convert the minimum editing operation information into operation step information according to the original data object and the new data object; editing the displayed original data object according to the operation step information;
the display module is further used for integrating the operation step information based on preset editing operation information to obtain target operation step information; and editing the displayed original data object according to the target operation step information.
11. A data object presentation device, comprising:
a memory for storing computer executable instructions;
a processor for implementing the data object presentation method of any one of claims 1 to 9 when executing computer executable instructions stored in the memory.
12. A computer-readable storage medium having stored thereon executable instructions for causing a processor to perform the method of presenting data objects of any one of claims 1 to 9 when executed.
CN202010117321.5A 2020-02-25 2020-02-25 Data object display method, device, equipment and storage medium Active CN111352549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010117321.5A CN111352549B (en) 2020-02-25 2020-02-25 Data object display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010117321.5A CN111352549B (en) 2020-02-25 2020-02-25 Data object display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111352549A CN111352549A (en) 2020-06-30
CN111352549B true CN111352549B (en) 2022-01-07

Family

ID=71197267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010117321.5A Active CN111352549B (en) 2020-02-25 2020-02-25 Data object display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111352549B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441620A (en) * 2008-11-27 2009-05-27 温州大学 Electronic text document plagiarism recognition method based on similar string matching distance
EP2289007B1 (en) * 2008-04-11 2015-04-22 Microsoft Technology Licensing, LLC Search results ranking using editing distance and document information
CN104881414A (en) * 2014-02-28 2015-09-02 国际商业机器公司 Data displaying method and system
CN106339226A (en) * 2016-08-26 2017-01-18 南威软件股份有限公司 Webpage page display method and page display plug-in
WO2017092122A1 (en) * 2015-12-03 2017-06-08 小米科技有限责任公司 Similarity determination method, device, and terminal
CN108509172A (en) * 2018-04-13 2018-09-07 平安普惠企业管理有限公司 Data transmission method, device, system and the computer storage media of simultaneous display
CN109117464A (en) * 2018-03-02 2019-01-01 南京邮电大学 A kind of data similarity detection method based on editing distance

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8196030B1 (en) * 2008-06-02 2012-06-05 Pricewaterhousecoopers Llp System and method for comparing and reviewing documents
CN103699233B (en) * 2013-12-20 2019-04-09 百度在线网络技术(北京)有限公司 Character string input method and input unit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2289007B1 (en) * 2008-04-11 2015-04-22 Microsoft Technology Licensing, LLC Search results ranking using editing distance and document information
CN101441620A (en) * 2008-11-27 2009-05-27 温州大学 Electronic text document plagiarism recognition method based on similar string matching distance
CN104881414A (en) * 2014-02-28 2015-09-02 国际商业机器公司 Data displaying method and system
WO2017092122A1 (en) * 2015-12-03 2017-06-08 小米科技有限责任公司 Similarity determination method, device, and terminal
CN106339226A (en) * 2016-08-26 2017-01-18 南威软件股份有限公司 Webpage page display method and page display plug-in
CN109117464A (en) * 2018-03-02 2019-01-01 南京邮电大学 A kind of data similarity detection method based on editing distance
CN108509172A (en) * 2018-04-13 2018-09-07 平安普惠企业管理有限公司 Data transmission method, device, system and the computer storage media of simultaneous display

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
什么是莱文斯坦距离(Levenshtein distance),它在计算机科学中有什么应用?【https://www.zhihu.com/question/315634571/answer/620984468】;知乎用户;《知乎,什么是莱文斯坦距离(Levenshtein distance),它在计算机科学中有什么应用?【https://www.zhihu.com/question/315634571/answer/620984468】》;20190522;1-6页 *

Also Published As

Publication number Publication date
CN111352549A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
US11656859B2 (en) Data model API for live applications in a cloud collaboration platform
RU2506629C2 (en) Creating presentation on infinite canvas and navigation thereon
CN112866785A (en) Picture generation method, device, equipment and storage medium
CN109933311A (en) A kind of information system creation method and relevant apparatus
CN115079872B (en) Document processing method, device, equipment and medium
CN111666740A (en) Flow chart generation method and device, computer equipment and storage medium
BR112015006336B1 (en) non-transitory machine-readable storage medium for simplified knowledge engineering
US20170132020A1 (en) Code processing method and code processing device
CN111831815A (en) Questionnaire display control method and device, storage medium and electronic equipment
CN113656005B (en) Application component library construction method, application component configuration method and related devices
CN111352549B (en) Data object display method, device, equipment and storage medium
US20200097139A1 (en) Graphical user interface object matching
CN114780081A (en) Animation display method, electronic device and storage medium
CN112162805B (en) Screenshot method and device and electronic equipment
CN114564924A (en) Data insertion method, device, equipment and storage medium
CN115981640A (en) Interface layout method and device, electronic equipment and storage medium
CN115705375A (en) Tree component rendering method and device
CN113704593B (en) Operation data processing method and related device
WO2023179085A1 (en) Split screen display method and apparatus, electronic device, storage medium and program product
CN113706672A (en) Image rendering method, device and equipment and storage medium
CN117725064A (en) Structure data storage method, loading device, electronic equipment and medium
CN116088721A (en) Page interaction method, device, equipment and storage medium
CN116627557A (en) Method and system for inputting control attributes in batches
KR20230016280A (en) Electronic apparatus which generates the dedicated document file for supporting fast editing of the pages comprising of a document, and the operating method thereof
CN116108193A (en) Construction method and device of map data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024311

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant