Account matching method and device, storage medium and electronic equipment

By combining the grouping operation of local and global optimal solutions in game account matching, the problem of low matching efficiency caused by greedy algorithms is solved and a more efficient account matching effect is achieved.

CN118576979AInactive Publication Date: 2024-09-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310248905.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, during the game account matching process, the greedy algorithm causes it to easily miss the optimal solution when the number of game accounts is small, resulting in low account matching efficiency and failure to successfully match some accounts.

Method used

By obtaining the target account, perform the grouping operation of the local optimal solution and the global optimal solution to ensure that the account grouping meets the preset parameter conditions and achieve account matching.

Benefits of technology

It improves the quality and efficiency of account matching, avoids matching failures due to local optimal solutions, and optimizes user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118576979A
    Figure CN118576979A
Patent Text Reader

Abstract

The invention discloses an account matching method and device, a storage medium and electronic equipment. The method comprises the steps of obtaining a target account from a to-be-matched account set, executing a first grouping operation on a first account set to obtain a first account group and a second account group, and executing a second grouping operation on the first account set under the condition that the first account group and the second account group do not meet a preset parameter condition, and obtaining a third account group and a fourth account group, and matching each account in the first account set according to the third account group and the fourth account group under the condition that the third account group and the fourth account group meet preset parameter conditions. According to the invention, the technical problem of low account matching efficiency is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to an account matching method and device, a storage medium, and an electronic device. Background Art

[0002] At present, in scenarios where account matching is required, accounts are generally divided into multiple groups. Taking game applications as an example, the game accounts being matched can be divided into two groups according to their capabilities during the matching process. To ensure fairness of the game, game accounts in different groups in the same game should have similar capabilities. In related technologies, a near-optimal solution that meets the requirements is generally found through a greedy algorithm. However, when the number of game accounts being matched is small, the greedy algorithm with a fixed process will calculate the same grouping result each time, which may always miss the optimal solution, causing some game accounts to fail to match successfully, resulting in a technical problem of low account matching efficiency.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide an account matching method and device, a storage medium, and an electronic device to at least solve the technical problem of low account matching efficiency.

[0005] According to one aspect of an embodiment of the present application, an account matching method is provided, comprising: acquiring a target account from a to-be-matched account set, wherein the target account is used to determine a first account set that is allowed to match the target account, the first account set including the target account; performing a first grouping operation on the first account set to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set; when the first account group and the second account group do not meet a preset parameter condition, performing a second grouping operation on the first account set to obtain a third account group and a fourth account group, wherein the third account group and the fourth account group are global optimal solutions for grouping the first account set; and when the third account group and the fourth account group meet the preset parameter condition, matching each account in the first account set according to the third account group and the fourth account group.

[0006] According to another aspect of an embodiment of the present application, an account matching device is provided, comprising: an acquisition module, configured to acquire a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts that are allowed to match the target account, and the first set of accounts includes the target account; a first grouping module, configured to perform a first grouping operation on the first set of accounts to obtain a first account grouping and a second account grouping, wherein the first account grouping and the second account grouping are local optimal solutions for grouping the first set of accounts; a second grouping module, configured to perform a second grouping operation on the first set of accounts to obtain a third account grouping and a fourth account grouping when the first account grouping and the second account grouping do not meet a preset parameter condition, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first set of accounts; and a matching module, configured to match each account in the first set of accounts according to the third account grouping and the fourth account grouping when the third account grouping and the fourth account grouping meet the preset parameter condition.

[0007] Optionally, the device is used to perform a first grouping operation on the first account set to obtain a first account group and a second account group in the following manner: obtain a first matching parameter set composed of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; sort the accounts in the first account set according to the first matching parameter set to obtain a target account set; and group the target account set according to the values ​​of the matching parameters to obtain the first account group and the second account group.

[0008] Optionally, the apparatus is configured to group the target account set according to the value of the matching parameter in the following manner to obtain the first account group and the second account group: group the accounts in the target account set in sequence in the following manner, wherein the account grouped each time is regarded as the current account: obtain the account with the largest matching parameter value from the target account set as the current account, wherein the target account set is a set of accounts arranged in descending order according to the value of the matching parameter; determine the number of first accounts in the first account group that have not been grouped and the number of second accounts in the second account group that have not been grouped; if the number of the first accounts is less than or equal to the number of the second accounts, group the current account into the first account group; if the number of the first accounts is greater than the number of the second accounts, group the current account into the second account group; if the current account has been grouped, delete the current account from the target account set, and adjust the number of the first accounts or the number of the second accounts until all accounts in the target account set have been grouped.

[0009] Optionally, the device is used to perform a first grouping operation on the first account set to obtain a first account group and a second account group in the following manner: obtain a second matching parameter set composed of matching parameters of each team in the first account set, wherein the matching parameters in the second matching parameter set correspond one-to-one to the teams in the first account set, and one team includes at least one account; sort the teams in the first account set according to the second matching parameter set to obtain a target team set; group the target team set according to the number of accounts of each team and the value of the matching parameter to obtain the first account group and the second account group.

[0010] Optionally, the device is used to group the target team set according to the number of accounts of each team and the value of the matching parameter in the following manner to obtain the first account group and the second account group: group the teams in the target team set in sequence in the following manner, wherein the team grouped each time is regarded as the current team: obtain the team with the largest number of accounts from the target team set as the current team, wherein the target team set is a team set arranged in descending order according to the number of accounts of each team, and when the teams with the same number of accounts include multiple teams, the multiple teams are arranged in descending order according to the value of the matching parameter; determine the number of first teams in the first account group that have not been grouped and the number of second teams in the second account group that have not been grouped; when the number of the first teams is less than or equal to the number of the second teams, group the current team into the first account group; when the number of the first teams is greater than the number of the second teams, group the current team into the second account group; when the current team has been grouped, delete the current team from the target team set, and adjust the number of the first teams or the number of the second teams until all teams in the target team set have been grouped.

[0011] Optionally, the device is further used to: after obtaining the target account from the set of accounts to be matched, obtain a first team from the set of accounts to be matched according to the target account, wherein the matching parameters of the first team and the matching parameters of the target account satisfy a first matching condition; determine a second team according to the first team, wherein the number of accounts of the first team is the same as the number of accounts of the second team, the number of accounts of the first team is less than or equal to the number of accounts of the first account group, and the matching parameters of the second team and the matching parameters of the target account satisfy the first matching condition; determine the first account set according to the first team and the second team, wherein, in the case where the total number of accounts of the first team and the second team is less than the first account set, the first account set further includes a supplementary account whose matching parameters and the matching parameters of the target account satisfy the first matching condition, and the supplementary account is used to form the first account set together with the first team and the second team.

[0012] Optionally, the apparatus is configured to perform a second grouping operation on the first account set to obtain a third account group and a fourth account group when the first account group and the second account group do not satisfy a preset parameter condition in the following manner: when a difference between group matching parameters of the first account group and the second account group is less than a first preset threshold, determine that the first account group and the second account group satisfy the preset parameter condition, wherein the group matching parameter represents the sum of matching parameters of each account in one account group; and when the first account group and the second account group satisfy the preset parameter condition, match each account in the first account set according to the first account group and the second account group.

[0013] Optionally, the apparatus is configured to perform a second grouping operation on the first account set to obtain a third account group and a fourth account group in the following manner when the first account group and the second account group do not satisfy a preset parameter condition: when a difference between group matching parameters of the first account group and the second account group is greater than or equal to a first preset threshold, determine that the first account group and the second account group do not satisfy the preset parameter condition; when the first account group and the second account group do not satisfy the preset parameter condition, determine that the target account fails to match, and increase the number of failed matches of the target account, wherein the number of failed matches indicates the number of rounds in which the target account fails to match, and the number of matches of the target account in each round of matching is a preset number threshold; when the number of failed matches is greater than or equal to a second preset threshold, perform a second grouping operation on the first account set to obtain the third account group and the fourth account group.

[0014] Optionally, the device is further configured to: generate a first random number within a first interval when the number of failed matches is greater than or equal to a second preset threshold; perform a second grouping operation on the first account set to obtain the third account group and the fourth account group when the first random number is less than or equal to a third preset threshold; or generate a second random number within a second interval when the number of failed matches is greater than the second preset threshold and greater than or equal to a fourth preset threshold, wherein the fourth preset threshold is greater than the second preset threshold, and the second interval is an interval obtained by reducing the upper limit of the first interval by a target value; perform a second grouping operation on the first account set to obtain the third account group and the fourth account group when the second random number is less than or equal to the third preset threshold.

[0015] Optionally, the apparatus is configured to perform a second grouping operation on the first account set to obtain the third account group and the fourth account group in the following manner: obtaining a first matching parameter set consisting of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; exhaustively enumerating each account in the first account set according to the first matching parameter set to obtain a set of grouping schemes, wherein one of the grouping schemes corresponds to a difference in group matching parameters, the difference in group matching parameters represents a difference in group matching parameters of different account groups in one of the grouping schemes, and the group matching parameter represents a sum of matching parameters of each account in one account group; determining the third account group and the fourth account group according to a target grouping scheme, wherein the target grouping scheme is a grouping scheme with the smallest difference in group matching parameters in the set of grouping schemes.

[0016] Optionally, the apparatus is configured to determine the third account group and the fourth account group according to the target grouping scheme in the following manner: when a difference between group matching parameters corresponding to the target grouping scheme is less than a first preset threshold, determine that the fourth account group and the fourth account group satisfy the preset parameter condition; when the third account group and the fourth account group satisfy the preset parameter condition, determine the third account group and the fourth account group.

[0017] Optionally, the device is further used to: obtain a target account from the set of accounts to be matched; determine a target matching parameter of the target account based on the target account, wherein the target matching parameter is determined by a current virtual evaluation parameter and a virtual fluctuation parameter of the target account, the virtual evaluation parameter is used to evaluate the capability of the target account, and the virtual fluctuation parameter is used to evaluate the fluctuation range of the capability of the target account; determine the first account set based on the target matching parameter, wherein the matching parameters corresponding to the accounts in the first account set and the target matching parameters satisfy a second matching condition.

[0018] Optionally, the device is also used to: determine the current virtual evaluation parameters and virtual fluctuation parameters of each account in the set of accounts to be matched in the following manner, wherein the accounts for which the virtual evaluation parameters and the virtual fluctuation parameters are to be determined are regarded as participating accounts: when a game is over, obtain a group of winning accounts and a group of losing accounts participating in the game, wherein the group of winning accounts are the participating accounts that won the game, and the group of losing accounts are the participating accounts that lost the game; determine the sum of the first virtual evaluation parameters corresponding to the group of winning accounts and the sum of the second virtual evaluation parameters corresponding to the group of losing accounts, wherein the sum of the first virtual evaluation parameters is the sum of the initial virtual evaluation parameters of the group of winning accounts, and the sum of the second virtual evaluation parameters is the sum of the initial virtual evaluation parameters of the group of losing accounts, and the initial virtual evaluation parameters are the sum of the participating accounts before the start of the game. a virtual evaluation parameter corresponding to an account; determining the difference between the sum of the first virtual evaluation parameter and the sum of the second virtual evaluation parameter as a target virtual evaluation parameter difference; determining a target fluctuation parameter corresponding to the game according to the initial virtual fluctuation parameter of each account in the participating accounts, wherein the initial virtual fluctuation parameter is the virtual fluctuation parameter corresponding to the participating account before the start of the game; determining a first calculation parameter according to the target virtual evaluation parameter difference and the target fluctuation parameter; determining a second calculation parameter and a third calculation parameter using the first calculation parameter, wherein the second calculation parameter is determined by a Gaussian distribution parameter and a similar distribution parameter corresponding to the first calculation parameter, and the third calculation parameter is obtained by combining the first calculation parameter and the second calculation parameter; determining the current virtual evaluation parameter and virtual fluctuation parameter of each account in the participating accounts according to the first calculation parameter, the second calculation parameter and the third calculation parameter.

[0019] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned account matching method when running.

[0020] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above account matching method.

[0021] According to another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the account matching method through the computer program.

[0022] In an embodiment of the present application, a target account is obtained from a to-be-matched account set, wherein the target account is used to determine a first account set that is allowed to match the target account, the first account set includes the target account, a first grouping operation is performed on the first account set to obtain a first account grouping and a second account grouping, wherein the first account grouping and the second account grouping are local optimal solutions for grouping the first account set, and when the first account grouping and the second account grouping do not meet a preset parameter condition, a second grouping operation is performed on the first account set to obtain a third account grouping and a fourth account grouping, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set, and when the third account grouping and the fourth account grouping meet a preset parameter condition, the first account grouping and the fourth account grouping are matched according to the third account grouping and the fourth account grouping. In the method of matching each account in an account set, a target account is first obtained as an anchor account, and then a first account set that is allowed to match the target account is searched, and the first account set is grouped by a first grouping operation that can find a local optimal solution. When the first account grouping and the second account grouping obtained cannot meet the preset parameter conditions, the first account set is grouped by a second grouping operation that can find a global optimal solution, and a third account grouping and a fourth account grouping that can meet the preset parameter conditions are obtained, thereby breaking the infinite loop of the fixed process of finding the local optimal solution and improving the matching quality of some accounts, thereby achieving the technical effect of avoiding the long-term inability to match some accounts due to the fixed process of finding the local optimal solution, optimizing the account matching efficiency, and thus solving the technical problem of low account matching efficiency.

[0023] In addition, by adding a random number mechanism, we can avoid over-reliance on the calculation method of finding the global optimal solution. Instead, we can judge whether to find the global optimal solution with a certain probability, which reduces resource overhead and optimizes the user experience.

[0024] On the other hand, by evaluating the capabilities of each account and making adaptive adjustments based on the fluctuation range of the capabilities of each account, the capabilities of each account can change more smoothly, the capability evaluation can be more accurate, and the account matching results can be more in line with expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0026] Figure 1 is a schematic diagram of an application environment of an optional account matching method according to an embodiment of the present application;

[0027] Figure 2 is a flowchart of an optional account matching method according to an embodiment of the present application;

[0028] Figure 3 is a schematic diagram of an optional account matching method according to an embodiment of the present application;

[0029] Figure 4 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0030] Figure 5 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0031] Figure 6 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0032] Figure 7 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0033] Figure 8 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0034] Fig. 9 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0035] Fig.10 is a schematic diagram of another optional account matching method according to an embodiment of the present application;

[0036] Fig.11 is a schematic structural diagram of an optional account matching device according to an embodiment of the present application;

[0037] Fig.12 is a schematic diagram of the structure of an optional account matching product according to an embodiment of the present application;

[0038] Fig.13 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretation:

[0042] MOBA (Multiplayer Online Battle Arena) game matching: In MOBA games, when players are looking for a match, the function of bringing multiple players together to play a game is called matching.

[0043] Matching camps: In MOBA games, each game has two opposing camps, red and blue, with equal numbers of people on both sides.

[0044] Elo: A rating that measures a player's combat effectiveness.

[0045] Elok: The fluctuation range of the player's Elo value.

[0046] Game Server: A game process that provides various services to game players.

[0047] Matchmaking service: The game process that provides matching services for players.

[0048] Matching: When the matching server successfully finds multiple players with similar combat power and can divide these players into red and blue camps of equal strength, a game can be formed. This event is called matching.

[0049] Team: In MOBA games, players can usually form teams to participate in the game, for example, 2-person team, 3-person team, 4-person team, 5-person team. It should be noted that in the match, a single player is also considered a team.

[0050] Anchor team: The matching logic of the matching server takes a team to be matched as the anchor team, and then looks for other players with similar combat power for this anchor team to form a game. Therefore, when the matching server calculates the red and blue sides, there must be an anchor team among the 10 players participating in the division.

[0051] TeamElo: When a team participates in a match, the sum of the Elo of all players in the team is called the TeamElo of the team.

[0052] CampElo: The result of the match is the formation of two opposing camps, red and blue. Each camp contains 5 players. The sum of the Elo values ​​of the 5 players is the CampElo of the camp.

[0053] The present application is described below in conjunction with embodiments:

[0054] According to one aspect of an embodiment of the present application, an account matching method is provided. Optionally, in this embodiment, the account matching method can be applied to: Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal 103 via a network, and can be used to provide services for the terminal device or an application installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, for example, a local area network, a metropolitan area network, and a wide area network; the wireless network includes, for example, Bluetooth, WIFI, and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal, and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.

[0055] Combination Figure 1 As shown, the above account matching method can be implemented in the terminal device 103 through the following steps:

[0056] S1, obtaining a target account from a set of accounts to be matched on the terminal device 103, wherein the target account is used to determine a first set of accounts allowed to match the target account, and the first set of accounts includes the target account;

[0057] S2, performing a first grouping operation on the first account set on the terminal device 103 to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set;

[0058] S3, when the first account grouping and the second account grouping do not meet the preset parameter conditions, performing a second grouping operation on the first account set on the terminal device 103 to obtain a third account grouping and a fourth account grouping, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set;

[0059] S4, when the third account group and the fourth account group meet the preset parameter conditions, match each account in the first account set according to the third account group and the fourth account group on the terminal device 103.

[0060] Optionally, in this embodiment, the above account matching method can also be implemented by a server, for example, Figure 1 It is implemented in the server 101 shown; or it is implemented by the terminal device and the server together.

[0061] The above is only an example and is not specifically limited in this embodiment.

[0062] Optionally, as an optional implementation, as Figure 2 As shown, the above account matching method includes:

[0063] S202, obtaining a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts allowed to match the target account, and the first set of accounts includes the target account;

[0064] S204, performing a first grouping operation on the first account set to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set;

[0065] S206, when the first account grouping and the second account grouping do not satisfy the preset parameter condition, perform a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set;

[0066] S208: When the third account group and the fourth account group meet the preset parameter conditions, match each account in the first account set according to the third account group and the fourth account group.

[0067] Optionally, in this embodiment, the above account matching method can be applied to various applications, such as game applications, instant messaging applications, video applications, etc., wherein, taking the target application as a game application as an example, the above game application can be a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, referred to as MOBA). Without specific limitation here, the above game application can include but is not limited to shooting applications, role-playing applications, real-time strategy applications, etc. The above shooting application can include but is not limited to first-person shooting applications, third-person shooting applications, and shooting applications that can switch between first-person and third-person. The above target application can also include but is not limited to at least one of the following: two-dimensional (Two Dimension, referred to as 2D) game applications, three-dimensional (Three Dimension, referred to as 3D) game applications, virtual reality (Virtual Reality, referred to as VR) game applications, augmented reality (Augmented Reality, referred to as AR) game applications, mixed reality (Mixed Reality, referred to as MR) game applications. The above is just an example, and this embodiment does not make any limitation to this.

[0068] Optionally, in this embodiment, the above-mentioned set of accounts to be matched may include but is not limited to a set of accounts currently in a matching state. For example, taking the target application as a game application, when the user logs in to the game application, the user can start matching a game through touch operation. When the user starts the matching process of a game, the account controlled by the user is regarded as an account in the above-mentioned set of accounts to be matched.

[0069] For example, Figure 3 is a schematic diagram of an optional account matching method according to an embodiment of the present application, such as Figure 3 As shown, after the user logs in to the game application, he can start matching a game by performing a touch operation on the "Start Matching" touch object. During the matching process, relevant content "Matching in Progress" can be displayed on the user interface to indicate that the account matching is being completed through the account matching method described in this application.

[0070] Optionally, in this embodiment, the target account may include but is not limited to an account selected from the set of accounts to be matched, and the selection method may include but is not limited to random selection, traversal selection, etc. The first account set allowed to match the target account may be understood as a set of accounts that can match the target account and can play a game, and the first account set may include but is not limited to accounts related to some capabilities of the target account.

[0071] In an exemplary embodiment, the target account has an ability value for evaluating its gaming ability, and the first account set is accounts in the set of accounts to be matched whose ability values ​​are close to the target account, or the first account set is accounts constituting a team in the set of accounts to be matched whose ability values ​​are close to the target account.

[0072] For example, Figure 4 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Figure 4 As shown, taking the account that logs into the game application as player A as an example, the above account matching method can match accounts with ability values ​​close to player A based on the ability value of player A, such as player B, player C, player D, etc. The above account matching method can also match accounts with ability values ​​close to the team where player A is based on the ability value of the team where player A is. For example, if player A and player B form team M, the average ability value of team M is obtained, and then other teams or other players with ability values ​​close to the average are matched.

[0073] Optionally, in this embodiment, the above-mentioned first grouping operation may include but is not limited to a grouping operation for determining a local optimal solution for grouping, for example, may include but is not limited to a grouping operation implemented based on a combination of one or more of a greedy algorithm, a heuristic algorithm, a local algorithm, etc.

[0074] In an exemplary embodiment, the first grouping operation aims to determine a near-optimal solution of the grouping result, that is, grouping the first account set into a first account group and a second account group is a local optimal solution (also called a near-optimal solution) of the grouping situation.

[0075] It should be noted that, compared with the second grouping operation, the first grouping operation may occupy fewer computing resources and take less computing time.

[0076] Optionally, in this embodiment, the number of people in the first account group and the second account group may be the same or different, depending on the requirements of different applications. After the first grouping operation is performed, the target account may belong to the first account group or the second account group.

[0077] For example, Figure 5 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Figure 5 As shown, performing the first grouping operation on the first account set to obtain the first account group and the second account group may include but is not limited to the following steps:

[0078] S1, obtaining matching parameters corresponding to each account in the first account set or obtaining team matching parameters corresponding to each team in the first account set, wherein the team matching parameters of each team are obtained by summing up the matching parameters of all accounts in the team;

[0079] S2, sorting each account or team, the rule is that the team with more members is before the team with less members, and for teams with the same number of members, the team with lower team matching parameters is before the team with higher team matching parameters;

[0080] S3, grouping each team in turn according to the ranking, and the grouping method is as follows:

[0081] S3-1, obtain the number of people in the current team to be grouped. If the number of teams with the same number of people in either the first account group or the second account group reaches half, the team will be directly grouped to the other side. For example, there are 4 teams of 2 people participating in the grouping. When grouping one of the 2-person teams, it is found that there are already 2 teams of 2 people in the first account group. In this case, the new 2-person team must be grouped into the second account group;

[0082] S3-2, comparing the sum of the team matching parameters of all teams in the first account group and the second account group. If the sum of the team matching parameters of all teams in the first account group is smaller, then adding the current team to be grouped to the first account group; otherwise, adding it to the second account group.

[0083] Optionally, in this embodiment, the preset parameter conditions may include but are not limited to one or more combinations of the following: the number of people in the first account group and the second account group is different; the difference in the sum of the matching parameters of the first account group and the second account group exceeds a preset matching parameter threshold.

[0084] That is, the failure of the first account group and the second account group to satisfy the preset parameter condition can be understood as the grouping conditions corresponding to the first account group and the second account group cannot achieve fair account matching, and thus subsequent operations cannot be performed, for example, prohibiting the first account group and the second account group from participating in a game or a social activity together.

[0085] Optionally, in this embodiment, the above-mentioned second grouping operation may include but is not limited to a grouping operation for determining a global optimal solution for grouping, for example, it may include but is not limited to a grouping operation implemented based on a combination of one or more of an exhaustive algorithm, a Lagrangian method, a linear programming method, etc.

[0086] In an exemplary embodiment, the second grouping operation aims to determine the optimal solution of the grouping result, that is, grouping the first account set into the third account group and the fourth account group is the global optimal solution (also called the optimal solution) of the grouping situation.

[0087] It should be noted that, compared with the first grouping operation, the second grouping operation can make the grouping results more detailed and accurate, and the success rate of group matching is higher.

[0088] Optionally, in this embodiment, the number of people in the third account group and the fourth account group may be the same or different, depending on the requirements of different applications. After the second grouping operation, the target account may belong to the third account group or the fourth account group.

[0089] Optionally, in this embodiment, the third account group and the fourth account group satisfying the preset parameter conditions can be understood as the grouping conditions corresponding to the third account group and the fourth account group can achieve fair account matching, thereby allowing subsequent operations to be performed, for example, allowing the third account group and the fourth account group to participate in a game or a social activity together.

[0090] For example, Figure 6 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Figure 6 As shown, the above account matching method may include but is not limited to the following steps:

[0091] S1, obtain the target account;

[0092] S2, using the target account to determine a first set of accounts with similar account strengths;

[0093] S3, grouping the accounts in the first account set using a greedy algorithm to obtain a local optimal solution for the grouping;

[0094] S4, determining whether the first account group and the second account group meet the preset parameter conditions, if the determination result is no, executing step S5, if the determination result is yes, executing step S8;

[0095] S5, determining whether the first account group and the second account group meet the preset parameter conditions, if the determination result is yes, executing step S6, if the determination result is no, executing step S8;

[0096] S6, perform a probability judgment to determine whether the low-probability event is successfully triggered. If the judgment result is yes, execute step S7; if the judgment result is no, execute step S8;

[0097] S7, exhaustively find out a global optimal solution for grouping the first account set (for example, the third account group and the fourth account group with the closest capability parameters) as the grouping result;

[0098] S8, grouping ends.

[0099] According to this embodiment, a target account is obtained from a to-be-matched account set, wherein the target account is used to determine a first account set that is allowed to match the target account, and the first account set includes the target account. A first grouping operation is performed on the first account set to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set. When the first account group and the second account group do not meet the preset parameter conditions, a second grouping operation is performed on the first account set to obtain a third account group and a fourth account group, wherein the third account group and the fourth account group are global optimal solutions for grouping the first account set. When the third account group and the fourth account group meet the preset parameter conditions, the first account set is matched according to the third account group and the fourth account group. In the method of matching each account in an account set, a target account is first obtained as an anchor account, and then a first account set that is allowed to match the target account is searched, and the first account set is grouped by a first grouping operation that can find a local optimal solution. When the first account grouping and the second account grouping obtained cannot meet the preset parameter conditions, the first account set is grouped by a second grouping operation that can find a global optimal solution to obtain a third account grouping and a fourth account grouping that can meet the preset parameter conditions, thereby breaking the infinite loop of a fixed process of finding a local optimal solution and improving the matching quality of some accounts, thereby achieving the technical effect of avoiding the long-term inability to match some accounts due to the fixed process of finding a local optimal solution, optimizing the account matching efficiency, and thus solving the technical problem of low account matching efficiency.

[0100] As an optional solution, performing a first grouping operation on the first account set to obtain a first account group and a second account group includes:

[0101] S1, obtaining a first matching parameter set consisting of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set;

[0102] S2, sorting each account in the first account set according to the first matching parameter set to obtain a target account set;

[0103] S3, grouping the target account set according to the value of the matching parameter to obtain a first account group and a second account group.

[0104] Optionally, in this embodiment, the above matching parameters can be understood as matching parameters calculated for each account, which may include but are not limited to virtual combat power parameters, virtual level parameters and other parameters used to describe account capabilities. The above first matching parameter set is a matching parameter set composed of the matching parameters of the above-mentioned each account.

[0105] It should be noted that the above-mentioned sorting of the accounts may include but is not limited to sorting in descending or ascending order according to the value of the above-mentioned matching parameter. That is, the above-mentioned target account set is the sorted first account set, and the accounts in the target account set are the same as the accounts in the above-mentioned first account set, but the order of arrangement is different.

[0106] In an exemplary embodiment, the above-mentioned grouping of the target account set according to the value of the matching parameter can be understood as grouping from large to small or from small to large. For example, the accounts in the target account set are grouped into different account groups from large to small to determine the first account group and the second account group.

[0107] As an optional solution, the above step S3 includes: grouping the accounts in the target account set in sequence in the following manner, wherein the account grouped each time is regarded as the current account: obtaining the account with the largest matching parameter value from the target account set as the current account, wherein the target account set is a set of accounts arranged in descending order according to the matching parameter values; determining the number of first accounts in the first account group that has not been grouped and the number of second accounts in the second account group that has not been grouped; if the number of first accounts is less than or equal to the number of second accounts, grouping the current account into the first account group; if the number of first accounts is greater than the number of second accounts, grouping the current account into the second account group; if the current account has been grouped, deleting the current account from the target account set, and adjusting the number of first accounts or the number of second accounts until all accounts in the target account set have been grouped.

[0108] Optionally, in this embodiment, the above-mentioned obtaining the account with the largest matching parameter value from the target account set as the current account can be understood as selecting from the above-mentioned target account set one by one, and each time the account selected is the account with the largest matching parameter value in the target account set. After each selection, the selected account is placed in an account group with a smaller number, and the selected account is deleted from the target account set.

[0109] For example, Figure 7 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Figure 7 As shown, the above step S3 may include but is not limited to the following steps, wherein the target account set includes account A to account F:

[0110] S702, the account with the largest matching parameter value in the target account set is account A, then account A is first added to camp 1 (corresponding to the first account grouping mentioned above);

[0111] S704, after account A is taken out from the target account set, the account with the largest matching parameter value from the remaining accounts in the target account set is account B. Since there is one account in camp 1 and no account in camp 2, account B is added to camp 2 (corresponding to the second account grouping mentioned above);

[0112] S706, after account B is taken out from the target account set, the account with the largest matching parameter value from the remaining accounts in the target account set is account C. Since there is one account in camp 1 and one account in camp 2, account C is added to camp 1;

[0113] S708, after account C is taken out from the target account set, the account with the largest matching parameter value from the remaining accounts in the target account set is account D. Since there are 2 accounts in camp 1 and 1 account in camp 2, account D is added to camp 2;

[0114] S710, after account D is taken out from the target account set, the account with the largest matching parameter value from the remaining accounts in the target account set is account E. Since there are 2 accounts in camp 1 and 2 accounts in camp 2, account E is added to camp 1;

[0115] S712, after account E is taken out from the target account set, only account F is left from the remaining accounts in the target account set. Since there are 3 accounts in camp 1 and 2 accounts in camp 2, account F is added to camp 2.

[0116] Finally, there are 3 accounts in Faction 1 and 3 accounts in Faction 2, and a 3-on-3 game can be started.

[0117] As an optional solution, performing the first grouping operation on the first account set to obtain the first account group and the second account group includes:

[0118] S1, obtaining a second matching parameter set consisting of matching parameters of each team in the first account set, wherein the matching parameters in the second matching parameter set correspond one-to-one to the teams in the first account set, and one team includes at least one account;

[0119] S2, sorting the teams in the first account set according to the second matching parameter set to obtain a target team set;

[0120] S3, grouping the target team set according to the number of accounts of each team and the value of the matching parameter to obtain a first account group and a second account group.

[0121] Optionally, in this embodiment, the above-mentioned matching parameters can be understood as matching parameters calculated for each team, which may include but are not limited to virtual combat power parameters, virtual level parameters and other parameters used to describe the team capabilities. The above-mentioned second matching parameter set is a matching parameter set composed of the matching parameters of the above-mentioned teams.

[0122] Optionally, in this embodiment, the above-mentioned sorting of the teams may include but is not limited to sorting in descending or ascending order according to the value of the above-mentioned matching parameter. That is, the above-mentioned target team set is the sorted first account set, and the teams in the target team set are the same as the teams in the above-mentioned first team set, but the order of arrangement is different.

[0123] It should be noted that the above-mentioned grouping of the target team set according to the values ​​of the matching parameters can be understood as grouping from large to small or from small to large. For example, the teams in the target team set are grouped into different account groups from large to small in order to determine the first account group and the second account group.

[0124] As an optional solution, the above-mentioned step S3 includes: grouping the teams in the target team set in sequence in the following manner, wherein the team grouped each time is regarded as the current team: obtaining the team with the largest number of accounts from the target team set as the current team, wherein the target team set is a team set arranged in descending order according to the number of accounts of each team, and when the teams with the same number of accounts include multiple teams, the multiple teams are arranged in descending order according to the value of the matching parameter; determining the number of first teams in the first account grouping that has not been completed and the number of second teams in the second account grouping that has not been completed; when the number of first teams is less than or equal to the number of second teams, grouping the current team into the first account grouping; when the number of first teams is greater than the number of second teams, grouping the current team into the second account grouping; when the current team has completed grouping, deleting the current team from the target team set, and adjusting the number of first teams or the number of second teams until all teams in the target team set have completed grouping.

[0125] Optionally, in this embodiment, the team with the largest number of accounts obtained from the target team set is taken as the current team, wherein the target team set is a set of teams arranged in descending order according to the number of accounts of each team. When the teams with the same number of accounts include multiple teams, arranging the multiple teams in descending order according to the values ​​of the matching parameters can be understood as selecting from the above-mentioned target account set one by one, and each time the team selected is the team with the largest number of accounts in the target account set. When there are multiple teams with the same number, the team with the largest value of the matching parameter among the multiple teams is selected. After each selection, the selected team is placed in a group with a smaller number of accounts, and the selected team is deleted from the target account set.

[0126] For example, Figure 8 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Figure 8 As shown, the above step S3 may include but is not limited to the following steps, wherein the target account set includes teams A to D and accounts E and F:

[0127] S702, the teams with the largest number of accounts in the target account set are team A and team B, then team A with a larger matching parameter between team A and team B is first added to camp 1 (corresponding to the first account grouping mentioned above);

[0128] S704, after team A is taken out from the target team set, team A is deleted from the target team set. Since there is one team in camp 1 and no team in camp 2, team B with the largest number of accounts among the remaining teams is added to camp 2 (corresponding to the second team grouping mentioned above);

[0129] S706, after team B is taken out from the target team set, team B is deleted from the target team set, and team C and team D with the largest number of accounts are searched from the remaining teams in the target team set, and the account with the largest matching parameter value between team C and team D is determined to be team C. Since there is one team in camp 1 and one team in camp 2, team C is added to camp 1;

[0130] S708, after team C is taken out from the target team set, team C is deleted from the target team set, and the team with the largest number of accounts is found from the remaining teams in the target team set, which is team D. Since there are 2 teams in camp 1 and 1 team in camp 2, team D is added to camp 2;

[0131] S710, after team D is taken out from the target team set, team D is deleted from the target team set, and the account with the largest matching parameter value from the remaining teams in the target team set is account E. Since there are 2 teams in camp 1 and 2 teams in camp 2, team E is added to camp 1. It should be noted that account E as a single account can independently become a team;

[0132] S712, after team E is taken out from the target team set, only account F is left from the remaining teams in the target team set. Since there are 3 teams in camp 1 and 2 teams in camp 2, account F is added to camp 2. It should be noted that account F can independently become a team as a single account.

[0133] Finally, there are 3 teams in Camp 1 and Camp 2, including 1 team of 3, 1 team of 2, and 1 team of 1, and a 6-on-6 game can start.

[0134] As an optional solution, after obtaining the target account from the set of accounts to be matched, the method further includes:

[0135] S1, obtaining a first team from a set of accounts to be matched according to a target account, wherein a matching parameter of the first team and a matching parameter of the target account satisfy a first matching condition;

[0136] S2, determining a second team based on the first team, wherein the number of accounts of the first team is the same as the number of accounts of the second team, the number of accounts of the first team is less than or equal to the number of accounts of the first account group, and the matching parameters of the second team and the matching parameters of the target account meet a first matching condition;

[0137] S3, determining a first account set according to the first team and the second team, wherein, when the total number of accounts of the first team and the second team is less than the first account set, the first account set also includes a supplementary account whose matching parameters and the matching parameters of the target account meet the first matching condition, and the supplementary account is used to form the first account set together with the first team and the second team.

[0138] Optionally, in this embodiment, the first team is a team that satisfies the first matching condition with the target account. Taking the case where the matching parameter is determined by the virtual capability parameter as an example, the difference between the average virtual capability parameter value of the first team and the virtual capability parameter value of the target account is less than a preset virtual capability parameter threshold.

[0139] It should be noted that the purpose of determining the second team based on the first team is to make the team combinations in different account groups as similar as possible. That is, when the first team consists of 5 people, the second team with 5 accounts is found from the first account set, and then the first team is grouped into the first account group, and the second team is grouped into the second account group, so that the composition types of different account groups in the final grouping result are similar.

[0140] In an exemplary embodiment, the above-mentioned supplementary accounts can be understood as accounts used to fill each account group. For example, the target application needs to divide users into two groups, each with 5 people. When the first account set includes team A (4 people), team B (4 people) and account C and account D, team A and account C are composed of the first account group, and team B and account D are composed of the second account group, wherein the above-mentioned account C and account D are the above-mentioned supplementary accounts.

[0141] As an optional solution, when the first account grouping and the second account grouping do not meet the preset parameter condition, performing a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping includes: when the difference between the group matching parameters of the first account grouping and the second account grouping is less than a first preset threshold, determining that the first account grouping and the second account grouping meet the preset parameter condition, wherein the group matching parameter represents the sum of the matching parameters of each account in one account group; and when the first account grouping and the second account grouping meet the preset parameter condition, matching each account in the first account set according to the first account grouping and the second account grouping.

[0142] Optionally, in this embodiment, the first preset threshold can be flexibly set according to the type of the target application, and the difference between the group matching parameters of the first account group and the second account group can be understood as the difference between the sum of the matching parameters of each account or each team in the first account group and the sum of the matching parameters of each account or each team in the second account group.

[0143] It should be noted that, when the first account group and the second account group meet the preset parameter conditions, matching each account in the first account set according to the first account group and the second account group can be understood as grouping the first account set into the above-mentioned first account group and second account group is relatively fair, and when the preset parameter conditions are met, a game jointly participated by the first account group and the second account group can be started.

[0144] As an optional solution, when the first account group and the second account group do not meet the preset parameter condition, a second grouping operation is performed on the first account set to obtain a third account group and a fourth account group, including: when the difference between the group matching parameters of the first account group and the second account group is greater than or equal to a first preset threshold, determining that the first account group and the second account group do not meet the preset parameter condition; when the first account group and the second account group do not meet the preset parameter condition, determining that the target account fails to match, and increasing the number of failed matches of the target account, wherein the number of failed matches indicates the rounds of failed match of the target account, and the number of matches of the target account in each round of matching is a preset number threshold; when the number of failed matches is greater than or equal to the second preset threshold, performing the second grouping operation on the first account set to obtain the third account group and the fourth account group.

[0145] Optionally, in this embodiment, the first preset threshold can be flexibly set according to the type of the target application, and the difference between the group matching parameters of the first account group and the second account group can be understood as the difference between the sum of the matching parameters of each account or each team in the first account group and the sum of the matching parameters of each account or each team in the second account group.

[0146] It should be noted that, when the first account group and the second account group do not meet the preset parameter conditions, determining that the target account fails to match and increasing the number of failed matches of the target account can be understood as grouping the first account set into the first account group and the second account group is relatively unfair, and the preset parameter conditions are not met, and a game jointly participated in by the first account group and the second account group is prohibited from being started. The above determination that the above target account fails to match may include but is not limited to increasing the number of failed matches of the above target account and reselecting a new target account from the above account set to be matched.

[0147] In an exemplary embodiment, the above account matching method matches according to a preset period, and a round of matching is performed every preset period. In each round of matching, a specific number of matches can be set, or each account in the set of accounts to be matched in the round of matching can be exhausted. In other words, a fixed number of matches can be performed in each round of matching, and a different target account can be selected each time. Each account in the set of accounts to be matched in the round can also be used as a target account for matching. If the target account fails to match in the round of matching, the number of failed matches is increased, and the target account is matched again in the next round of matching.

[0148] As an optional solution, the method further includes: generating a first random number within a first interval when the number of failed matches is greater than or equal to a second preset threshold; performing a second grouping operation on the first account set to obtain a third account group and a fourth account group when the first random number is less than or equal to a third preset threshold; or generating a second random number within a second interval when the number of failed matches is greater than the second preset threshold and greater than or equal to a fourth preset threshold, wherein the fourth preset threshold is greater than the second preset threshold, and the second interval is an interval obtained by reducing the target value by the upper limit of the first interval; performing a second grouping operation on the first account set to obtain a third account group and a fourth account group when the second random number is less than or equal to the third preset threshold.

[0149] Optionally, in this embodiment, the second preset threshold, the third preset threshold, and the fourth preset threshold are all preset by the system. The fourth preset threshold is greater than the second preset threshold, and the value range of the first interval is greater than the value range of the second interval, that is, when the number of failed matches is greater than the second preset threshold and greater than or equal to the fourth preset threshold, the value range of the first interval is reduced to obtain the second interval, so that the subsequently generated random numbers have a greater probability of being less than or equal to the third preset threshold, and then the second grouping operation is performed on the first account set to obtain the third account group and the fourth account group.

[0150] Through this embodiment, by adding a random number mechanism, it is possible to avoid over-reliance on the calculation method of finding the global optimal solution. Instead, it is possible to determine whether to find the global optimal solution with a certain probability, thereby reducing resource overhead and optimizing the user experience.

[0151] As an optional solution, performing a second grouping operation on the first account set to obtain a third account group and a fourth account group includes: obtaining a first matching parameter set composed of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; exhaustively enumerating each account in the first account set according to the first matching parameter set to obtain a set of grouping schemes, wherein one grouping scheme corresponds to a difference in group matching parameters, the difference in group matching parameters represents the difference in group matching parameters of different account groups in one grouping scheme, and the group matching parameter represents the sum of matching parameters of each account in one account group; determining the third account group and the fourth account group according to a target grouping scheme, wherein the target grouping scheme is a grouping scheme with the smallest difference in group matching parameters among a set of grouping schemes.

[0152] Optionally, in this embodiment, the above-mentioned exhaustive enumeration may include but is not limited to the exhaustive method, that is, based on the above-mentioned first matching parameter set, exhaustively obtain various grouping schemes of the above-mentioned first account set, and then determine the difference between the group matching parameters corresponding to each grouping scheme, and finally, take the grouping scheme with the smallest difference in group matching parameters as the above-mentioned target grouping scheme to determine the above-mentioned third account grouping and fourth account grouping.

[0153] As an optional solution, determining the third account group and the fourth account group according to the target grouping scheme includes: when a difference between group matching parameters corresponding to the target grouping scheme is less than a first preset threshold, determining that the third account group and the fourth account group meet a preset parameter condition; and when the third account group and the fourth account group meet the preset parameter condition, determining the third account group and the fourth account group.

[0154] Optionally, in this embodiment, the first preset threshold can be flexibly set according to the type of the target application, and the difference between the group matching parameters of the third account group and the fourth account group can be understood as the difference between the sum of the matching parameters of each account or each team in the third account group and the sum of the matching parameters of each account or each team in the fourth account group.

[0155] It should be noted that, when the third account group and the fourth account group meet the preset parameter conditions, matching each account in the first account set according to the third account group and the fourth account group can be understood as grouping the first account set into the third account group and the fourth account group is relatively fair, and when the preset parameter conditions are met, a game jointly participated by the first account group and the second account group can be started.

[0156] As an optional solution, the above method also includes: obtaining a target account from the set of accounts to be matched; determining a target matching parameter of the target account based on the target account, wherein the target matching parameter is determined by a current virtual evaluation parameter and a virtual fluctuation parameter of the target account, the virtual evaluation parameter is used to evaluate the capability of the target account, and the virtual fluctuation parameter is used to evaluate the fluctuation range of the capability of the target account; determining a first account set based on the target matching parameter, wherein the matching parameters corresponding to the accounts in the first account set and the target matching parameters satisfy a second matching condition.

[0157] Optionally, in this embodiment, the virtual evaluation parameter is used to indicate the basis for the current matching of the target account, and the virtual fluctuation parameter is used to indicate the fluctuation range of the virtual evaluation parameter within a preset time period, so as to determine a new virtual evaluation parameter after the preset time period.

[0158] As an optional solution, the method further includes: determining the current virtual evaluation parameters and virtual fluctuation parameters of each account in the set of accounts to be matched in the following manner, wherein the accounts for which the virtual evaluation parameters and virtual fluctuation parameters are to be determined are deemed to be participating accounts: when a game is over, obtaining a group of winning accounts and a group of losing accounts participating in the game, wherein a group of winning accounts are participating accounts that have won a game, and a group of losing accounts are participating accounts that have lost a game; determining the sum of the first virtual evaluation parameters corresponding to the group of winning accounts and the sum of the second virtual evaluation parameters corresponding to the group of losing accounts, wherein the sum of the first virtual evaluation parameters is the sum of the initial virtual evaluation parameters of the group of winning accounts, and the sum of the second virtual evaluation parameters is the sum of the initial virtual evaluation parameters of the group of losing accounts, and the initial virtual evaluation parameters are the sum of the initial virtual evaluation parameters at the beginning of a game. the virtual evaluation parameters corresponding to the previous participating accounts; the difference between the sum of the first virtual evaluation parameters and the sum of the second virtual evaluation parameters is determined as the target virtual evaluation parameter difference; the target fluctuation parameter corresponding to a game is determined according to the initial virtual fluctuation parameters of each account in the participating accounts, wherein the initial virtual fluctuation parameter is the virtual fluctuation parameter corresponding to the participating accounts before the start of a game; the first calculation parameter is determined according to the target virtual evaluation parameter difference and the target fluctuation parameter; the second calculation parameter and the third calculation parameter are determined by the first calculation parameter and the similar distribution parameter corresponding to the first calculation parameter, and the third calculation parameter is obtained by combining the first calculation parameter and the second calculation parameter; the current virtual evaluation parameters and virtual fluctuation parameters of each account in the participating accounts are determined according to the first calculation parameter, the second calculation parameter and the third calculation parameter.

[0159] Optionally, in this embodiment, taking the virtual evaluation parameter as Elo and the virtual fluctuation parameter as Elok as an example, the following steps may be included but are not limited to:

[0160] S1, calculate the sum of the Elo of the five players in the winning camp, recorded as CampElowin (corresponding to the sum of the first virtual evaluation parameter mentioned above);

[0161] S2, calculate the sum of the Elo of the five players in the losing camp, recorded as CampElolose (corresponding to the sum of the second virtual evaluation parameter mentioned above);

[0162] S3, calculate CampElogap=CampElowin-CampElolose (corresponding to the aforementioned target virtual evaluation parameter difference);

[0163] S4, using the Elok of the 10 players in the game, calculate the game fluctuation value C (corresponding to the aforementioned target fluctuation parameter), the formula is:

[0164]

[0165] S5, calculating parameter t=CampElogap / C (corresponding to the first calculation parameter mentioned above);

[0166] S6, calculate the Gaussian distribution parameter N(t), the formula is:

[0167]

[0168] S7, calculate the similar distribution parameter Φ(t), the formula is:

[0169]

[0170] S8, calculation parameter v (corresponding to the aforementioned second calculation parameter) = N(t) / Φ(t);

[0171] S9, calculation parameter ω (corresponding to the third calculation parameter mentioned above) = v 2 +t*v;

[0172] S10, calculate the Elo of the winning player, the specific method is as follows:

[0173] S10-1, select a winning player, the player's Elo before settlement is Elo old , the player's Elok is Elok old ;

[0174] S10-2, the settlement updates the player's Elo, and the Elo after settlement is recorded as Elo new , the formula is:

[0175] Elo new =Elo old +(Elok old ) 2 *v / (5*C);

[0176] S11, the Elo of the losing player is calculated as follows:

[0177] S11-1, select a losing player, the player's Elo before settlement is Elo old , the player's Elok is Elok old ;

[0178] S11-2, the settlement updates the player's Elo, and the Elo after settlement is recorded as Elo new , the formula is:

[0179] Elo new =Elo old -(Elok old ) 2 *v / (5*C);

[0180] Through this embodiment, by evaluating the capability of each account and then making adaptive adjustments based on the capability fluctuation range of each account, the capability change of each account is made smoother, the capability evaluation is more accurate, and the account matching result can be made more in line with expectations.

[0181] The following is a further explanation of this application with reference to specific examples:

[0182] The Elo value is used to evaluate the player's combat power in the game. Newly registered players have an initial Elo value. After each game, the Elo value of the player will be updated. In order to settle the player's Elo value, the player also has an Elok attribute, which represents the fluctuation range of the player's Elo value. The player's Elok is also assigned an initial value when the player registers, and then updated with the player's Elo at the end of each game. The player's initial Elo value is usually set to 800, and the initial Elok is usually set to 170. This is a value determined based on test data, which can control the player's Elo within a reasonable range of 0 to 1600 after a long period of iteration. At the end of the game, the update rules for the player's Elo and Elok values ​​are as follows:

[0183] S1, calculate the sum of the Elo of the five players in the winning camp, recorded as CampElowin;

[0184] S2, calculate the sum of the Elo of the five players in the losing camp, recorded as CampElolose;

[0185] S3, calculate CampElogap=CampElowin–CampEloose;

[0186] S4, using the Elok of the 10 players in the game, calculate the game fluctuation value C, the formula is:

[0187]

[0188] S5, calculation parameter t = CampElogap / C;

[0189] S6, calculate the Gaussian distribution parameter N(t), the formula is:

[0190]

[0191] S7, calculate the similar distribution parameter Φ(t), the formula is:

[0192]

[0193] S8, calculate parameter v=N(t) / Φ(t);

[0194] S9, calculate the parameter ω=v 2 +t*v;

[0195] S10, calculate the Elo of the winning player, the specific method is as follows:

[0196] S10-1, select a winning player, the player's Elo before settlement is Elo old , the player's Elok is Elok old ;

[0197] S10-2, the settlement updates the player's Elo, and the Elo after settlement is recorded as Elo new , the formula is:

[0198] Elo new =Elo old +(Elok old ) 2 *v / (5*C);

[0199] S11, the Elo of the losing player is calculated as follows:

[0200] S11-1, select a losing player, the player's Elo before settlement is Elo old , the player's Elok is Elok old ;

[0201] S11-2, the settlement updates the player's Elo, and the Elo after settlement is recorded as Elo new , the formula is:

[0202] Elo new =Elo old -(Elok old ) 2 *v / (5*C);

[0203] S12, using the Elok of the 5 players on the winning side, calculate the Elok fluctuation value of the winning side win , the formula is:

[0204]

[0205] S13, the Elok of the winning player is calculated as follows:

[0206] S13-1, select a winning player, the Elok of this player is Elok old ;

[0207] S13-2, the settlement updates the player's Elok, and the Elok after settlement is recorded as Elok new , the formula is:

[0208]

[0209] S14, use the Elok of the 5 players on the losing side to calculate the Elok fluctuation value of the losing side lose , the formula is:

[0210]

[0211] S15, the Elok of the losing player is calculated as follows:

[0212] S15-1, select a losing player, the Elok of this player is Elok old ;

[0213] S15-2, the player's Elok is updated after settlement, and the Elok after settlement is recorded as Elok new , the formula is:

[0214]

[0215] Since MOBA games usually allow players to form teams to participate in matching, in the matching process, looking for teams with similar combat power is actually searching for teams with similar TeamElo. The TeamElo of a team refers to the sum of the Elos of all players in the team.

[0216] In order to ensure fairness in the game, the team composition of the red and blue sides is required to be the same, that is, if the red side has a three-person team, then the blue side should also have a three-person team. Therefore, in the matching process, the team composition of the 10 players finally searched is always an even number, that is, if there are two-person teams, then there must be 2 or 4 two-person teams, and there will not be an odd number like 1 or 3.

[0217] For the fairness of the game, the purpose of the red-blue split step in the matching process is actually to find a split method that minimizes the difference in CampElo between the red and blue camps. Since the game winning condition in the subsequent steps requires that the difference in CampElo between the red and blue camps is less than a certain threshold, the CampElo of a camp is the sum of the Elos of the five players in the camp.

[0218] If the conditions for a game are met after the red and blue sides are divided, the game logic will be executed, a game room will be established for these players, and then these players will be notified to match the game. Finally, these 10 players will be deleted from the data of players to be matched recorded in the matching server, and they will no longer participate in subsequent matches.

[0219] Fig. 9 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Fig. 9As shown, the steps of red and blue edge division in the above MOBA game are as follows:

[0220] S1, takes the 10 players searched in the previous step of the red and blue division as input, each player has an elo value, and these 10 players form several teams. For example, these 10 players may belong to 10 single-player teams, or 2 3-player teams and 2 2-player teams, or 2 5-player teams.

[0221] S2, use the greedy algorithm to separate the red and blue edges. The specific steps are as follows:

[0222] S2-1, calculate the TeamElo of each team by adding up the elo of all players in the team.

[0223] S2-2, sort the teams. The rule is that the team with more people is before the team with less people. For teams with the same number of people, the team with lower TeamElo is before the team with higher TeamElo.

[0224] S2-3, according to the ranking, each team is divided into red and blue sides in turn. The specific rules for dividing the sides are as follows:

[0225] S2-3-1, take the number of people in the current team to be divided, if the number of teams with the same number of people in either the red or blue camp reaches half, then the team will be directly divided into the other camp. For example, there are 4 2-person teams participating in the division, when dividing one of the 2-person teams, it is found that there are already 2 2-person teams in the red camp, then the new 2-person team must be divided into the blue camp;

[0226] S2-3-2, compare the sum of TeamElo of all teams in the red and blue camps. If the sum of TeamElo of all teams in the red camp is smaller, add the current team to be divided into the red camp; otherwise, add it to the blue camp;

[0227] S2-3-3, calculate the CampElo of the red and blue camps by calculating the sum of the Elo of the five players in the camp.

[0228] S3, calculate the absolute value of the difference in CampElo between the red and blue camps. If the difference is less than the threshold T1, the game condition is met and the side division is completed; otherwise, continue to the next side division operation.

[0229] S4, find the anchor team from the teams participating in this side division, take the number of failed game determinations of the anchor team, which is initialized to 0 when the team applies for a match. This step adds 1 to the number. If the number of failed game determinations of the anchor team is less than the threshold T2, the current side division is abandoned and the side division ends; otherwise, proceed to the next side division operation.

[0230] S5, generate a random integer in [0,10000]. If the random number is greater than the threshold T3, the current game is abandoned and the side division is completed; otherwise, continue to the next side division operation.

[0231] S6, exhaustively enumerate all possible edge division schemes and find the edge division scheme with the smallest CampElo difference.

[0232] S7, if the CampElo difference of the side division plan is less than the threshold value T1, the game formation condition is met and the side division ends; otherwise, the game formation is abandoned and the side division ends.

[0233] in, Fig.10 is a schematic diagram of another optional account matching method according to an embodiment of the present application, such as Fig.10 As shown, step S2 uses a greedy algorithm to perform red and blue edge separation, including but not limited to the following steps:

[0234] S1, use the 10 players searched in the previous matching step as the input of the red and blue sides;

[0235] S2, calculate the TeamElo of each team;

[0236] S3, sort the teams from most to least people and from largest to smallest TeamElo;

[0237] S4, determine whether there are still teams that have not been divided, if the determination result is no, execute step S5, otherwise execute step S6;

[0238] S5, grouping ends;

[0239] S6, take an undivided team;

[0240] S7, determine whether the number of teams with the same number of players on the blue side has reached half, if the determination result is no, execute step S8, otherwise, execute step S10-2;

[0241] S8, determining whether the number of teams with the same number of people on the red side has reached half, if the determination result is no, executing step S9, otherwise, executing step S10-1;

[0242] S9, determining whether the total TeamElo of the blue team is less than the total TeamElo of the red team. If the determination result is yes, execute step S10-1; otherwise, execute step S10-2;

[0243] S10-1, join the blue team;

[0244] S10-2, join the Red team.

[0245] Through this embodiment, the greedy algorithm is combined with the exhaustive method by using a random strategy, and the defect of the approximate solution of the greedy algorithm is made up while maintaining the time complexity advantage of the greedy algorithm. Using this application to match the camps can improve the matching experience of minority players in the game and improve the matching quality without increasing the load of the matching server.

[0246] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0247] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0248] According to another aspect of the embodiment of the present application, an account matching device for implementing the above account matching method is also provided. Fig.11 As shown, the device comprises:

[0249] An acquisition module 1102 is configured to acquire a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts that are allowed to match the target account, and the first set of accounts includes the target account;

[0250] A first grouping module 1104 is configured to perform a first grouping operation on the first account set to obtain a first account grouping and a second account grouping, wherein the first account grouping and the second account grouping are local optimal solutions for grouping the first account set;

[0251] A second grouping module 1106, configured to perform a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping when the first account grouping and the second account grouping do not satisfy a preset parameter condition, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set;

[0252] The matching module 1108 is configured to match each account in the first account set according to the third account grouping and the fourth account grouping if the third account grouping and the fourth account grouping meet the preset parameter condition.

[0253] As an optional solution, the device is used to perform a first grouping operation on the first account set to obtain a first account group and a second account group in the following manner: obtaining a first matching parameter set composed of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; sorting each account in the first account set according to the first matching parameter set to obtain a target account set; and grouping the target account set according to the values ​​of the matching parameters to obtain the first account group and the second account group.

[0254] As an optional solution, the device is used to group the target account set according to the value of the matching parameter in the following manner to obtain the first account group and the second account group: group the accounts in the target account set in sequence in the following manner, wherein the account grouped each time is regarded as the current account: obtain the account with the largest matching parameter value from the target account set as the current account, wherein the target account set is a set of accounts arranged in descending order according to the value of the matching parameter; determine the number of first accounts in the first account group that have not been grouped and the number of second accounts in the second account group that have not been grouped; if the number of the first accounts is less than or equal to the number of the second accounts, group the current account into the first account group; if the number of the first accounts is greater than the number of the second accounts, group the current account into the second account group; if the current account has been grouped, delete the current account from the target account set, and adjust the number of the first accounts or the number of the second accounts until all accounts in the target account set have been grouped.

[0255] As an optional solution, the device is used to perform a first grouping operation on the first account set to obtain a first account group and a second account group in the following manner: obtain a second matching parameter set composed of matching parameters of each team in the first account set, wherein the matching parameters in the second matching parameter set correspond one-to-one to the teams in the first account set, and one team includes at least one account; sort the teams in the first account set according to the second matching parameter set to obtain a target team set; group the target team set according to the number of accounts of each team and the value of the matching parameter to obtain the first account group and the second account group.

[0256] As an optional solution, the device is used to group the target team set according to the number of accounts of each team and the value of the matching parameter in the following manner to obtain the first account group and the second account group: group the teams in the target team set in sequence in the following manner, wherein the team grouped each time is regarded as the current team: obtain the team with the largest number of accounts from the target team set as the current team, wherein the target team set is a team set arranged in descending order according to the number of accounts of each team, and when the teams with the same number of accounts include multiple teams, the multiple teams are arranged in descending order according to the value of the matching parameter; determine the number of first teams in the first account group that have not been grouped and the number of second teams in the second account group that have not been grouped; when the number of the first teams is less than or equal to the number of the second teams, group the current team into the first account group; when the number of the first teams is greater than the number of the second teams, group the current team into the second account group; when the current team has been grouped, delete the current team from the target team set, and adjust the number of the first teams or the number of the second teams until all teams in the target team set have been grouped.

[0257] As an optional solution, the device is further used to: after obtaining the target account from the to-be-matched account set, obtain a first team from the to-be-matched account set according to the target account, wherein the matching parameters of the first team and the matching parameters of the target account satisfy a first matching condition; determine a second team according to the first team, wherein the number of accounts of the first team is the same as the number of accounts of the second team, the number of accounts of the first team is less than or equal to the number of accounts of the first account group, and the matching parameters of the second team and the matching parameters of the target account satisfy the first matching condition; determine the first account set according to the first team and the second team, wherein, in the case where the total number of accounts of the first team and the second team is less than the first account set, the first account set further includes a supplementary account whose matching parameters and the matching parameters of the target account satisfy the first matching condition, and the supplementary account is used to form the first account set together with the first team and the second team.

[0258] As an optional solution, the apparatus is configured to perform a second grouping operation on the first account set to obtain a third account group and a fourth account group when the first account group and the second account group do not satisfy a preset parameter condition in the following manner: when a difference between group matching parameters of the first account group and the second account group is less than a first preset threshold, determine that the first account group and the second account group satisfy the preset parameter condition, wherein the group matching parameter represents a sum of matching parameters of each account in one account group; and when the first account group and the second account group satisfy the preset parameter condition, match each account in the first account set according to the first account group and the second account group.

[0259] As an optional solution, the apparatus is configured to perform a second grouping operation on the first account set to obtain a third account group and a fourth account group in the following manner when the first account group and the second account group do not satisfy a preset parameter condition: when a difference between group matching parameters of the first account group and the second account group is greater than or equal to a first preset threshold, determine that the first account group and the second account group do not satisfy the preset parameter condition; when the first account group and the second account group do not satisfy the preset parameter condition, determine that the target account fails to match, and increase the number of failed matches of the target account, wherein the number of failed matches indicates the number of rounds in which the target account fails to match, and the number of matches of the target account in each round of matching is a preset number threshold; when the number of failed matches is greater than or equal to a second preset threshold, perform a second grouping operation on the first account set to obtain the third account group and the fourth account group.

[0260] As an optional solution, the device is further used to: generate a first random number within a first interval when the number of failed matches is greater than or equal to a second preset threshold; perform a second grouping operation on the first account set to obtain the third account group and the fourth account group when the first random number is less than or equal to a third preset threshold; or generate a second random number within a second interval when the number of failed matches is greater than the second preset threshold and greater than or equal to a fourth preset threshold, wherein the fourth preset threshold is greater than the second preset threshold, and the second interval is an interval obtained by reducing the upper limit of the first interval by a target value; perform a second grouping operation on the first account set to obtain the third account group and the fourth account group when the second random number is less than or equal to the third preset threshold.

[0261] As an optional solution, the device is used to perform a second grouping operation on the first account set to obtain the third account group and the fourth account group in the following manner: obtain a first matching parameter set composed of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; exhaustively enumerate each account in the first account set according to the first matching parameter set to obtain a set of grouping schemes, wherein one of the grouping schemes corresponds to a difference in group matching parameters, the difference in group matching parameters represents a difference in group matching parameters of different account groups in one of the grouping schemes, and the group matching parameter represents a sum of matching parameters of each account in one account group; determine the third account group and the fourth account group according to a target grouping scheme, wherein the target grouping scheme is a grouping scheme with the smallest difference in group matching parameters in the set of grouping schemes.

[0262] As an optional solution, the apparatus is used to determine the third account group and the fourth account group according to the target grouping scheme in the following manner: when the difference between the group matching parameters corresponding to the target grouping scheme is less than a first preset threshold, determine that the fourth account group and the fourth account group meet the preset parameter condition; when the third account group and the fourth account group meet the preset parameter condition, determine the third account group and the fourth account group.

[0263] As an optional solution, the device is also used to: obtain a target account from the set of accounts to be matched; determine a target matching parameter of the target account based on the target account, wherein the target matching parameter is determined by a current virtual evaluation parameter and a virtual fluctuation parameter of the target account, the virtual evaluation parameter is used to evaluate the capability of the target account, and the virtual fluctuation parameter is used to evaluate the fluctuation range of the capability of the target account; determine the first account set based on the target matching parameter, wherein the matching parameters corresponding to the accounts in the first account set and the target matching parameters satisfy a second matching condition.

[0264] As an optional solution, the device is also used to: determine the current virtual evaluation parameters and virtual fluctuation parameters of each account in the set of accounts to be matched in the following manner, wherein the accounts for which the virtual evaluation parameters and the virtual fluctuation parameters are to be determined are regarded as participating accounts: when a game is over, obtain a group of winning accounts and a group of losing accounts participating in the game, wherein the group of winning accounts are the participating accounts that won the game, and the group of losing accounts are the participating accounts that lost the game; determine the sum of the first virtual evaluation parameters corresponding to the group of winning accounts and the sum of the second virtual evaluation parameters corresponding to the group of losing accounts, wherein the sum of the first virtual evaluation parameters is the sum of the initial virtual evaluation parameters of the group of winning accounts, and the sum of the second virtual evaluation parameters is the sum of the initial virtual evaluation parameters of the group of losing accounts, and the initial virtual evaluation parameters are the sum of the initial virtual evaluation parameters before the start of the game. The virtual evaluation parameters corresponding to the participating accounts; determining the difference between the sum of the first virtual evaluation parameters and the sum of the second virtual evaluation parameters as the target virtual evaluation parameter difference; determining the target fluctuation parameter corresponding to the game according to the initial virtual fluctuation parameters of each account in the participating accounts, wherein the initial virtual fluctuation parameter is the virtual fluctuation parameter corresponding to the participating accounts before the start of the game; determining a first calculation parameter according to the target virtual evaluation parameter difference and the target fluctuation parameter; determining a second calculation parameter and a third calculation parameter using the first calculation parameter, wherein the second calculation parameter is determined by the Gaussian distribution parameter and the similar distribution parameter corresponding to the first calculation parameter, and the third calculation parameter is obtained by combining the first calculation parameter and the second calculation parameter; determining the current virtual evaluation parameters and virtual fluctuation parameters of each account in the participating accounts according to the first calculation parameter, the second calculation parameter and the third calculation parameter.

[0265] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1209, and / or installed from a removable medium 1211. When the computer program is executed by the central processor 1201, various functions provided in the embodiments of the present application are executed.

[0266] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0267] Fig.12 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0268] It should be noted that Fig.12The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0269] like Fig.12 As shown, the computer system 1200 includes a central processing unit 1201 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1202 (ROM) or the program loaded from the storage part 1208 to the random access memory 1203 (RAM). Various programs and data required for system operation are also stored in the random access memory 1203. The central processing unit 1201, the read-only memory 1202 and the random access memory 1203 are connected to each other through a bus 1204. The input / output interface 1205 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1204.

[0270] The following components are connected to the input / output interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the input / output interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0271] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the central processor 1201, various functions defined in the system of the present application are executed.

[0272] According to another aspect of the embodiment of the present application, an electronic device for implementing the above account matching method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.

[0273] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0274] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0275] S1, obtaining a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts allowed to match the target account, and the first set of accounts includes the target account;

[0276] S2, performing a first grouping operation on the first account set to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set;

[0277] S3, when the first account grouping and the second account grouping do not meet the preset parameter conditions, performing a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set;

[0278] S4. When the third account group and the fourth account group meet the preset parameter conditions, match each account in the first account set according to the third account group and the fourth account group.

[0279] Alternatively, a person skilled in the art may understand that: Fig.13 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.13 The electronic device and the electronic equipment described above are not limited in structure. Fig.13 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations are shown.

[0280] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the account matching method and device in the embodiments of the present application. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, to implement the above-mentioned account matching method. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely located relative to the processor 1304, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 can be specifically, but not limited to, used to store account information and the like. As an example, such as Fig.13 As shown, the memory 1302 may include but is not limited to the acquisition module 1102, the first grouping module 1104, the second grouping module 1106 and the matching module 1108 in the account matching device. In addition, it may also include but is not limited to other module units in the account matching device, which will not be repeated in this example.

[0281] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0282] In addition, the electronic device further comprises: a display 1308 for displaying the account grouping; and a connection bus 1310 for connecting various module components in the electronic device.

[0283] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.

[0284] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the account matching method provided in various optional implementations of the above-mentioned account matching aspects.

[0285] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0286] S1, obtaining a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts allowed to match the target account, and the first set of accounts includes the target account;

[0287] S2, performing a first grouping operation on the first account set to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set;

[0288] S3, when the first account grouping and the second account grouping do not meet the preset parameter conditions, performing a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set;

[0289] S4. When the third account group and the fourth account group meet the preset parameter conditions, match each account in the first account set according to the third account group and the fourth account group.

[0290] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0291] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0292] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0293] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0294] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0295] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0296] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0297] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An account matching method, characterized in that: include: Acquire a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts that are allowed to match the target account, and the first set of accounts includes the target account; Performing a first grouping operation on the first account set to obtain a first account group and a second account group, wherein the first account group and the second account group are local optimal solutions for grouping the first account set; If the first account grouping and the second account grouping do not meet the preset parameter conditions, performing a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set; In a case where the third account grouping and the fourth account grouping meet the preset parameter condition, each account in the first account set is matched according to the third account grouping and the fourth account grouping.

2. The method according to claim 1, characterized in that The performing a first grouping operation on the first account set to obtain a first account group and a second account group includes: Obtaining a first matching parameter set consisting of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; Sort the accounts in the first account set according to the first matching parameter set to obtain a target account set; The target account set is grouped according to the value of the matching parameter to obtain the first account group and the second account group.

3. The method according to claim 2, characterized in that The step of grouping the target account set according to the value of the matching parameter to obtain the first account group and the second account group includes: The accounts in the target account set are grouped in sequence in the following manner, wherein each grouped account is regarded as the current account: Acquire the account with the largest matching parameter value from the target account set as the current account, wherein the target account set is a set of accounts arranged in descending order according to the matching parameter values; Determine the number of first accounts in the first account group that have not been grouped and the number of second accounts in the second account group that have not been grouped; When the number of the first accounts is less than or equal to the number of the second accounts, grouping the current account into the first account group; When the number of the first accounts is greater than the number of the second accounts, grouping the current account into the second account group; In the case that the current account has been grouped, the current account is deleted from the target account set, and the number of the first accounts or the number of the second accounts is adjusted until all accounts in the target account set have been grouped.

4. The method according to claim 1, characterized in that: The performing a first grouping operation on the first account set to obtain a first account group and a second account group includes: Obtaining a second matching parameter set consisting of matching parameters of each team in the first account set, wherein the matching parameters in the second matching parameter set correspond one-to-one to the teams in the first account set, and one team includes at least one account; Sort the teams in the first account set according to the second matching parameter set to obtain a target team set; The target team set is grouped according to the number of accounts of each team and the value of the matching parameter to obtain the first account group and the second account group.

5. The method according to claim 4, characterized in that The grouping of the target team set according to the number of accounts of each team and the value of the matching parameter to obtain the first account grouping and the second account grouping includes: The teams in the target team set are grouped in sequence in the following manner, wherein each grouped team is regarded as the current team: Obtaining the team with the largest number of accounts from the target team set as the current team, wherein the target team set is a set of teams arranged in descending order according to the number of accounts of each team, and in the case where the teams with the same number of accounts include multiple teams, the multiple teams are arranged in descending order according to the values ​​of the matching parameter; Determine the number of first teams of the first account grouping that has not been completed and the number of second teams of the second account grouping that has not been completed; When the number of the first teams is less than or equal to the number of the second teams, grouping the current team into the first account group; When the number of the first teams is greater than the number of the second teams, grouping the current team into the second account group; In the case that the current team has completed grouping, the current team is deleted from the target team set, and the number of the first teams or the number of the second teams is adjusted until all teams in the target team set have completed grouping.

6. The method according to claim 4, characterized in that After obtaining the target account from the set of accounts to be matched, the method further includes: Acquire a first team from the set of accounts to be matched according to the target account, wherein a matching parameter of the first team and a matching parameter of the target account satisfy a first matching condition; Determining a second team based on the first team, wherein the number of accounts of the first team is the same as the number of accounts of the second team, the number of accounts of the first team is less than or equal to the number of accounts of the first account group, and the matching parameter of the second team and the matching parameter of the target account meet the first matching condition; The first account set is determined according to the first team and the second team, wherein, when the total number of accounts of the first team and the second team is less than the first account set, the first account set further includes a supplementary account whose matching parameters and the matching parameters of the target account meet the first matching condition, and the supplementary account is used to form the first account set together with the first team and the second team.

7. The method according to claim 1, characterized in that The step of performing a second grouping operation on the first account set to obtain a third account group and a fourth account group when the first account group and the second account group do not meet a preset parameter condition includes: When the difference between the group matching parameters of the first account group and the second account group is less than a first preset threshold, determining that the first account group and the second account group meet the preset parameter condition, wherein the group matching parameter represents the sum of the matching parameters of each account in one account group; When the first account group and the second account group satisfy the preset parameter condition, each account in the first account set is matched according to the first account group and the second account group.

8. The method according to claim 7, characterized in that The step of performing a second grouping operation on the first account set to obtain a third account group and a fourth account group when the first account group and the second account group do not meet a preset parameter condition includes: When the difference between the group matching parameters of the first account group and the second account group is greater than or equal to the first preset threshold, determining that the first account group and the second account group do not meet the preset parameter condition; If the first account group and the second account group do not meet the preset parameter conditions, determine that the target account fails to match, and increase the number of failed matches of the target account, wherein the number of failed matches indicates the rounds of failed matches of the target account, and the number of matches of the target account in each round of matching is a preset number threshold; When the number of matching failures is greater than or equal to a second preset threshold, a second grouping operation is performed on the first account set to obtain the third account group and the fourth account group.

9. The method according to claim 8, characterized in that The method further comprises: If the number of match failures is greater than or equal to a second preset threshold, generate a first random number within a first interval; if the first random number is less than or equal to a third preset threshold, perform a second grouping operation on the first account set to obtain the third account group and the fourth account group; or When the number of failed matches is greater than the second preset threshold and greater than or equal to a fourth preset threshold, a second random number within a second interval is generated, wherein the fourth preset threshold is greater than the second preset threshold, and the second interval is an interval obtained by reducing the target value from the upper limit of the first interval; when the second random number is less than or equal to the third preset threshold, a second grouping operation is performed on the first account set to obtain the third account group and the fourth account group.

10. The method according to claim 1, characterized in that The performing the second grouping operation on the first account set to obtain the third account group and the fourth account group includes: Obtaining a first matching parameter set consisting of matching parameters of each account in the first account set, wherein the matching parameters in the first matching parameter set correspond one-to-one to the accounts in the first account set; According to the first matching parameter set, each account in the first account set is exhaustively enumerated to obtain a set of grouping schemes, wherein one of the grouping schemes corresponds to a difference in group matching parameters, the difference in group matching parameters represents a difference in group matching parameters of different account groups in one of the grouping schemes, and the group matching parameter represents a sum of matching parameters of each account in one account group; The third account grouping and the fourth account grouping are determined according to a target grouping scheme, wherein the target grouping scheme is a grouping scheme having the smallest difference in the group matching parameters among the group of grouping schemes.

11. The method according to claim 10, characterized in that The determining the third account group and the fourth account group according to the target grouping scheme includes: When the difference between the group matching parameters corresponding to the target grouping scheme is less than a first preset threshold, determining that the fourth account group and the fourth account group meet the preset parameter condition; In a case where the third account group and the fourth account group satisfy the preset parameter condition, the third account group and the fourth account group are determined.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: Acquire a target account from the set of accounts to be matched; Determining a target matching parameter of the target account according to the target account, wherein the target matching parameter is determined by a current virtual evaluation parameter and a virtual fluctuation parameter of the target account, the virtual evaluation parameter is used to evaluate the capability of the target account, and the virtual fluctuation parameter is used to evaluate the capability fluctuation range of the target account; The first account set is determined according to the target matching parameter, wherein the matching parameters corresponding to the accounts in the first account set and the target matching parameter satisfy a second matching condition.

13. The method according to claim 12, characterized in that The method further comprises: The current virtual evaluation parameter and virtual fluctuation parameter of each account in the set of accounts to be matched are determined in the following manner, wherein the account for which the virtual evaluation parameter and the virtual fluctuation parameter are to be determined is regarded as a participating account: When a round of game ends, obtaining a group of winning accounts and a group of losing accounts participating in the round of game, wherein the group of winning accounts are the participating accounts that won the round of game, and the group of losing accounts are the participating accounts that lost the round of game; Determine a sum of first virtual evaluation parameters corresponding to the group of winning accounts and a sum of second virtual evaluation parameters corresponding to the group of losing accounts, wherein the sum of the first virtual evaluation parameters is the sum of initial virtual evaluation parameters of the group of winning accounts, and the sum of the second virtual evaluation parameters is the sum of initial virtual evaluation parameters of the group of losing accounts, and the initial virtual evaluation parameters are virtual evaluation parameters corresponding to the participating accounts before the start of the game; determining a difference between the first virtual evaluation parameter sum and the second virtual evaluation parameter sum as a target virtual evaluation parameter difference; Determining a target fluctuation parameter corresponding to the game according to an initial virtual fluctuation parameter of each account in the participating accounts, wherein the initial virtual fluctuation parameter is a virtual fluctuation parameter corresponding to the participating account before the game starts; Determining a first calculation parameter according to the target virtual evaluation parameter difference and the target fluctuation parameter; Determine a second calculation parameter and a third calculation parameter using the first calculation parameter, wherein the second calculation parameter is determined by a Gaussian distribution parameter and a similar distribution parameter corresponding to the first calculation parameter, and the third calculation parameter is obtained by combining the first calculation parameter and the second calculation parameter; The current virtual evaluation parameter and virtual fluctuation parameter of each account in the participating accounts are determined according to the first calculation parameter, the second calculation parameter and the third calculation parameter.

14. An account matching device, characterized in that: include: an acquisition module, configured to acquire a target account from a set of accounts to be matched, wherein the target account is used to determine a first set of accounts that are allowed to match the target account, and the first set of accounts includes the target account; A first grouping module, configured to perform a first grouping operation on the first account set to obtain a first account grouping and a second account grouping, wherein the first account grouping and the second account grouping are local optimal solutions for grouping the first account set; A second grouping module, configured to perform a second grouping operation on the first account set to obtain a third account grouping and a fourth account grouping when the first account grouping and the second account grouping do not satisfy a preset parameter condition, wherein the third account grouping and the fourth account grouping are global optimal solutions for grouping the first account set; A matching module is used to match each account in the first account set according to the third account grouping and the fourth account grouping when the third account grouping and the fourth account grouping meet the preset parameter condition.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program can be executed by a terminal device or a computer to execute the method described in any one of claims 1 to 13.

16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 13 are implemented.

17. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 13 through the computer program.