CN111651693B - Data display method, data sorting method, device, equipment and medium - Google Patents

Data display method, data sorting method, device, equipment and medium Download PDF

Info

Publication number
CN111651693B
CN111651693B CN202010603269.4A CN202010603269A CN111651693B CN 111651693 B CN111651693 B CN 111651693B CN 202010603269 A CN202010603269 A CN 202010603269A CN 111651693 B CN111651693 B CN 111651693B
Authority
CN
China
Prior art keywords
data
object identifier
packet
sorting
group
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
CN202010603269.4A
Other languages
Chinese (zh)
Other versions
CN111651693A (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 CN202010603269.4A priority Critical patent/CN111651693B/en
Publication of CN111651693A publication Critical patent/CN111651693A/en
Application granted granted Critical
Publication of CN111651693B publication Critical patent/CN111651693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/798Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for assessing skills or for ranking players, e.g. for generating a hall of fame

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data display method, a data sorting device, data sorting equipment and a medium, and belongs to the technical field of computers. The method comprises the following steps: responding to a first display request sent by a terminal, and acquiring first ranking data; responding to the association between the target object identifier and a first object identifier in the first sequencing data, and acquiring second sequencing data according to the first sequencing data, wherein the data of a second object identifier in the first sequencing data is the same as the data of the first object identifier; and sending the second sorting data to the terminal, wherein the terminal is used for displaying the second sorting data. The method ensures that the user can know the data of the first object identifier firstly, avoids the problem that the user cannot quickly check the data of the associated object identifier under the condition that the data of a plurality of object identifiers are the same, and improves the display effect of the data.

Description

Data display method, data sorting method, device, equipment and medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a data display method, a data sorting device, equipment and a medium.
Background
With the development of computer technology and the popularization of electronic games, more and more game users have different data, for example, the customs clearance duration, the game credits, the game duration and the like of virtual objects controlled by different game users have great differences. In electronic games, leaderboards are usually set to display data of game users, and the game users can know data of other game users by looking up the leaderboards.
Disclosure of Invention
The embodiment of the application provides a data display method, a data sorting method, a device, equipment and a medium, and improves the display effect of data. The technical scheme is as follows:
in one aspect, a data presentation method is provided, and the method includes:
responding to a first display request sent by a terminal, and acquiring first sequencing data, wherein the first display request carries a target object identifier controlled by the terminal, and the first sequencing data comprises a plurality of object identifiers, data of each object identifier and a sequence number;
in response to that the target object identifier is associated with a first object identifier in the first sorting data and data of a second object identifier in the first sorting data is the same as data of the first object identifier, acquiring second sorting data according to the first sorting data so that a sequence number of the first object identifier in the second sorting data is smaller than a sequence number of the second object identifier;
and sending the second sorting data to the terminal, wherein the terminal is used for displaying the second sorting data.
In another aspect, a data presentation method is provided, where the method includes:
sending a first display request to a server, wherein the first display request carries a target object identifier controlled by a terminal, the server is used for responding to the first display request, acquiring first sequencing data, responding to the association between the target object identifier and a first object identifier in the first sequencing data, and returning second sequencing data when the data of a second object identifier in the first sequencing data is the same as the data of the first object identifier;
displaying the second sorting data;
the first sequencing data comprise a plurality of object identifiers, data of each object identifier and a sequence number, and the sequence number of the first object identifier in the second sequencing data is smaller than the sequence number of the second object identifier.
Optionally, the method further comprises:
displaying a data display interface, wherein the data display interface comprises a plurality of data display buttons, the target serial numbers corresponding to the data display buttons are different, and the target serial numbers are used for representing the number of object identifications in the data requested to be displayed;
responding to a triggering operation of any data display button, sending a second display request to the server, wherein the second display request carries a target sequence number corresponding to the triggered data display button, the server is used for receiving the second display request, returning third sequencing data according to the first sequencing data, and the sequence number of each object identifier in the third sequencing data is smaller than the target sequence number;
and displaying the third sorting data.
In another aspect, a data sorting method is provided, the method including:
dividing data of a plurality of object identifications into a first grouping and a second grouping, wherein each data in the first grouping is larger than each data in the second grouping;
sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, wherein the data in the third group and the data in the fourth group are increased or decreased respectively;
and combining the third group and the fourth group to obtain first sequencing data, wherein the first sequencing data comprises the plurality of object identifiers, the data of each object identifier and the sequence number.
In another aspect, a data presentation apparatus is provided, the apparatus comprising:
a first data obtaining module, configured to obtain first ranking data in response to a first display request sent by a terminal, where the first display request carries a target object identifier controlled by the terminal, and the first ranking data includes multiple object identifiers, data of each object identifier, and a sequence number;
a second data obtaining module, configured to, in response to that the target object identifier is associated with a first object identifier in the first sorted data, and data of a second object identifier in the first sorted data is the same as data of the first object identifier, obtain second sorted data according to the first sorted data, so that a sequence number of the first object identifier in the second sorted data is smaller than a sequence number of the second object identifier;
and the second data sending module is used for sending the second sorting data to the terminal, and the terminal is used for displaying the second sorting data.
Optionally, the apparatus further comprises:
a third data obtaining module, configured to respond to a second display request sent by the terminal, and obtain third sorted data according to the first sorted data, so that a sequence number of each object identifier in the third sorted data is smaller than the target sequence number, where the second display request carries the target sequence number;
and the third data sending module is used for sending the third sequencing data to the terminal, and the terminal is used for displaying the third sequencing data.
Optionally, the apparatus further comprises:
a data grouping module for dividing the data of the plurality of object identifiers into a first group and a second group, each data in the first group being larger than each data in the second group;
the data sorting module is used for sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, and the data in the third group and the data in the fourth group are increased or decreased respectively;
and the combination module is used for combining the third grouping and the fourth grouping to obtain the first sequencing data.
Optionally, the apparatus further comprises:
the data acquisition module is used for determining a target area identifier, and the target area identifier is used for indicating an area to which an object identifier to be sequenced belongs;
the data acquisition module is further configured to acquire data of a plurality of object identifiers matched with the target area identifier.
Optionally, the apparatus further comprises:
the updating data acquisition module is used for acquiring the updated data of any one of the object identifiers;
the original data deleting module is used for deleting the original data and the original serial number of the object identifier;
a fourth data obtaining module, configured to insert the updated data into the first sorting data to obtain fourth sorting data, where the fourth sorting data includes the multiple object identifiers, data of each object identifier, and an updated sequence number.
Optionally, the apparatus further comprises:
the first searching module is used for traversing from the last data to the front and searching for data larger than reference data, wherein the reference data is any data in the plurality of data;
the second searching module is used for traversing backwards from the first data and searching for data smaller than the reference data;
the exchange module is used for exchanging the data searched by each forward traversal with the data searched by the backward traversal until the data searched by the forward traversal is the same as the data searched by the backward traversal, and exchanging the same data with the reference data to obtain fifth sequencing data, wherein the fifth sequencing data comprises the plurality of object identifiers, the data of each object identifier and the serial number;
the data grouping module is configured to divide the plurality of data in the fifth sorting data into the first group and the second group according to the reference data.
Optionally, the data sorting module is configured to:
dividing a plurality of data in the first packet into a first sub-packet and a second sub-packet, each data in the first sub-packet being larger than each data in the second sub-packet;
sorting the data in the first sub-packet and the second sub-packet respectively to obtain a third sub-packet corresponding to the first sub-packet and a fourth sub-packet corresponding to the second sub-packet, wherein the data in the third sub-packet and the data in the fourth sub-packet are increased progressively or decreased progressively respectively;
and combining the third sub-packet with the fourth sub-packet to obtain the third packet corresponding to the first packet.
Optionally, the data includes attribute data and operation data, the attribute data includes at least one of an experience value of the virtual object, a prop level owned by the virtual object or a clothing level of the virtual object, and the operation data includes at least one of a clearance duration, a clearance number or a point.
In another aspect, a data presentation apparatus is provided, the apparatus comprising:
a first request sending module, configured to send a first display request to a server, where the first display request carries a target object identifier controlled by a terminal, and the server is configured to obtain first sequencing data in response to the first display request, and return second sequencing data in response to that the target object identifier is associated with a first object identifier in the first sequencing data and that data of a second object identifier in the first sequencing data is the same as data of the first object identifier;
the first display module is used for displaying the second sequencing data;
the first sequencing data comprise a plurality of object identifiers, data of each object identifier and a sequence number, and the sequence number of the first object identifier in the second sequencing data is smaller than the sequence number of the second object identifier.
Optionally, the apparatus further comprises:
the interface display module is used for displaying a data display interface, the data display interface comprises a plurality of data display buttons, the target serial numbers corresponding to the data display buttons are different, and the target serial numbers are used for representing the number of object identifications in the data requested to be displayed;
the second request sending module is used for responding to triggering operation of any data display button and sending a second display request to the server, wherein the second display request carries a target sequence number corresponding to the triggered data display button, the server is used for receiving the second display request and returning third sequencing data according to the first sequencing data, and the sequence number of each object identifier in the third sequencing data is smaller than the target sequence number;
and the second display module is used for displaying the third sequencing data.
In another aspect, an apparatus for sorting data is provided, the apparatus comprising:
a data grouping module for dividing data of a plurality of object identifiers into a first group and a second group, each data in the first group being larger than each data in the second group;
the data sorting module is used for sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, and the data in the third group and the data in the fourth group are increased or decreased respectively;
and the combination module is used for combining the third group and the fourth group to obtain first sequencing data, wherein the first sequencing data comprises the plurality of object identifiers, the data of each object identifier and the serial number.
In another aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the data presentation method or to implement the data sorting method.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the data presentation method or to implement the data sorting method.
In another aspect, a computer program product is provided, the computer program product comprising computer instructions stored in a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the data presentation method or the data sorting method.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
according to the method, the device, the equipment and the medium provided by the embodiment of the application, the first object identifier associated with the target object identifier is obtained according to the target object identifier carried by the first display request, and because the first object identifier is associated with the target object identifier and is the object identifier concerned by the user of the target object identifier, the first object identifier can be displayed before the serial numbers of other object identifiers with the same data by arranging the serial number of the first object identifier in front of the serial numbers of other object identifiers with the same data, so that the user can know the data of the first object identifier firstly, the situation that the user cannot quickly check the data of the associated object identifiers under the condition that the data of a plurality of object identifiers are the same is avoided, and the display effect of the data is improved.
The method, the device, the equipment and the medium provided by the embodiment of the application sequence a plurality of data in a grouping and recombining mode, divide the plurality of data into a first grouping and a second grouping, sequence the data in the two groupings respectively, reduce the data amount of the sequence due to less data in each grouping, improve the sequencing speed of the data, and since each data in the first grouping is larger than each data in the second grouping, when the two groups after the sequence are combined, the two groups can be spliced directly, namely the first sequence number arranged in an increasing or decreasing mode can be obtained, and the method, the device, the equipment and the medium are convenient and fast.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a data sorting method provided in an embodiment of the present application;
FIG. 3 is a flow chart of another data sorting method provided by an embodiment of the present application;
FIG. 4 is a flowchart of a data presentation method provided by an embodiment of the present application;
FIG. 5 is a flow chart of another data presentation method provided by an embodiment of the present application;
FIG. 6 is a flow chart of another data presentation method provided by the embodiments of the present application;
FIG. 7 is a schematic diagram of a data presentation interface provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of another data presentation interface provided by embodiments of the present application;
FIG. 9 is a flow chart of another data presentation method provided by an embodiment of the present application;
FIG. 10 is a schematic structural diagram of a data display device according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of another data display device provided in the embodiments of the present application;
FIG. 12 is a schematic diagram of another data display device according to an embodiment of the present application;
FIG. 13 is a schematic structural diagram of another data display device provided in the embodiments of the present application;
fig. 14 is a schematic structural diagram of a data sorting apparatus according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, the first arrangement data may be referred to as second arrangement data, and the second arrangement data may be referred to as first arrangement data without departing from the scope of the present application.
As used herein, the terms "each," "plurality," and the like, a plurality includes two or more, each referring to each of the corresponding plurality. For example, the plurality of object identifiers includes 20 object identifiers, and each object identifier refers to each of the 20 object identifiers.
In order to facilitate understanding of the embodiments of the present application, the keywords related to the embodiments of the present application are explained first:
virtual object: refers to a movable object in a virtual scene, which can be in any form, such as a virtual character, an animation character, etc. When the virtual scene is a three-dimensional virtual scene, the virtual objects may be three-dimensional stereo models, and each virtual object has its own shape and volume in the three-dimensional virtual scene and occupies a part of the space in the three-dimensional virtual scene. The virtual object is a three-dimensional character constructed based on a three-dimensional human skeleton technology, and different external images are realized by wearing different clothes. In some implementations, the virtual object may also be implemented by using a 2.5-dimensional or 2-dimensional model, which is not limited in this application.
Virtual scene: the virtual scene is a virtual scene that is displayed (or provided) when an application program runs on the terminal. The virtual scene may be used to simulate a three-dimensional virtual space, which may be an open space, and may be a virtual scene simulating a real environment in reality, a semi-simulated semi-fictional virtual scene, or a completely fictional virtual scene, and the virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. For example, the virtual scene may include a river, a grass, land, a building, a track, etc.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes: the terminal 101 and the server 102 are connected through a network, and the terminal 101 and the server 102 are connected through the network.
The terminal 101 may be a portable, pocket, or handheld terminal, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, or a smart watch. The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform.
The terminal 101 may install a target application, the server 102 provides a service for the target application, and the terminal 101 and the server 102 interact through the target application.
The server 102 provides a virtual scene in the target application and generates a virtual object in the virtual scene, and the terminal 101 may control the virtual object to operate in the virtual scene, thereby generating data of the virtual object.
Since a plurality of virtual objects may be included in the virtual scene, and different virtual objects are distinguished according to different object identifiers, data of a plurality of object identifiers may be generated.
Based on the implementation environment, the embodiment of the application provides a data sorting method for sorting data of a plurality of object identifiers and a data display method for displaying the data of the plurality of object identifiers.
The method provided by the embodiment of the application can be applied to various scenes.
For example, the method is applied to a scene of showing a long lead board in a game application.
The terminal controls the virtual object to operate in the virtual scene, so that the passing time of the virtual object can be generated through the passing process of the level in the virtual scene through the level in the virtual scene. The method for displaying the clearance time ranking list can be used for ranking the clearance time durations to obtain ranking data of the clearance time durations.
Fig. 2 is a flowchart of a data sorting method according to an embodiment of the present application. The execution subject of the embodiment of the application is the server. Referring to fig. 2, the method includes:
201. the server divides the data identified by the plurality of objects into a first group and a second group.
The terminal is provided with a target application, the server provides a virtual scene in the target application and generates a virtual object in the virtual scene, the terminal can control the virtual object to operate in the virtual scene so as to generate data of the virtual object, and the server can sequence the data of a plurality of virtual objects. The virtual object in the virtual scene is represented by the object identifier, the data of the virtual object is the data of the object identifier, and the object identifier may be a nickname, an ID, or other identifiers of the virtual object.
In the embodiment of the application, the server sequences the data of the object identifiers to obtain the sequencing data, and then the sequencing data can be sent to the terminal, and the terminal can display the sequencing data for the user to check.
Before the server groups the data of the plurality of object identifiers, the data of the plurality of object identifiers needs to be acquired.
In one possible implementation, the target application may include a plurality of regions, each region including a plurality of virtual objects and thus including a plurality of data, and data identified by a plurality of objects of the plurality of regions of the target application may be sorted, or data identified by a plurality of objects of one region may be sorted. Correspondingly, if the data of the multiple areas are sequenced, the data of the multiple object identifiers of the multiple areas need to be acquired; if the data of a region is sorted, the data of a plurality of object identifiers of the region needs to be acquired.
For the division of the multiple regions, optionally, the multiple regions are divided according to geographic regions in the virtual scene, and different geographic regions belong to different regions, where the same server may provide services for different regions, and the different servers may also provide services for corresponding regions respectively. Optionally, the servers providing services for the target applications are divided, each server provides services for one area in one target application, and virtual scenes in each area may be the same or different.
Optionally, for multiple areas in the target application, the terminal may display the multiple areas, when the user logs in the terminal for the first time, one area may be selected from the multiple areas, a virtual object is created in the area, and then after the user logs in the terminal each time, the terminal may only control the virtual object created in the area; or, the terminal may create a plurality of virtual objects in the plurality of areas, respectively, that is, after the user logs in the terminal each time, the terminal displays the plurality of areas, may select one area from the plurality of areas, control the virtual object if the terminal has created the virtual object in the area, and create the virtual object in the area if the terminal has not created the virtual object in the area.
In a possible implementation manner, if the server needs to sort the data of the multiple object identifiers of one area, when the server acquires the data of the multiple object identifiers, the server determines a target area identifier, and acquires the data of the multiple object identifiers matching with the target area identifier. The target area identification is used for indicating the area to which the object identification to be sequenced belongs.
Optionally, data of a plurality of virtual objects is stored in a database, data of a plurality of object identifiers is stored in correspondence with the area identifier, and the database may be a database in the server or a database in another device. Optionally, the database may store data of a plurality of object identifiers of one region, and may also store data of a plurality of object identifiers of a plurality of regions, and the data of a plurality of object identifiers of each region is stored in correspondence with the region identifier of the region, so as to determine the object identifier matching the region identifier.
Optionally, the database stores data of a plurality of object identifiers of a plurality of areas, and when the server needs to sort the data of the plurality of object identifiers of one area, the server queries the data of the plurality of object identifiers from the database according to the target area identifier to obtain the data of the plurality of object identifiers matched with the target area identifier.
In a possible implementation manner, when the number of data acquired by the server is large, if the data is directly sorted, the amount of data to be processed is large. The number of the data identifications displayed by the terminal is fixed, and all data do not need to be displayed, so that the data can be screened, the data can be screened from the data, and the screened data can be sorted, so that unnecessary data sorting is reduced, and the sorting efficiency is improved.
Optionally, preset data is set to screen the multiple data, if the multiple data are sorted in a descending manner, it indicates that the smaller data may not be sorted, and multiple data not smaller than the preset data may be selected from the multiple data; if the plurality of data are sorted in an increasing manner, which means that larger data may not be sorted, a plurality of data not larger than the preset data may be selected from the plurality of data. In addition, when the data display device is generated according to the arrangement sequence of the plurality of data, the size of the preset data can be adjusted according to the number of the displayed data, so that the number of the screened data is not less than the number of the displayed data.
In the embodiment of the application, after the server acquires the data of the plurality of object identifiers, the acquired data are grouped, the data in each group are sequenced, and the sequenced data are arranged in an increasing or decreasing mode.
In a possible implementation manner, the terminal is installed with a target application, and the user controls the virtual object to operate in the virtual scene, so as to generate data of the object identifier. The data comprises attribute data and operation data, the attribute data at least comprises at least one of an experience value of the virtual object, a prop grade owned by the virtual object or a clothing grade of the virtual object, and the operation data at least comprises at least one of clearance duration, clearance quantity or points.
The data may include data of multiple dimensions, and the server may separately sort the data of each dimension, for example, the server obtains customs clearance durations of multiple virtual objects and sorts the customs clearance durations, or the server obtains clothing grades of the multiple virtual objects and sorts the clothing grades of the multiple virtual objects; the server may also combine at least two items of data in the plurality of items of data, and sort the at least two items of data by comprehensively considering the at least two items of data, for example, the server obtains the customs clearance duration and owned prop level of the plurality of virtual objects, and the shorter the customs clearance duration is, the higher the prop level is, the earlier the sort is.
In a possible implementation manner, referring to the manner shown in fig. 3, before the server groups the data of the multiple object identifiers, the multiple data are initially sorted to obtain fifth sorted data, the multiple data are grouped according to the fifth sorted data, the fifth sorted data is sorted data obtained after the obtained multiple data are sorted in one round, and a process of obtaining the fifth sorted data is shown in the following steps 301 to 303.
301. And traversing from the last data to the front, and searching for data larger than the reference data.
The reference data is any one of a plurality of data, and the plurality of object identifications are divided into two groups by searching for data larger than the reference data and data smaller than the reference data.
Optionally, any one of the plurality of data may be selected as the reference data; or selecting any data except the maximum data and the minimum data from the plurality of data as reference data; or determining an average value of the maximum data and the minimum data according to the maximum data and the minimum data in the plurality of data, and taking the data with smaller difference with the average value as reference data.
When the server acquires a plurality of data, an initial arrangement sequence is randomly set for the plurality of data, a forward traversal is started from the last data in the initial arrangement sequence, for example, the data is a score, 10 object identifiers are provided, the scores of the 10 object identifiers are {3, 6, 5, 9, 10, 8, 4, 1, 2, 7}, a reference score is determined to be 6, the initial arrangement sequence is {6, 3, 9, 10, 5, 1, 4, 2, 8, 7}, a forward traversal is started from the last score, and the score larger than 6 for the first search is 7.
302. And traversing backwards from the first data to search for data smaller than the reference data. For example, based on the above example, starting with the first integration, the first search for integrals less than 6 is 3.
303. And exchanging the data searched by each forward traversal with the data searched by the backward traversal until the data searched by the forward traversal is the same as the data searched by the backward traversal, and exchanging the same data with the reference data to obtain fifth sequencing data. The fifth sorting data is sorting data obtained by performing one-round sorting on the plurality of data, and the fifth sorting data includes a plurality of object identifiers, data of each object identifier, and a sequence number.
For example, based on the above example, the point 7 and the point 3 found for the first time are exchanged, and the exchanged ranks {6, 7, 9, 10, 5, 1, 4, 2, 8, 3} are obtained; and continuing to execute the step 301 and the step 302, searching the integral 8 and the integral 5 for the second time, exchanging the searched integral 8 and the searched integral 5 to obtain an exchanged sequence {6, 7, 9, 10, 8, 1, 4, 2, 5 and 3}, continuing to execute the step 301 and the step 302, searching the integral 8 for the third time, wherein the forward traversal and the backward traversal of the integral 8 are both 8, exchanging the integral 8 and the reference integral 6 to obtain a sequence {8, 7, 9, 10, 6, 1, 4, 2, 5 and 3} after one round of sequencing, wherein the sequence number of the integral 8 is 1, the sequence number of the integral 7 is 2, \\\ 8230;, the sequence number of the integral 5 is 9, and the sequence number of the integral 3 is 10, and the final sequencing corresponding sequencing data comprises 10 integrals, the object identifier corresponding to each integral, and the sequence number of each integral.
After obtaining the fifth sorting data based on the manner shown in fig. 3, the server divides the data of the plurality of object identifiers into a first group and a second group, including: the plurality of data in the fifth sorting data are divided into a first group and a second group according to the reference data. Wherein each ordering data in the first packet is larger than the ordering data in the second packet. That is, the server groups data larger than the reference data into one group and data smaller than the reference data into one group according to the reference data, and the reference data may be in any of the divided groups.
For example, based on the above example, 10 credits are divided into two groups according to the permutation order {8, 7, 9, 10, 6, 1, 4, 2, 5, 3}, the first group includes {8, 7, 9, 10, 6}, the second group includes {1, 4, 2, 5, 3}, and each credit in the first group is larger than each credit in the second group.
Optionally, the server divides data having a sequence number greater than the sequence number of the reference data into a first group and divides data having a sequence number less than the sequence number of the reference data into a second group according to the sequence number of the reference data.
It should be noted that, in the embodiment of the present application, the data greater than the reference data is searched in a traversal manner from the last data, and the data smaller than the reference data is searched in a traversal manner from the first data.
It should be noted that, in the embodiment of the present application, the step 301 and the step 302 are only performed first, and in another embodiment, the step 302 and the step 301 may be performed first.
202. And the server sorts the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group.
In the embodiment of the application, after the server divides the first packet and the second packet, as the data in the first packet and the second packet are still not arranged in the ascending order or the descending order, the data in each packet is continuously sorted, and a third packet corresponding to the first packet and a fourth packet corresponding to the second packet are obtained. The data in the third group and the fourth group are respectively increased or decreased, namely when the data in the third group is increased, the data in the fourth group is also increased; when the data in the third group is decreased, the data in the fourth group is also decreased, and the ordering modes of the data in the third group and the fourth group are kept consistent.
When the data in the first packet and the second packet are sorted, the data may be sorted in the manner shown in fig. 3, or sorted in other manners, which is not limited in this embodiment of the application.
In one possible implementation, the step of ordering the data in the first and second packets comprises:
after the server divides the first packet and the second packet, and the data in the first packet and the data in the second packet are not arranged in an increasing or decreasing mode, the server divides a plurality of data in the first packet into a first sub-packet and a second sub-packet, wherein each data in the first sub-packet is larger than each data in the second sub-packet; respectively sequencing data in the first sub-packet and the second sub-packet to obtain a third sub-packet corresponding to the first sub-packet and a fourth sub-packet corresponding to the second sub-packet, wherein the data in the third sub-packet and the data in the fourth sub-packet are respectively increased or decreased; and combining the third sub-packet and the fourth sub-packet to obtain a third packet corresponding to the first packet. For example, if the data in the third sub-packet and the data in the fourth sub-packet decrease progressively, the sequence number of the largest data in the third sub-packet is 1, the sequence number of the next data in the third sub-packet is 2, and so on.
The server divides the plurality of data in the second sub-group into a fifth sub-group and a sixth sub-group, wherein each data in the fifth sub-group is larger than each data in the sixth sub-group; respectively sequencing data in the fifth sub-packet and the sixth sub-packet to obtain a seventh sub-packet corresponding to the fifth sub-packet and an eighth sub-packet corresponding to the sixth sub-packet, wherein the data in the seventh sub-packet and the data in the eighth sub-packet are respectively increased progressively or respectively decreased progressively; and combining the seventh sub-packet and the eighth sub-packet to obtain a fourth packet corresponding to the second packet.
It should be noted that, in the above process of sorting the first packet and the second packet, the sorting manner of each sub-packet needs to be kept consistent, that is, a plurality of data in the third sub-packet, the fourth sub-packet, the seventh sub-packet, and the eighth sub-packet are all incremented or all decremented.
In addition, in the case that the plurality of data are sorted in a descending manner, for each sub-packet corresponding to each packet, after the plurality of data in the sub-packet are sorted once, if it is obtained that the plurality of data in the sub-packet corresponding to the sub-packet are not descending, it is necessary to continue to divide the plurality of data in the corresponding sub-packet into two sub-packets, sort the data in the two sub-packets respectively, and if the plurality of data in the sub-packet after being sorted are not descending, continue to divide the plurality of data in the sub-packet until the plurality of data in the divided packet are descending. For the case that the plurality of data are arranged in an increasing manner, the description is omitted here, similarly to the case that the plurality of data are arranged in a decreasing manner.
For example, based on the example in step 201, the first sub-packets {8, 7, 9, 10, 6} are sorted, the reference score 7 is determined, the traversal starts from the last score, the score 10 greater than 7 is found for the first time, the traversal starts from the first score, the same score 10 is found for the first time before the score less than 7 is found, then 10 and the reference score 7 are directly exchanged, the exchanged sequence {8, 10, 9, 7, 6} is obtained, and the first sub-packet {8, 10, 9} and the second sub-packet {7, 6} are obtained. And continuously sequencing the first sub-packet to obtain a corresponding third sub-packet {10, 9, 8}, wherein if the integral in the second sub-packet is decreased, sequencing is not required again, and combining the third sub-packet and the second sub-packet to obtain a corresponding third sub-packet {10, 9, 8, 7, 6}.
The method includes the steps that a plurality of data are sequenced in a multilayer nesting mode, for the plurality of data in two groups, the plurality of data in each group after sequencing are sequenced according to whether or not in a preset mode, and if the plurality of data in each group after sequencing are sequenced according to the preset mode, the two groups are combined to obtain sequencing data of the plurality of data; and if the plurality of data in any one group are not arranged according to the preset arrangement mode, continuously grouping the plurality of data in any one group until the plurality of data in the two groups are arranged according to the preset arrangement mode, and then sequentially combining the groups until all the data are combined together. The preset ordering mode can be any one of increasing or decreasing.
The above-described embodiment of combining two sub-packets is similar to the embodiment of combining a first packet with a second packet, and is not described again here.
203. And the server combines the third group and the fourth group to obtain first sequencing data.
The first ranking data comprises a plurality of object identifications, data of each object identification and a sequence number. The sequence numbers of the object identifiers are used for representing the arrangement sequence of the object identifiers in the object identifiers, the sequence numbers of any two object identifiers are different, and the sequence numbers of the object identifiers are continuous positive integers.
The server combines the third packet and the fourth packet in an increasing or decreasing manner, and if the plurality of data in the third packet and the fourth packet decrease respectively, the plurality of data in the third packet are arranged before the plurality of data in the fourth packet, that is, the sequence number corresponding to each data in the third packet is smaller than the sequence number corresponding to each data in the fourth packet. Optionally, when the sequence number corresponding to each data in the first sorted data is determined, each data in the third packet is still the original sequence number, and each data in the fourth packet is added with the last sequence number in the third packet on the basis of the original sequence number to obtain the sequence number of each data in the fourth packet.
And if the plurality of data in the third packet and the fourth packet are respectively increased in number, the plurality of data in the fourth packet is arranged before the plurality of data in the third packet, namely the sequence number corresponding to each data in the fourth packet is smaller than the sequence number corresponding to each data in the third packet. Optionally, when the sequence number corresponding to each data in the first sorted data is determined, each data in the four packets is still the original sequence number, and each data in the third packet is added with the last sequence number in the fourth packet on the basis of the original sequence number to obtain the sequence number of each data in the third packet.
After the server obtains the first sequencing data, if the data of any one object identifier in the plurality of object identifiers in the first sequencing data changes, the updated data of the any one object identifier is obtained; deleting the original data and the original serial number of the object identifier; and inserting the updated data into the first sorting data to obtain fourth sorting data. The fourth sorting data comprises a plurality of object identifications, data of each object identification and an updated serial number, the plurality of object identifications in the fourth sorting data are the same as the plurality of object identifications in the first sorting data, the serial number of the data arranged behind the updated data changes, and the serial number of the data arranged in front of the updated data does not change.
And if the server acquires the data of the new object identifier, inserting the data of the new object identifier into the first sequencing data to obtain sixth sequencing data, wherein the sixth sequencing data comprises a plurality of object identifiers, the data of each object identifier and the updated sequence number, and the number of the object identifiers included in the sixth sequencing data is greater than the number of the object identifiers included in the first sequencing data.
Optionally, the server acquires updated data every preset time, periodically updates the first sorting data, and obtains updated fourth sorting data. Or because a new virtual object can be generated in the virtual scene, after the new virtual object is generated, the data of the new object identifier needs to be sorted, the server acquires the new object identifier and the new data every preset time, and acquires new sixth sorted data according to the first sorted data and the new data.
In addition, after the server acquires the first sequencing data, the server sends the first sequencing data to the terminal, the terminal displays the first sequencing data to the user, or the server further processes the first sequencing data, sends the processed sequencing data to the terminal, and the terminal displays the processed sequencing data to the user. Or the server can also determine the ranking of each object identifier according to the first ranking data, and send the ranking of the object identifier corresponding to the user identifier logging in the terminal to the terminal. The ranking of the object identifier refers to the ranking of the object identifier, and the rankings of the two object identifiers may be the same, that is, if the data of the at least two object identifiers are the same, the sequence numbers of the at least two object identifiers are different and the rankings are the same.
In the related technology, when the server sequences a plurality of data, the server sequences the plurality of data by adopting a bubble sequencing algorithm, in the sequencing process, two adjacent data in the plurality of data need to be compared and exchanged, after the plurality of data are sequenced for the first time, two adjacent data in other data except the last data need to be compared and exchanged until the plurality of data are increased or decreased, the data amount needing to be processed in the process is large, and the sequencing efficiency is low.
From the sequencing time of a plurality of data, the time consumed by adopting the bubble sequencing algorithm in the related technology is longer than the time consumed by the data sequencing method in the application, the sequencing time can be represented by adopting the time complexity, and if N data are sequenced, the time complexity of the bubble sequencing algorithm in the related technology is O (N) 2 ) The time complexity of the data sorting method in this application is O (N × logN).
The method provided by the embodiment of the application sequences a plurality of data in a grouping and recombining mode, divides the plurality of data into a first grouping and a second grouping, sequences the data in the two groupings respectively, reduces the data amount of sequencing because the data in each grouping is less, improves the sequencing speed of the data, and can splice the two groupings directly when the two groupings after sequencing are combined, namely, the first sequencing number arranged in an increasing or decreasing mode can be obtained, and the method is convenient and fast.
Moreover, for the server executing the data sorting method, the data sorting can be completed in a shorter time, the sorting speed is improved, and the loss of the server is reduced.
After the data sorting method shown in fig. 2 is adopted to obtain the first sorting data of the multiple data, the sorting data can be displayed on the terminal according to the first sorting data, and the specific process is described in the following embodiments.
Fig. 4 is a flowchart of a data presentation method according to an embodiment of the present application. The execution subject of the embodiment of the application is the server. Referring to fig. 4, the method includes:
401. the server responds to a first display request sent by the terminal and obtains first sequencing data.
In the embodiment of the application, the server acquires a plurality of data, sequences the plurality of data to obtain first sequencing data, responds to a display request sent by the terminal, processes the first sequencing data, sends the processed sequencing data to the terminal, and displays the processed sequencing data by the terminal. The first ranking data comprises a plurality of object identifications, data of each object identification and a sequence number.
The first display request carries a target object identifier controlled by the terminal. The target object identification may be a nickname, ID, or the like, of the target virtual object.
The first ranking data may be obtained by using the embodiment shown in fig. 2, or may be obtained by using other methods, which is not limited in this application.
402. And the server responds to the fact that the target object identification is associated with the first object identification in the first sequencing data, and the data of the second object identification in the first sequencing data is the same as the data of the first object identification, and obtains second sequencing data according to the first sequencing data.
And if the first sequencing data comprises a second object identifier with the same data as the first object identifier, determining whether the first object identifier is an object identifier associated with the target object identifier, and if so, acquiring second sequencing data by the server according to the first sequencing data. And comparing the obtained second sequencing data with the first sequencing data, wherein the second sequencing data is the same as a plurality of object identifications in the first sequencing data, the data of each object identification is also the same, and the difference is that the sequence number of the first object identification in the second sequencing data is smaller than the sequence number of the second object identification.
That is, in response to that the target object identifier is associated with a first object identifier in the first sorted data, and data of a second object identifier in the first sorted data is the same as the data of the first object identifier, if the sequence number of the first object identifier is greater than the sequence number of the second object identifier, the server adjusts the sequence numbers of the first object identifier and the second object identifier in the first sorted data, so that the adjusted sequence number of the first object identifier is smaller than the sequence number of the second object identifier, and obtains the second sorted data.
For any two object identifiers with the same other data, if the two object identifiers are not the object identifiers associated with the target object identifier, the sequence numbers of the two object identifiers may still be the original sequence numbers, and no adjustment is required.
For example, for 10 object identifiers, the passage time lengths corresponding to the 10 object identifiers are 20 minutes, 5 minutes, 10 minutes, 14 minutes, 8 minutes, 9 minutes, 18 minutes, 12 minutes and 18 minutes, respectively. First ranking data see table 1:
TABLE 1
Figure GDA0004074900850000171
Figure GDA0004074900850000181
In table 1, the data of the object identifier C is the same as the data of the object identifier D, and the data of the object identifier H is the same as the data of the object identifier J, where the object identifier associated with the target object identifier is the object identifier D, and the sequence number 4 of the object identifier C in the first sorting data is smaller than the sequence number 5 of the object identifier D, the sequence number of the object identifier C is adjusted to obtain the second sorting data, and the second sorting data refers to table 2:
TABLE 2
Serial number Object identification Data of
1 Object identification B 5 minutes
2 Object identification F 8 minutes
3 Object identification G 9 minutes
4 Object identification D 10 minutes
5 Object identification C 10 minutes
6 Object identification I 12 minutes
7 Object identification E 14 minutes
8 Object identification H 18 minutes
9 Object identification J 18 minutes
10 Object identification A 20 minutes
The first object identifier is an object identifier concerned by a user and corresponding to the target object identifier, a friend relationship may exist between a virtual object corresponding to the target object identifier and a virtual object corresponding to the first object identifier, the virtual object corresponding to the first object identifier may be a virtual object concerned by the virtual object corresponding to the target object identifier, or the target object identifier and the first object identifier may also be in other association relationships.
403. The server sends the second sorting data to the terminal.
In the embodiment of the application, after the server acquires the second sorting data, the server sends the second sorting data to the terminal, the terminal determines the sequence numbers of the plurality of object identifiers according to the received second sorting data, and the terminal determines the arrangement sequence of the plurality of object identifiers according to the plurality of sequence numbers and displays the second sorting data.
In another possible implementation manner, the server may further receive a display request carrying other information, and the server obtains the sorting data of the other information objects according to the other information. The other information may be a target serial number, where the target serial number is used to indicate the number of object identifiers in the sequencing data requested to be displayed by the terminal, for example, if the top 50 object identifiers are displayed, the target serial number is 50. The second display request carries a target sequence number, and the server obtains corresponding sequencing data, which refers to steps 501 to 502 below.
501. And the server responds to a second display request sent by the terminal and acquires third sequencing data according to the first sequencing data. And the second display request carries a target sequence number, and the sequence number of each object identifier in the third sequencing data is smaller than the target sequence number.
That is, the server selects the object identifier and the data with the sequence number not greater than the target sequence number from the first sorted data according to the target sequence number to obtain third sorted data, wherein the third sorted data is part of the first sorted data.
For example, the sequencing data displayed by the terminal includes 50 object identifiers, the first sequencing data includes 100 object identifiers, and the server selects the object identifiers and data with sequence numbers of 1-50 from the first sequencing data to obtain third sequencing data.
502. And the server sends the third sorting data to the terminal, and the terminal is used for displaying the third sorting data.
In another possible implementation manner, the third display request sent by the terminal to the server may simultaneously carry the target object identifier and the target sequence number to obtain a fixed number of object identifiers, and the object identifiers associated with the target object identifier in the fixed number of object identifiers are arranged in front of the third display request.
The server responds to a third display request sent by the terminal to obtain first sequencing data; responding to the first sequencing data including a third object identifier associated with the target object identifier, a fourth object identifier with the same sequence number as the third object identifier and the sequence number not greater than the target sequence number, and acquiring seventh sequencing data; and sending the seventh sorting data to the terminal, wherein the terminal is used for displaying the seventh sorting data. The seventh sorting data comprises the object identifier of which the sequence number is not more than the target sequence number in the first sorting data, the sequence number of each object identifier and data, and the sequence number of the third object identifier in the seventh sorting data is less than the sequence number of the fourth object identifier. The embodiment of the server obtaining the seventh sorting data is similar to the embodiment shown in fig. 4 and fig. 5, and is not described again here.
According to the method provided by the embodiment of the application, the first object identifier associated with the target object identifier is obtained according to the target object identifier carried by the first display request, and the first object identifier is associated with the target object identifier and is an object identifier concerned by a user of the target object identifier, so that the first object identifier can be displayed first when the terminal displays the second sequencing data by arranging the serial number of the first object identifier in front of the serial numbers of other object identifiers with the same data, the user can know the data of the first object identifier first, the problem that the user cannot quickly view the data of the associated object identifier under the condition that the data of a plurality of object identifiers are the same is avoided, and the display effect of the data is improved.
And if the display request carries the target serial number, third sequencing data is obtained, the serial number of the object identifier in the third sequencing data is not greater than the target serial number, and the serial number of the object identifier does not need to be obtained too many, so that unnecessary data transmission is avoided. And when the terminal displays the third sequencing data, a plurality of object identifications with sequence numbers not greater than the target sequence number can be displayed without displaying too many object identifications, so that the display space is saved.
The data presentation method shown in fig. 4 and 5 is described by taking the execution agent as the server, and the following embodiment shown in fig. 6 is used to describe a case where the interaction agent includes a terminal and a server.
Fig. 6 is a flowchart of another data presentation method provided in the embodiment of the present application. Referring to fig. 6, the interaction subject of the embodiment of the present application is a terminal and a server, and the method includes:
601. the terminal sends a first display request to the server.
The terminal is provided with a target application, the target application comprises a data display interface, and the terminal responds to the triggering operation of a user on a data display button in the data display interface, sends a display request to the server to acquire sequencing data and displays the sequencing data.
In a possible implementation manner, since the number of the object identifiers displayed when the terminal displays the sorted data is fixed, and the corresponding number of the virtual data can be displayed as needed, a plurality of data display buttons included in the data display interface can correspond to different target sequence numbers, and the target sequence numbers are used for representing the number of the object identifiers requested to be displayed.
The terminal responds to the triggering operation of any data display button and sends a second display request to the server, wherein the second display request carries a target serial number corresponding to the triggered data display button; and displaying the third sorting data according to the third sorting data returned by the server. And the sequence number of each object identifier in the third sorting data is smaller than the target sequence number.
For example, the data presentation interface includes a first data presentation button and a second data presentation button, where the first data presentation button corresponds to an object serial number of 50, that is, requests to present the object identifier ranked at the top 50, and the second data presentation button corresponds to an object serial number of 100, that is, requests to present the object identifier ranked at the top 100.
602. The server responds to a first display request sent by the terminal and obtains first sequencing data.
In a possible implementation manner, before receiving a first display request sent by a terminal, a server sequences a plurality of data to obtain first sequencing data, stores the first sequencing data in the server, and obtains the stored first sequencing data when the server receives the first display request sent by the terminal.
In another possible implementation manner, when receiving a first display request sent by a terminal, a server obtains a plurality of data, sorts the plurality of data, and obtains first sorted data.
603. And the server responds to the fact that the target object identification is associated with the first object identification in the first sorting data, and the second object identification in the first sorting data is the same as the first object identification in data, and obtains second sorting data according to the first sorting data.
604. The server sends the second sorting data to the terminal.
The implementation of steps 602 to 604 is similar to that of steps 201 to 203, and is not described herein again.
605. And the terminal displays the second sequencing data.
And the terminal determines the serial numbers of the plurality of object identifications according to the received second sequencing data, determines the ranking of each object identification according to the serial number and the data of each object identification, and displays the second sequencing data.
The sequence number of the object identifier is used for indicating the arrangement sequence of the object identifier in a plurality of object identifiers, and the sequence numbers of any two object identifiers are different; the ranking of the object identifier refers to the ranking of the object identifier in the displayed sequencing data, and the ranking of the two object identifiers may be the same, that is, if the data of the at least two object identifiers are the same, the sequence numbers of the at least two object identifiers are different and the ranking is the same. For data display, the sequence number of the object identifier indicates the display position of the object identifier during display, and the smaller the sequence number, the more forward the display position.
In a possible implementation manner, the data presentation interface comprises object identifiers and a ranking, wherein the ranking is determined according to the sequence number and the data of each object identifier in the second ordering data, for any two object identifiers with the same data, when in presentation, a first object identifier associated with a target object identifier is positioned before a second object identifier, the ranking of the first object identifier is the same as that of the second object identifier, and the ranking of the object identifiers positioned after the first object identifier and the second object identifier is the same as that of the sequence numbers of the object identifiers.
For example, the scores of the first object identifier and the second object identifier are both 10, the serial number of the first object identifier is 9, and the serial number of the second object identifier is 10, then the ranking of the first object identifier and the second object identifier in the displayed sorting data is both 9, the first object identifier is arranged before the second object identifier, and the ranking of the object identifier with serial number 11 is 11.
For example, referring to the data presentation interface 700 shown in fig. 7, the object id of the top 5 names is presented in the data presentation interface 700.
Optionally, the number of the object identifiers displayed in each time in the data display interface is fixed, and in response to the sliding operation on the data display interface, the plurality of object identifiers in the data display interface are scrolled up and down to display other object identifiers.
In another possible implementation, the data presentation interface includes an object identification, a ranking, and a region identification. If the sequencing data of any region is displayed, the region identifier corresponding to each object identifier in the data display interface is the same, and if the sequencing data of a plurality of regions is displayed, the region identifier corresponding to each object identifier in the data display interface can be the same or different. For example, referring to the data presentation interface 800 shown in fig. 8, the object id of the top 5 objects in the first area is presented in the data presentation interface 700.
In another possible implementation manner, the data display interface comprises object identification, ranking and data; or the data display interface comprises object identification, ranking, data and area identification.
In one possible implementation manner, according to the data of multiple dimensions, the data of each dimension is respectively displayed, for example, the ranking data of the customs clearance duration, the ranking data of the game duration, the ranking data of the points and the like are displayed.
The server sorts the data of each dimension respectively according to the data of the object identifiers to obtain sorted data corresponding to the data of each dimension, the terminal sends a display request to the server, the display request carries dimension information, the server sends the sorted data of the dimension information to the terminal, and the terminal displays the sorted data of the dimension information. For example, if the dimension information is the clearance duration, the server sends the sorting data of the clearance duration to the terminal, and the terminal displays the sorting data of the clearance duration.
Optionally, the data display interface includes multiple dimensions of data display buttons, each data display button corresponds to one dimension, and the terminal sends a fourth display request to the server in response to a trigger operation on the data display button, where the fourth display request carries dimension information corresponding to the triggered data display button.
Optionally, for the fourth display request corresponding to each dimension information, the fourth display request may further carry a target object identifier or a target sequence number.
Each type of sequencing data can be displayed by adopting the data display method, the display interfaces of each type of sequencing data can be the same or different, and the application does not limit the display interfaces.
In addition, in a possible implementation manner, after the terminal receives the ranking data, the terminal determines a corresponding ranking list according to the ranking data, and displays the ranking data through the ranking list. For example, the ranking data of the clearance time length is displayed through the clearance time length ranking list, the ranking data of the game time length is displayed through the game time length ranking list, the ranking data of the points is displayed through the point ranking list, and the like.
When a server storing data is different from a server sorting a plurality of data, a data presentation method is explained by an embodiment shown in fig. 9 described below.
Fig. 9 is a flowchart of another data presentation method provided in the embodiment of the present application. Referring to fig. 9, the interaction subject of the embodiment of the present application is a terminal, a first server, and a second server, and the method includes:
901. the first server sends a data acquisition request to the second server, wherein the data acquisition request carries the target area identification. The second server is configured to store data, and the plurality of data stored in the second server may be data of a plurality of object identifiers in the same area, or data of a plurality of object identifiers in different areas. The first server is used for sorting the data of the object identifications matched with the target area identification.
902. And the second server responds to the data acquisition request and returns the data of the object identifications matched with the target area identification to the first server.
903. The first server sorts the acquired data to obtain first sorted data.
904. The terminal sends a display request to the first server.
905. And the first server responds to the display request, acquires second sequencing data and returns the second sequencing data to the terminal.
906. And the terminal displays the second sequencing data.
The implementation of the data display method in the embodiment of the present application is similar to the implementation shown in fig. 2 and fig. 4, and is not described herein again.
Fig. 10 is a schematic structural diagram of a data display device according to an embodiment of the present application. Referring to fig. 10, the apparatus includes:
a first data obtaining module 1001, configured to obtain first ranking data in response to a first display request sent by a terminal, where the first display request carries a target object identifier controlled by the terminal, and the first ranking data includes multiple object identifiers, data of each object identifier, and a sequence number;
a second data obtaining module 1002, configured to, in response to that the target object identifier is associated with the first object identifier in the first sorted data, and data of a second object identifier in the first sorted data is the same as the data of the first object identifier, obtain second sorted data according to the first sorted data, so that a sequence number of the first object identifier in the second sorted data is smaller than a sequence number of the second object identifier;
the second data sending module 1003 is configured to send the second sorting data to the terminal, and the terminal is configured to display the second sorting data.
According to the device provided by the embodiment of the application, the first object identifier associated with the target object identifier is obtained according to the target object identifier carried by the first display request, and the first object identifier is associated with the target object identifier and is an object identifier concerned by a user of the target object identifier, so that the serial number of the first object identifier is arranged before the serial numbers of other object identifiers with the same data, the first object identifier is displayed when the terminal displays second sequencing data, the user can know the data of the first object identifier firstly, the problem that the user cannot quickly check the data of the associated object identifier under the condition that the data of a plurality of object identifiers are the same is avoided, and the display effect of the data is improved.
Optionally, referring to fig. 11, the apparatus further comprises:
a third data obtaining module 1004, configured to, in response to a second display request sent by the terminal, obtain third sorted data according to the first sorted data, so that a sequence number of each object identifier in the third sorted data is smaller than a target sequence number, where the second display request carries the target sequence number;
a third data sending module 1005, configured to send the third sorting data to the terminal, where the terminal is configured to display the third sorting data.
Optionally, referring to fig. 11, the apparatus further comprises:
a data grouping module 1006 for dividing the data of the plurality of object identifications into a first group and a second group, each data in the first group being larger than each data in the second group;
a data sorting module 1007, configured to sort the data in the first packet and the data in the second packet respectively to obtain a third packet corresponding to the first packet and a fourth packet corresponding to the second packet, where the data in the third packet and the data in the fourth packet are incremented or decremented respectively;
and the combining module 1008 is configured to combine the third packet with the fourth packet to obtain the first sorting data.
Optionally, referring to fig. 11, the apparatus further comprises:
a data obtaining module 1009, configured to determine a target area identifier, where the target area identifier is used to indicate an area to which an object identifier to be sorted belongs;
the data obtaining module 1009 is further configured to obtain data of a plurality of object identifiers matching the target area identifier.
Optionally, referring to fig. 11, the apparatus further comprises:
an update data obtaining module 1010, configured to obtain updated data of any object identifier in the multiple object identifiers;
an original data deleting module 1011, configured to delete the original data and the original serial number of the object identifier;
a fourth data obtaining module 1012, configured to insert the updated data into the first sorting data to obtain fourth sorting data, where the fourth sorting data includes multiple object identifiers, data of each object identifier, and an updated sequence number.
Optionally, referring to fig. 11, the apparatus further comprises:
a first searching module 1013 configured to traverse forward from the last data and search for data larger than reference data, where the reference data is any one of the plurality of data;
a second search module 1014, configured to traverse backward from the first data, and search for data smaller than the reference data;
the exchanging module 1015 is configured to exchange the data found by each forward traversal with the data found by the backward traversal until the data found by the forward traversal is the same as the data found by the backward traversal, and exchange the same data with the reference data to obtain fifth sorted data, where the fifth sorted data includes a plurality of object identifiers, data of each object identifier, and a serial number;
a data grouping module 1006, configured to divide the plurality of data in the fifth ordering data into a first group and a second group according to the reference data.
Optionally, the data sorting module 1007 is configured to:
dividing a plurality of data in the first packet into a first sub-packet and a second sub-packet, wherein each data in the first sub-packet is larger than each data in the second sub-packet;
respectively sequencing data in the first sub-packet and the second sub-packet to obtain a third sub-packet corresponding to the first sub-packet and a fourth sub-packet corresponding to the second sub-packet, wherein the data in the third sub-packet and the data in the fourth sub-packet are respectively increased or decreased;
and combining the third sub-packet and the fourth sub-packet to obtain a third packet corresponding to the first packet.
Optionally, the data includes attribute data and operation data, the attribute data includes at least one of an experience value of the virtual object, a prop level possessed by the virtual object, or a clothing level of the virtual object, and the operation data includes at least one of a clearance duration, a clearance number, or an integral.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: in the data display device provided in the above embodiment, when displaying data, only the division of the functional modules is exemplified, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the data display device and the data display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 12 is a schematic structural diagram of another data display device provided in the embodiment of the present application. Referring to fig. 12, the apparatus includes:
a first request sending module 1201, configured to send a first display request to a server, where the first display request carries a target object identifier controlled by a terminal, and the server is configured to obtain first sorted data in response to the first display request, and return second sorted data in response to that the target object identifier is associated with a first object identifier in the first sorted data and that data of a second object identifier in the first sorted data is the same as data of the first object identifier;
a first display module 1202, configured to display the second sorting data;
the first sequencing data comprises a plurality of object identifications, data of each object identification and a sequence number, and the sequence number of the first object identification in the second sequencing data is smaller than the sequence number of the second object identification.
According to the device provided by the embodiment of the application, the display request carries the target serial number, the third sequencing data is obtained, the serial number of the object identifier in the third sequencing data is not larger than the target serial number, and the number of the object identifier does not need to be obtained too many, so that unnecessary data transmission is avoided. And when the terminal displays the third sequencing data, a plurality of object identifications with sequence numbers not greater than the target sequence number can be displayed without displaying too many object identifications, so that the display space is saved.
Optionally, referring to fig. 13, the apparatus further comprises:
an interface display module 1203, configured to display a data display interface, where the data display interface includes multiple data display buttons, target sequence numbers corresponding to the multiple data display buttons are different, and the target sequence numbers are used to indicate the number of object identifiers in the data requested to be displayed;
a second request sending module 1204, configured to send, in response to a trigger operation on any data display button, a second display request to a server, where the second display request carries a target sequence number corresponding to the triggered data display button, and the server is configured to receive the second display request, and return third ordering data according to the first ordering data, where a sequence number of each object identifier in the third ordering data is smaller than the target sequence number;
and a second displaying module 1205 for displaying the third sorting data.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: in the data display device provided in the above embodiment, when displaying data, only the division of the above functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the data display device and the data display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 14 is a schematic structural diagram of a data sorting apparatus according to an embodiment of the present application. Referring to fig. 14, the apparatus includes:
a data grouping module 1401 for dividing the data of the plurality of object identifications into a first grouping and a second grouping, each data in the first grouping being larger than each data in the second grouping;
a data sorting module 1402, configured to sort the data in the first packet and the data in the second packet, respectively, to obtain a third packet corresponding to the first packet and a fourth packet corresponding to the second packet, where the data in the third packet and the data in the fourth packet are incremented or decremented respectively;
the combining module 1403 is configured to combine the third packet and the fourth packet to obtain first sorted data, where the first sorted data includes a plurality of object identifiers, data of each object identifier, and a sequence number.
The device provided by the embodiment of the application sorts a plurality of data in a grouping and recombining mode, the data are divided into a first grouping and a second grouping firstly, the data in the two groupings are sorted respectively, the data in each grouping are reduced, the data amount of sorting is reduced, the sorting speed of the data is improved, and each data in the first grouping is larger than each data in the second grouping, so when the two groups after sorting are combined, the two groups can be spliced directly, the first sorting number arranged in an increasing or decreasing mode can be obtained, and the device is convenient and fast.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: in the data sorting apparatus provided in the above embodiment, when sorting data, only the division of each function module is illustrated, and in practical applications, the function distribution may be completed by different function modules according to needs, that is, the internal structure of the server is divided into different function modules to complete all or part of the functions described above. In addition, the data sorting device and the data sorting method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 15 shows a block diagram of a terminal 1500 according to an exemplary embodiment of the present application. The terminal 1500 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1500 may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 1500 includes: a processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1502 is used to store at least one instruction for execution by the processor 1501 to implement the data presentation methods provided by the method embodiments herein.
In some embodiments, the terminal 1500 may further include: a peripheral interface 1503 and at least one peripheral. The processor 1501, memory 1502, and peripheral interface 1503 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1503 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display 1505, a camera assembly 1506, an audio circuit 1507, a positioning assembly 1508, and a power supply 1509.
The peripheral interface 1503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, memory 1502, and peripheral interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral interface 1503 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 1504 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1504 can communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1504 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to capture touch signals on or over the surface of the display screen 1505. The touch signal may be input to the processor 1501 as a control signal for processing. At this point, the display 1505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1505 may be one, provided on the front panel of terminal 1500; in other embodiments, display 1505 may be at least two, each disposed on a different surface of terminal 1500 or in a folded design; in other embodiments, the display 1505 may be a flexible display disposed on a curved surface or a folded surface of the terminal 1500. Even further, the display 1505 may be configured in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 1505 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 1506 is used to capture images or video. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1507 may include a microphone and speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1501 for processing or inputting the electric signals to the radio frequency circuit 1504 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of the terminal 1500. The microphone may also be an array microphone or an omni-directional acquisition microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1507 may also include a headphone jack.
The positioning component 1508 is used for locating the current geographic position of the terminal 1500 for navigation or LBS (Location Based Service).
Power supply 1509 is used to power the various components in terminal 1500. The power supply 1509 may be alternating current, direct current, disposable or rechargeable. When the power supply 1509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 1500 also includes one or more sensors 1510. The one or more sensors 1510 include, but are not limited to: acceleration sensor 1511, gyro sensor 1512, pressure sensor 1513, optical sensor 1515, and proximity sensor 1516.
The acceleration sensor 1511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1500. For example, the acceleration sensor 1511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1501 may control the display screen 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 1512 can detect the body direction and the rotation angle of the terminal 1500, and the gyroscope sensor 1512 and the acceleration sensor 1511 cooperate to collect the 3D motion of the user on the terminal 1500. The processor 1501 may implement the following functions according to the data collected by the gyro sensor 1512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1513 may be disposed on a side frame of terminal 1500 and/or underneath display 1505. When the pressure sensor 1513 is disposed on the side frame of the terminal 1500, the holding signal of the user to the terminal 1500 may be detected, and the processor 1501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1513. When the pressure sensor 1513 is disposed at a lower layer of the display screen 1505, the processor 1501 controls the operability control on the UI interface in accordance with the pressure operation of the user on the display screen 1505. The operability control comprises at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1515 is used to collect ambient light intensity. In one embodiment, processor 1501 may control the brightness of display screen 1505 based on the intensity of ambient light collected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the display screen 1505 is adjusted down. In another embodiment, the processor 1501 may also dynamically adjust the shooting parameters of the camera assembly 1506 based on the ambient light intensity collected by the optical sensor 1515.
A proximity sensor 1516, also known as a distance sensor, is typically provided on the front panel of the terminal 1500. The proximity sensor 1516 is used to collect the distance between the user and the front surface of the terminal 1500. In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front surface of the terminal 1500 gradually decreases, the processor 1501 controls the display 1505 to switch from the bright screen state to the dark screen state; when the proximity sensor 1516 detects that the distance between the user and the front surface of the terminal 1500 gradually becomes larger, the processor 1501 controls the display 1505 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 15 is not limiting of terminal 1500 and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 16 is a schematic structural diagram of a server 1600 according to an embodiment of the present application, where the server 1600 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1601 and one or more memories 1602, where the memory 1602 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1601 to implement the methods provided by the method embodiments. Certainly, the server may further have a wired or wireless network interface, a keyboard, an input/output interface, and other components to facilitate input and output, and the server may further include other components for implementing functions of the device, which are not described herein again.
The server 1600 may be used for executing the steps executed by the server in the data presentation method or the data sorting method.
The embodiment of the present application further provides a computer device, where the computer device includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the data presentation method of the foregoing embodiment or implement the data sorting method of the foregoing embodiment.
The embodiment of the present application further provides a computer-readable storage medium, where at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is loaded and executed by a processor to implement the data presentation method of the foregoing embodiment or to implement the data sorting method of the foregoing embodiment.
Embodiments of the present application also provide a computer program product, which includes computer instructions stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the data presentation method of the above embodiment or to implement the data sorting method of the above embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an example of the embodiments of the present application, and is not intended to limit the embodiments of the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the embodiments of the present application should be included in the protection scope of the present application.

Claims (22)

1. A method for presenting data, the method comprising:
responding to a first display request sent by a terminal, and acquiring first sequencing data, wherein the first display request carries a target object identifier controlled by the terminal, and the first sequencing data comprises a plurality of object identifiers, data of each object identifier and a sequence number;
in response to that the target object identifier is associated with a first object identifier in the first sorting data and data of a second object identifier in the first sorting data is the same as data of the first object identifier, acquiring second sorting data according to the first sorting data so that a sequence number of the first object identifier in the second sorting data is smaller than a sequence number of the second object identifier;
and sending the second sorting data to the terminal, wherein the terminal is used for displaying the second sorting data.
2. The method of claim 1, further comprising:
responding to a second display request sent by the terminal, and acquiring third sequencing data according to the first sequencing data, so that the sequence number of each object identifier in the third sequencing data is smaller than a target sequence number, wherein the second display request carries the target sequence number, and the target sequence number is used for representing the number of the object identifiers in the sequencing data requested to be displayed by the terminal;
and sending the third sorting data to the terminal, wherein the terminal is used for displaying the third sorting data.
3. The method according to claim 1, wherein before the obtaining the first ranking data in response to the first presentation request sent by the terminal, the method further comprises:
dividing the data of the plurality of object identifications into a first grouping and a second grouping, each data in the first grouping being larger than each data in the second grouping;
sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, wherein the data in the third group and the data in the fourth group are increased or decreased respectively;
and combining the third packet and the fourth packet to obtain the first sequencing data.
4. The method of claim 3, wherein prior to dividing the data of the plurality of object identifiers into the first and second groupings, the method further comprises:
determining a target area identifier, wherein the target area identifier is used for indicating an area to which an object identifier to be sequenced belongs;
and acquiring data of a plurality of object identifications matched with the target area identification.
5. The method of claim 3, wherein after combining the third grouping with the fourth grouping to obtain the first ranking data, the method further comprises:
acquiring updated data of any one of the object identifiers;
deleting the original data and the original serial number of the object identifier;
and inserting the updated data into the first sorting data to obtain fourth sorting data, wherein the fourth sorting data comprises the plurality of object identifiers, the data of each object identifier and the updated sequence number.
6. The method of claim 3, wherein prior to said dividing the data of the plurality of object identifications into a first grouping and a second grouping, the method further comprises:
traversing from the last data to the front, and searching for data larger than reference data, wherein the reference data is any data in the plurality of data;
traversing backwards from the first data, and searching for data smaller than the reference data;
exchanging the data searched by each forward traversal with the data searched by the backward traversal until the data searched by the forward traversal is the same as the data searched by the backward traversal, and exchanging the same data with the reference data to obtain fifth sequencing data, wherein the fifth sequencing data comprises the plurality of object identifiers, the data of each object identifier and the serial number;
the dividing the data of the plurality of object identifications into a first grouping and a second grouping comprises:
dividing the plurality of data in the fifth ordering data into the first and second packets according to the reference data.
7. The method of claim 3, wherein the sorting the data in the first packet and the second packet respectively to obtain a third packet corresponding to the first packet and a fourth packet corresponding to the second packet comprises:
dividing a plurality of data in the first packet into a first sub-packet and a second sub-packet, each data in the first sub-packet being larger than each data in the second sub-packet;
respectively sequencing data in the first sub-packet and the second sub-packet to obtain a third sub-packet corresponding to the first sub-packet and a fourth sub-packet corresponding to the second sub-packet, wherein the data in the third sub-packet and the data in the fourth sub-packet are respectively increased progressively or decreased progressively;
and combining the third sub-packet and the fourth sub-packet to obtain the third packet corresponding to the first packet.
8. The method according to any one of claims 1-7, wherein the data comprises attribute data comprising at least one of an empirical value of the virtual object, a prop level possessed by the virtual object, or a clothing level of the virtual object, and operational data comprising at least one of a length of clearance, a number of clearance, or a score.
9. A method for presenting data, the method comprising:
sending a first display request to a server, wherein the first display request carries a target object identifier controlled by a terminal, the server is used for responding to the first display request, acquiring first sequencing data, responding to the association between the target object identifier and a first object identifier in the first sequencing data, and returning second sequencing data when the data of a second object identifier in the first sequencing data is the same as the data of the first object identifier;
displaying the second sorting data;
the first sequencing data comprise a plurality of object identifiers, data of each object identifier and a sequence number, and the sequence number of the first object identifier in the second sequencing data is smaller than the sequence number of the second object identifier.
10. A method of data ordering, the method comprising:
dividing data of a plurality of object identifications into a first group and a second group, wherein each data in the first group is larger than each data in the second group;
sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, wherein the data in the third group and the data in the fourth group are increased or decreased respectively;
combining the third group and the fourth group to obtain first sequencing data, wherein the first sequencing data comprise the object identifiers, the data of each object identifier and a sequence number, the first sequencing data are used for displaying the sequencing data on a terminal, and the displaying process comprises the following steps: responding to a first display request sent by the terminal, and acquiring the first sequencing data, wherein the first display request carries a target object identifier controlled by the terminal; in response to that the target object identifier is associated with a first object identifier in the first sorting data and data of a second object identifier in the first sorting data is the same as data of the first object identifier, acquiring second sorting data according to the first sorting data so that a sequence number of the first object identifier in the second sorting data is smaller than a sequence number of the second object identifier; and sending the second sorting data to the terminal, wherein the terminal is used for displaying the second sorting data.
11. A data presentation device, the device comprising:
a first data obtaining module, configured to obtain first ranking data in response to a first display request sent by a terminal, where the first display request carries a target object identifier controlled by the terminal, and the first ranking data includes multiple object identifiers, data of each object identifier, and a sequence number;
a second data obtaining module, configured to, in response to that the target object identifier is associated with a first object identifier in the first sorted data, and data of a second object identifier in the first sorted data is the same as data of the first object identifier, obtain second sorted data according to the first sorted data, so that a sequence number of the first object identifier in the second sorted data is smaller than a sequence number of the second object identifier;
and the second data sending module is used for sending the second sequencing data to the terminal, and the terminal is used for displaying the second sequencing data.
12. The apparatus of claim 11, further comprising:
a third data obtaining module, configured to obtain third sorted data according to the first sorted data in response to a second display request sent by the terminal, so that a sequence number of each object identifier in the third sorted data is smaller than a target sequence number, where the second display request carries the target sequence number, and the target sequence number is used to indicate the number of object identifiers in the sorted data requested to be displayed by the terminal;
and the third data sending module is used for sending the third sequencing data to the terminal, and the terminal is used for displaying the third sequencing data.
13. The apparatus of claim 11, further comprising:
a data grouping module for dividing the data of the plurality of object identifications into a first grouping and a second grouping, each data in the first grouping being larger than each data in the second grouping;
the data sorting module is used for sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, and the data in the third group and the data in the fourth group are increased or decreased respectively;
and the combination module is used for combining the third group and the fourth group to obtain the first sequencing data.
14. The apparatus of claim 13, further comprising:
the data acquisition module is used for determining a target area identifier, and the target area identifier is used for indicating an area to which an object identifier to be sequenced belongs;
the data acquisition module is further configured to acquire data of a plurality of object identifiers matched with the target area identifier.
15. The apparatus of claim 13, further comprising:
the updating data acquisition module is used for acquiring the updated data of any one of the object identifiers;
the original data deleting module is used for deleting the original data and the original serial number of the object identifier;
a fourth data obtaining module, configured to insert the updated data into the first sorting data to obtain fourth sorting data, where the fourth sorting data includes the multiple object identifiers, data of each object identifier, and an updated sequence number.
16. The apparatus of claim 13, further comprising:
the first searching module is used for traversing from the last data to the front and searching for data larger than reference data, wherein the reference data is any data in the plurality of data;
the second searching module is used for traversing backwards from the first data and searching for data smaller than the reference data;
the exchange module is used for exchanging the data searched by each forward traversal with the data searched by the backward traversal until the data searched by the forward traversal is the same as the data searched by the backward traversal, and exchanging the same data with the reference data to obtain fifth sequencing data, wherein the fifth sequencing data comprises the plurality of object identifiers, the data of each object identifier and the serial number;
the data grouping module is configured to divide the plurality of data in the fifth sorting data into the first group and the second group according to the reference data.
17. The apparatus of claim 13, wherein the data ordering module is configured to:
dividing a plurality of data in the first packet into a first sub-packet and a second sub-packet, each data in the first sub-packet being larger than each data in the second sub-packet;
respectively sequencing data in the first sub-packet and the second sub-packet to obtain a third sub-packet corresponding to the first sub-packet and a fourth sub-packet corresponding to the second sub-packet, wherein the data in the third sub-packet and the data in the fourth sub-packet are respectively increased progressively or decreased progressively;
and combining the third sub-packet and the fourth sub-packet to obtain the third packet corresponding to the first packet.
18. The apparatus of any one of claims 11 to 17,
the data comprises attribute data and operation data, the attribute data at least comprises at least one of experience values of the virtual object, prop grades owned by the virtual object or clothing grades of the virtual object, and the operation data at least comprises at least one of clearance duration, clearance quantity or points.
19. A data presentation device, the device comprising:
a first request sending module, configured to send a first display request to a server, where the first display request carries a target object identifier controlled by a terminal, and the server is configured to obtain first ordering data in response to the first display request, and return second ordering data in response to that the target object identifier is associated with a first object identifier in the first ordering data and that data of a second object identifier in the first ordering data is the same as data of the first object identifier;
the first display module is used for displaying the second sequencing data;
the first sequencing data comprise a plurality of object identifiers, data of each object identifier and a sequence number, and the sequence number of the first object identifier in the second sequencing data is smaller than the sequence number of the second object identifier.
20. An apparatus for sorting data, the apparatus comprising:
a data grouping module for dividing data of a plurality of object identifications into a first group and a second group, each data in the first group being larger than each data in the second group;
the data sorting module is used for sorting the data in the first group and the second group respectively to obtain a third group corresponding to the first group and a fourth group corresponding to the second group, and the data in the third group and the data in the fourth group are increased or decreased respectively;
the combination module is used for combining the third group and the fourth group to obtain first sequencing data, the first sequencing data comprise the object identifiers, the data of each object identifier and the serial numbers, the first sequencing data are used for displaying the sequencing data on a terminal, and the displaying process comprises the following steps: responding to a first display request sent by the terminal, and acquiring the first sequencing data, wherein the first display request carries a target object identifier controlled by the terminal; in response to that the target object identifier is associated with a first object identifier in the first sorting data and data of a second object identifier in the first sorting data is the same as the data of the first object identifier, acquiring second sorting data according to the first sorting data, so that a sequence number of the first object identifier in the second sorting data is smaller than a sequence number of the second object identifier; and sending the second sorting data to the terminal, wherein the terminal is used for displaying the second sorting data.
21. A computer device comprising a processor and a memory, wherein at least one instruction is stored in the memory, and wherein the at least one instruction is loaded and executed by the processor to implement the operations performed in the data presentation method according to any one of claims 1 to 8, or to implement the operations performed in the data presentation method according to claim 9, or to implement the operations performed in the data sorting method according to claim 10.
22. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement operations performed in a data presentation method as claimed in any one of claims 1 to 8, or to implement operations performed in a data presentation method as claimed in claim 9, or to implement operations performed in a data sorting method as claimed in claim 10.
CN202010603269.4A 2020-06-29 2020-06-29 Data display method, data sorting method, device, equipment and medium Active CN111651693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010603269.4A CN111651693B (en) 2020-06-29 2020-06-29 Data display method, data sorting method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010603269.4A CN111651693B (en) 2020-06-29 2020-06-29 Data display method, data sorting method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111651693A CN111651693A (en) 2020-09-11
CN111651693B true CN111651693B (en) 2023-03-28

Family

ID=72348279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010603269.4A Active CN111651693B (en) 2020-06-29 2020-06-29 Data display method, data sorting method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111651693B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095433B (en) * 2021-04-27 2023-06-23 北京石油化工学院 Training method for intrusion detection network structure model
CN113688298A (en) * 2021-08-24 2021-11-23 北京房江湖科技有限公司 Data presentation method and storage medium
CN114416259A (en) * 2022-01-20 2022-04-29 北京字跳网络技术有限公司 Method, device, equipment and storage medium for acquiring virtual resources

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510215A (en) * 2009-03-20 2009-08-19 炬力集成电路设计有限公司 Data processing method and system in computer system
CN104063378A (en) * 2013-03-18 2014-09-24 深圳市金阶网科技有限公司 Method, device and system for ranking and eliminating for network ranking list
CN108452528A (en) * 2018-03-29 2018-08-28 咪咕互动娱乐有限公司 A kind of method for exhibiting data, device and computer readable storage medium
CN109670078A (en) * 2018-12-21 2019-04-23 深圳创维数字技术有限公司 A kind of method, apparatus, equipment and the storage medium of determining video display sequence
CN109766497A (en) * 2019-01-22 2019-05-17 网易(杭州)网络有限公司 Ranking list generation method and device, storage medium, electronic equipment
CN110523084A (en) * 2019-08-30 2019-12-03 腾讯科技(深圳)有限公司 Ranking list methods of exhibiting, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140236687A1 (en) * 2013-02-15 2014-08-21 G2Labs, Inc. Contribution system, method and device for incentivizing contribution of information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510215A (en) * 2009-03-20 2009-08-19 炬力集成电路设计有限公司 Data processing method and system in computer system
CN104063378A (en) * 2013-03-18 2014-09-24 深圳市金阶网科技有限公司 Method, device and system for ranking and eliminating for network ranking list
CN108452528A (en) * 2018-03-29 2018-08-28 咪咕互动娱乐有限公司 A kind of method for exhibiting data, device and computer readable storage medium
CN109670078A (en) * 2018-12-21 2019-04-23 深圳创维数字技术有限公司 A kind of method, apparatus, equipment and the storage medium of determining video display sequence
CN109766497A (en) * 2019-01-22 2019-05-17 网易(杭州)网络有限公司 Ranking list generation method and device, storage medium, electronic equipment
CN110523084A (en) * 2019-08-30 2019-12-03 腾讯科技(深圳)有限公司 Ranking list methods of exhibiting, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈细钿等.线上游戏评选之模糊多属性决策.《管理科学研究》.2007,第4卷 (第1 期),第57-73页. *

Also Published As

Publication number Publication date
CN111651693A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN109614171B (en) Virtual item transfer method and device, electronic equipment and computer storage medium
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN108063981B (en) Method and device for setting attributes of live broadcast room
CN111651693B (en) Data display method, data sorting method, device, equipment and medium
CN109168073B (en) Method and device for displaying cover of live broadcast room
CN111701238A (en) Virtual picture volume display method, device, equipment and storage medium
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
CN111569435B (en) Ranking list generation method, system, server and storage medium
CN111711838A (en) Video switching method, device, terminal, server and storage medium
CN113032587B (en) Multimedia information recommendation method, system, device, terminal and server
CN111068323B (en) Intelligent speed detection method, intelligent speed detection device, computer equipment and storage medium
CN111589116A (en) Method, device, terminal and storage medium for displaying function options
CN111246231B (en) Live broadcast management method and device, server and computer readable storage medium
CN112559795A (en) Song playing method, song recommending method, device and system
CN110149408B (en) Service data display method and device, terminal and server
CN111782950A (en) Sample data set acquisition method, device, equipment and storage medium
CN111563201A (en) Content pushing method, device, server and storage medium
CN112957732B (en) Searching method, device, terminal and storage medium
CN113144595B (en) Virtual road generation method, device, terminal and storage medium
CN112717393B (en) Virtual object display method, device, equipment and storage medium in virtual scene
CN112188268B (en) Virtual scene display method, virtual scene introduction video generation method and device
CN114299201A (en) Animation frame display method, device, equipment and storage medium
CN109618018B (en) User head portrait display method, device, terminal, server and storage medium
CN112364244A (en) Multimedia data recommendation method, device, server and storage medium
CN113763932A (en) Voice processing method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant