Position determining method, position determining device and electronic equipment
1. A method of position determination, comprising:
receiving a location request, wherein the location request is used for a user to request to select a plurality of locations;
in response to the location request, determining a user-actively-selected value of an available location;
determining candidate position combinations with the sum of the values actively selected by the user being larger than other position combinations, and determining a plurality of positions selected by the user based on the candidate position combinations.
2. The location determination method of claim 1, wherein determining the plurality of locations selected by the user based on the combination of candidate locations comprises:
determining a plurality of different types of the user preset rules;
determining a weight value corresponding to each type of the user preset rule;
weighting each of the plurality of candidate location combinations with the weight value based on whether the each candidate location combination complies with the user preset rule; and
determining the weighted and largest candidate position combination as the plurality of positions selected by the user.
3. The location determination method of claim 2, wherein determining the plurality of different types of the user preset rule comprises:
determining that the user preset rule belongs to a necessary rule or an optional rule; and
determining the weight value corresponding to each type of the user preset rule comprises:
in response to the user preset rule being a necessary rule, setting a weight value meeting the user preset rule as a first numerical value, and setting a weight value not meeting the user preset rule as zero; and
and responding to the situation that the user preset rule is an optional rule, setting the weight value meeting the user preset rule as a second numerical value, and setting the weight value not meeting the user preset rule as a third numerical value smaller than the second numerical value.
4. The location determination method of claim 2, wherein determining the user-selected plurality of locations from the candidate combination of locations based on a user preset rule comprises:
in response to none of the candidate location combinations meeting the user preset rule, presenting the candidate location combination to a user; and
and determining the plurality of positions manually selected by the user as the plurality of positions selected by the user.
5. An interactive method for reserving a ticket, comprising:
obtaining a reservation request input by a user in a reservation ticket purchasing process, wherein the reservation request comprises a position request of a plurality of positions;
transmitting the reservation request to a server that performs the location determination method according to any one of claims 1 to 4 based on the reservation request and generates reservation results for the determined plurality of locations;
receiving reservation results for the determined plurality of locations from the server; and
and presenting the reservation result to a user.
6. An interactive method for ticketing, comprising:
obtaining a ticket purchasing request input by a user in a ticketing process, wherein the ticket purchasing request comprises a position request of a plurality of positions;
transmitting the ticket purchase request to a server, the server performing the location determination method according to any one of claims 1 to 4 based on the ticket purchase request and generating ticket information of the determined plurality of locations;
receiving ticketing information for the determined plurality of locations from the server; and
and presenting the ticket information of the plurality of positions to the user.
7. A position determining apparatus comprising:
a request receiving unit, configured to receive a location request, where the location request is used by a user to request selection of a plurality of locations;
a value determining unit for determining a value actively selected by a user of an available location in response to the location request received by the request receiving unit; and
and the position determining unit is used for determining candidate position combinations of which the sum of the values actively selected by the user is larger than other position combinations and determining a plurality of positions selected by the user based on the candidate position combinations.
8. An interactive apparatus for reserving a ticket, comprising:
a reservation request unit, which is used for obtaining a reservation request input by a user in the process of reserving ticket purchasing, wherein the reservation request comprises position requests of a plurality of positions and optionally comprises user preset rules;
a reservation transmitting unit that transmits the reservation request to a server including the position determining apparatus according to claim 7 and generates reservation results of the determined plurality of positions;
a result receiving unit for receiving reservation results of the determined plurality of locations from the server; and
and the result presenting unit is used for presenting the reservation result to the user.
9. An interactive device for ticketing, comprising:
the ticket buying request unit is used for obtaining a ticket buying request input by a user in a ticketing process, wherein the ticket buying request comprises position requests of a plurality of positions and optionally user preset rules;
a ticket purchase transmitting unit for transmitting the ticket purchase request to the server including the position determining apparatus according to claim 7 and generating ticket service information of the determined plurality of positions;
an information receiving unit for receiving ticket information of the determined plurality of locations from the server; and
and the information presentation unit is used for presenting the ticket information of the plurality of positions to the user.
10. An electronic device, comprising:
a processor; and
a memory having stored therein computer program instructions which, when executed by the processor, cause the processor to perform the position determination method of any one of claims 1-4, the interactive method for reserving a ticket for a purchase of claim 5 and the interactive method for purchasing a ticket of claim 6.
Background
In the context of large performance events such as concerts, people often require ticket purchases to enter the event and select seats at the same time as the ticket purchase.
In order to improve the convenience of users, in the current ticketing industry, a scheme of selecting seats by multiple machines is provided instead of manually selecting seats by users. For example, one common option is to derive a "preferred seat" according to the position, angle, etc. of the seat relative to the activity area.
However, the determination of the "preferred seat" is limited by many physical conditions such as the place where the event is held and the actual location distribution thereof, and thus, the selected seat is often not preferred, and the case where the user may need to select a plurality of seats is not considered.
Accordingly, it is desirable to provide improved position determination schemes.
Disclosure of Invention
The present application is proposed to solve the above-mentioned technical problems. Embodiments of the present application provide a position determination method, a position determination apparatus, and an electronic device that determine a plurality of positions selected by a user based on a sum of user-actively-selected values of available positions, thereby being capable of providing a plurality of seats that meet the user's needs.
According to an aspect of the present application, there is provided a position determination method including: receiving a location request, wherein the location request is used for a user to request to select a plurality of locations; in response to the location request, determining a user-actively-selected value of an available location; and determining candidate position combinations with the sum of the values actively selected by the user larger than other position combinations, and determining a plurality of positions selected by the user based on the candidate position combinations.
In the above position determination method, determining the plurality of positions selected by the user based on the candidate position combinations includes: determining a plurality of different types of the user preset rules; determining a weight value corresponding to each type of the user preset rule; weighting each of the plurality of candidate position combinations with the weight value based on whether the each candidate position combination conforms to the user preset rule; and determining the weighted and largest candidate position combination as a plurality of positions selected by the user.
In the above position determining method, determining a plurality of different types of the user preset rule includes: determining that the user preset rule belongs to a necessary rule or an optional rule; and determining the weight value corresponding to each type of the user preset rule comprises: in response to the user preset rule being a necessary rule, setting a weight value meeting the user preset rule as a first numerical value, and setting a weight value not meeting the user preset rule as zero; and responding to the fact that the user preset rule is an optional rule, setting the weight value meeting the user preset rule as a second numerical value, and setting the weight value not meeting the user preset rule as a third numerical value smaller than the second numerical value.
In the position determining method, the user preset rule includes at least one of the following: the plurality of positions are adjacent positions; the plurality of locations are locations within the same area; and the plurality of positions are the same position at different times.
In the above position determination method, determining a plurality of positions selected by the user from the candidate position combinations based on a user preset rule includes: in response to none of the candidate location combinations meeting the user preset rule, presenting the candidate location combination to a user; and determining the plurality of positions manually selected by the user as the plurality of positions selected by the user.
In the above position determining method, after determining the plurality of positions selected by the user from the candidate position combinations based on a user preset rule, the method further includes: the user is prompted to confirm the plurality of locations selected by the user.
In the above location determination method, after prompting the user to confirm the plurality of locations selected by the user, the method further includes: in response to a user confirming the plurality of locations, incrementing a user actively selected value for each of the plurality of locations by one.
In the above position determining method, the available position is a purchasable position in a ticket reselling process.
In the above position determination method, the position requests of the plurality of positions are reservation requests input by a user, and the reservation requests include the user preset rule.
In the above position determination method, the available position is an unpurchased position in the ticket vending process.
In the position determining method, the position requests of the plurality of positions are ticket purchasing requests input by a user, and the reservation request corresponding to the ticket purchasing request includes the user preset rule, or the ticket purchasing request directly includes the user preset rule.
According to another aspect of the present application, there is provided an interactive method for reserving a ticket, including: obtaining a reservation request input by a user in a reservation ticket purchasing process, wherein the reservation request comprises a position request of a plurality of positions; transmitting the reservation request to a server that executes the position determination method as described above based on the reservation request and generates reservation results for the determined plurality of positions; receiving reservation results for the determined plurality of locations from the server; and presenting the reservation result to a user.
In the above-mentioned interactive method for booking reservation for tickets, the reservation result includes location information of the determined plurality of locations and/or notification information informing the user of the selected location.
In the above interactive method for booking reservation for ticket purchase, the reservation request includes a user preset rule for the user to select a plurality of positions.
According to yet another aspect of the present application, there is provided an interactive method for ticket purchasing, comprising: obtaining a ticket purchasing request input by a user in a ticketing process, wherein the ticket purchasing request comprises a position request of a plurality of positions; transmitting the ticket purchase request to the server, the server performing the location determination method as described above based on the ticket purchase request and generating ticket information of the determined plurality of locations; receiving ticketing information for the determined plurality of locations from the server; and presenting the ticket information of the plurality of locations to a user.
In the above interaction method for ticket booking, the ticket booking request includes a user preset rule for selecting a plurality of locations by a user, or a reservation request corresponding to the ticket booking request includes a user preset rule for selecting a plurality of locations by a user.
According to yet another aspect of the present application, there is provided a position determination apparatus including: a request receiving unit for receiving a location request for a user to request selection of a plurality of locations; a value determining unit for determining a value actively selected by a user of an available location in response to the location request received by the request receiving unit; and a position determination unit for determining a candidate position combination in which the sum of the user actively-selected numerical values determined by the numerical value determination unit is larger than other position combinations, and determining a plurality of positions selected by the user based on the candidate position combination.
According to still another aspect of the present application, there is provided an interactive apparatus for reserving a ticket, including: a reservation request unit, which is used for obtaining a reservation request input by a user in the process of reserving ticket purchasing, wherein the reservation request comprises position requests of a plurality of positions and optionally comprises user preset rules; a reservation transmitting unit that transmits the reservation request to a server that includes the position determining device as described above and generates reservation results for the determined plurality of positions; a result receiving unit for receiving reservation results of the determined plurality of locations from the server; and the result presenting unit is used for presenting the reservation result to the user.
According to another aspect of the present application, there is provided an interactive apparatus for ticket purchase, comprising: the ticket buying request unit is used for obtaining a ticket buying request input by a user in a ticketing process, wherein the ticket buying request comprises position requests of a plurality of positions and optionally user preset rules; a ticket purchase transmitting unit that transmits the ticket purchase request to the server, the server including the position determining apparatus as described above, and generating ticket information of the determined plurality of positions; an information receiving unit for receiving ticket information of the determined plurality of locations from the server; and the information presentation unit is used for presenting the ticket information of the plurality of positions to the user.
According to still another aspect of the present application, there is provided an electronic apparatus including: a processor; and a memory having stored therein computer program instructions which, when executed by the processor, cause the processor to perform a position determination method as described above, an interactive method for reserving a ticket purchase as described above and an interactive method for purchasing a ticket as described above.
According to yet another aspect of the present application, there is provided a computer readable medium having stored thereon computer program instructions which, when executed by a processor, cause the processor to perform a position determination method as described above, an interactive method for booking a ticket purchase as described above and an interactive method for purchasing a ticket as described above.
The position determining method, the position determining device and the electronic equipment can determine the sum of values actively selected by a user of a plurality of available positions requested by the user, and determine the candidate position combination with the sum of values actively selected by the user being larger than other position combinations, so as to determine a plurality of positions selected by the user, and provide a plurality of seats meeting the requirements of the user.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 illustrates a schematic diagram of an application scenario of a position determination method according to an embodiment of the present application.
Fig. 2 illustrates a flow chart of a position determination method according to an embodiment of the application.
Fig. 3 illustrates a flowchart of an example of determining a position in a position determination method according to an embodiment of the present application.
Fig. 4 is a schematic diagram illustrating an example of an input interface for a user to preset rules in a position determination method according to an embodiment of the present application.
Fig. 5A to 5C are diagrams illustrating a user preset rule in a position determination method according to an embodiment of the present application.
Fig. 6 illustrates a schematic diagram of an application example of a position determination method according to an embodiment of the present application.
Fig. 7 illustrates a schematic diagram of a flow of an interactive method for reserving a ticket according to an embodiment of the application.
Fig. 8 illustrates a schematic diagram of a reservation result in an interactive method for reserving a ticket according to an embodiment of the present application.
Fig. 9 illustrates a schematic diagram of a flow of an interactive method for ticketing according to an embodiment of the present application.
FIG. 10 illustrates a block diagram of a position determination device according to an embodiment of the present application.
Fig. 11 illustrates a block diagram of an interaction device for reserving a ticket according to an embodiment of the application.
Fig. 12 illustrates a block diagram of an interaction device for ticketing in accordance with an embodiment of the present application.
FIG. 13 illustrates a block diagram of an electronic device in accordance with an embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
Summary of the application
As described above, the current scheme of selecting a preferred seat according to the position, angle, etc. of the seat and the activity area may be affected by the fact that the venue actually taking the activity is complex and variable, and the difference between the seat map information of the venue and the actual physical seat, and other object factors, so that the seat calculated on the seat map according to the distance, angle, etc. cannot be guaranteed to be more preferred.
In addition, the consumer may select a seat either by himself by manual seat selection or by the operator of the seat for the user. However, when the customer selects a seat by himself, the customer often cannot select a more preferable position because of unfamiliarity with the seat arrangement or a short operation time in ticket robbery, unless under the guidance of the operator of the seat.
In view of the above technical problem, the basic idea of the present application is to determine a plurality of locations selected by a user by calculating a sum of user-actively-selected values of a plurality of available locations based on a request from the user to select the plurality of locations, and determining a candidate location combination in which the sum of the user-actively-selected values is greater than other location combinations.
Specifically, the position determining method, the position determining device and the electronic equipment first receive a position request, the position request is used for a user to select a plurality of positions, then in response to the position request, user active selection values of available positions are determined, finally candidate position combinations with the sum of the user active selection values larger than other position combinations are determined, and the plurality of positions selected by the user are determined based on the candidate position combinations.
That is, since each location has historically been selected by other users, the greater the number of times the location was actively selected by the user, the greater the probability that the location is more preferred by the user. Therefore, the user actively selecting the numerical value of the available position can represent the subjective preference degree of the user for the position, so that the requirement of the user for the position can be better reflected than objective numerical values such as the distance, the angle and the like of the position.
Therefore, the position determining method, the position determining device and the electronic equipment provided by the application determine a plurality of positions selected by the user based on the sum of the values actively selected by the user of the available positions, so that a plurality of seats meeting the requirements of the user can be provided.
The position determining method, the position determining device and the electronic equipment do not limit the type of the position selected by the user, namely, the position selected by the user can be the position of a large-scale event such as a large-scale concert and a large-scale conference held in a venue, and also can be the position of a small-scale event such as a movie theater, a small theater or a small conference. Further, the location selected by the user is not limited to a fixed location within the venue, but may be an unsecured location within the venue, and may be various locations of an open-air event.
In addition, the position determining method, the position determining device and the electronic equipment can be applied to the booking stage of the ticket business and the actual selling stage of the ticket business. That is, in the location determining method, the location determining apparatus, and the electronic device provided in the present application, the location request for multiple locations may be a reservation request for a user to reserve multiple locations, or may be a ticket purchase request for a user to actually purchase tickets for multiple locations.
Having described the general principles of the present application, various non-limiting embodiments of the present application will now be described with reference to the accompanying drawings.
Exemplary method one
Fig. 1 illustrates a schematic diagram of an application scenario of a position determination method according to an embodiment of the present application.
As shown in fig. 1, when a user U needs to make a reservation or actually purchase a ticket, a location request of multiple locations is made on a terminal device T for ticket purchase, for example, a mobile device such as a mobile phone of the user, or a self-service terminal ticket vending machine. Then, the terminal device T transmits a position request of the plurality of positions to the server S.
The server S executes the position determination method according to the embodiment of the present application, thereby determining a plurality of positions selected by the user based on the position request, and further sending feedback to the terminal device T. And, the terminal device T may present the feedback to the user in case the feedback is received.
Fig. 2 illustrates a flow chart of a position determination method according to an embodiment of the application.
As shown in fig. 2, a position determination method according to an embodiment of the present application includes the following steps.
Step S110, a location request is received, the location request being used for a user to select a plurality of locations. That is, in the embodiment of the present application, as described above, the user wishes to select a plurality of locations, for example, 3 locations, simultaneously in the reservation or ticket purchase process. Thus, the user makes a location request for selecting a plurality of locations, the location request including the number of locations requested by the user. Additionally, the location request may also include a price for the location requested by the user.
Step S120, in response to the location request, determining a user-active selection value of an available location. Here, the available position may refer to a seat which is not selected and locked by other users in the course of actual ticketing. However, in the reservation process, on one hand, the user is prevented from making a random reservation, and on the other hand, the reserved user does not need to buy tickets actually, so that the available position can be set as a purchasable position without considering whether the ticket is selected and locked by other users.
Also, as described above, the user's active selection of a value represents the number of times the location has historically been manually selected, and may also be referred to as a "heat value" for the location. It will be understood by those skilled in the art that the user-actively selecting a value may refer to only the number of times the user manually selects in a non-seat-on-the-fly scenario, or may include the number of times the system recommends to the user in a seat-on-the-fly scenario and then manually confirms by the user.
Step S130, determining candidate position combination with the sum of the values actively selected by the user larger than other position combinations, and determining a plurality of positions selected by the user based on the candidate position combination. For example, as described above, if the user requests 3 locations, three locations with a larger sum of the user-selected values are determined, that is, the sum of the user-selected values of the determined three locations is larger than the other location combinations.
Fig. 3 illustrates a flowchart of an example of determining a position in a position determination method according to an embodiment of the present application.
As shown in fig. 3, the step S130 further includes the following steps on the basis of the embodiment shown in fig. 2.
Step S1301, sorting the available positions according to the values actively selected by the user of the available positions. That is, after the user who determines the available locations actively selects a value, the available locations may be sorted, e.g., from large to small, according to the user's active selection of the value.
Step S1302, determining a candidate position combination with the sum of the values actively selected by the user being larger than other position combinations based on the number of the plurality of positions. That is, the user-actively-selected values of available locations may be summed according to the number of the plurality of locations requested by the user, and a candidate location combination having a sum of the user-actively-selected values greater than other location combinations may be determined. The number of the candidate position combinations may be one or more, that is, the candidate position combinations consider the sum of the values actively selected by the user, and the candidate position combination with the larger sum of the values actively selected by the user is determined as the candidate position combination. Here, it is understood by those skilled in the art that, in order to increase the user's selection margin, in addition to the candidate position combination composed of the position combination whose sum of values is the largest by the user's active selection, the sum of values by the user's active selection of some of the candidate position combinations may be smaller than the determined maximum sum, and here, it is only necessary that the sum of values by the user's active selection of the candidate position combinations is larger than the sum of values by the user's active selection of other position combinations than the candidate position combinations.
Step S1303, determining a plurality of positions selected by the user from the candidate position combinations based on a user preset rule. That is, when the user selects a location, certain rules associated with the positional relationship of the locations may be preset, such as that the user wants the selected locations to be adjacent, that the locations are in the same area, or that the locations are the same location of different times at different times, and so on.
Here, the user preset rule may be included in the location request, for example, when the user makes a reservation, the user preset rule may be included when the reservation request is input. And, when the user purchases a ticket, if the user does not make a reservation, the user preset rule may be directly included in the input ticket purchase request. On the other hand, if the user makes a reservation before ticket booking, the server may query a reservation request corresponding to the ticket booking request to obtain the user preset rule.
Fig. 4 is a schematic diagram illustrating an example of an input interface for a user to preset rules in a position determination method according to an embodiment of the present application. As shown in fig. 4, when the user inputs a location request for multiple locations on the ticket robbery/pre-sale interface, some user preset rules, such as whether to connect seats, whether to share areas, etc. as shown in fig. 4, may be selected simultaneously.
Fig. 5A to 5C are diagrams illustrating a user preset rule in a position determination method according to an embodiment of the present application. As shown in fig. 5A, an event venue includes a stage P, seats S, and walkways L. And, the user presets a rule that the user wants to select three positions adjacent to each other in the same row, three seats (shown as C1) facing the first row of the stand of the stage P can be selected as the plurality of positions selected by the user according to the preset rule.
As shown in fig. 5B, the user presets a rule that the user wishes to select three positions in the region R, i.e., the rear of the venue seat, and then the three seats in the rear of the venue seat (shown as C2) may be selected as the plurality of positions selected by the user according to the preset rule.
As shown in fig. 5C, following a user preset rule, the user wishes to select the same location within three consecutive days of the session, e.g., the middle location of the first row of the venue area, then the middle seat of the first row of venue seats (shown as C3) may be selected and the date of the three consecutive days of the session selected as the plurality of locations selected by the user.
Therefore, in the position determining method according to the embodiment of the present application, the user preset rule includes at least one of the following: the plurality of positions are adjacent positions; the plurality of locations are locations within the same area; and the plurality of positions are the same position at different times.
Therefore, the position determining method according to the embodiment of the application can consider the selection tendency of the user to actually select multiple tickets in a seat, in the same area, in the same position in different occasions and the like, thereby better meeting the requirements of the user
In the embodiment of the present application, the user preset rules may be different types of rules, and accordingly, each type of rule may have a different weight value when determining the candidate combination. Here, the weight value is a value having a weight effect on each variable value when calculating an index such as an average in statistics. In an embodiment of the application, the weight values are used to weight the position, i.e. a scaling factor that actively selects a numerical value for a user of an automatically introduced or manually introduced position when determining the position.
Specifically, assuming that the combination of the plurality of positions with the largest sum of the user actively-selected numerical values is K candidate combinations, the sum of the user actively-selected numerical values of the ith candidate combination in the K candidate combinations is recorded as Si, the weight value of each user preset rule is recorded as Qj, j is greater than or equal to 1 and less than or equal to n (n represents the number of the user preset rules), the plurality of positions selected by the user are determined as:
therefore, in the position determination method according to the embodiment of the present application, determining the plurality of positions selected by the user from the plurality of candidate combinations based on the user preset rule includes: determining a plurality of different types of the user preset rules; determining a weight value corresponding to each type of the user preset rule; weighting each of the plurality of candidate combinations with the weight value based on whether the each candidate combination complies with the user preset rule; and determining the weighted and largest candidate position combination as a plurality of positions selected by the user.
In the embodiment of the present application, the types of the user preset rules may include a mandatory rule and an optional rule. That is, some rules may be desirable to a user, for example, if multiple people are participating in an activity, the user may require that the selected locations be adjacent. While some rules may not be necessary, for example, a user may desire that multiple locations be within a certain area, and not if not within that area.
Therefore, in this case, different weight values are given to the user preset rules according to whether the user preset rules are the mandatory rules or the optional rules. Specifically, for the rule to be selected, the weight value is 1 for satisfying the user preset rule, and the weight value is 0 for not satisfying the user preset rule. On the other hand, for the optional rule, the weight value may be adjusted according to the actual situation, and is not necessarily 0 or 1, and it is only necessary that the weight value when the user preset rule is satisfied is larger than the weight value when the user preset rule is not satisfied. For example, a weight value of 0.8 is relative to satisfying the user preset rule, and a weight value of 0.2 is relative to not satisfying the user preset rule.
Therefore, in the position determination method according to the embodiment of the present application, determining the plurality of different types of the user preset rule includes: determining that the user preset rule belongs to a necessary rule or an optional rule; and determining the weight value corresponding to each type of the user preset rule comprises: in response to the user preset rule being a necessary rule, setting a weight value meeting the user preset rule as a first numerical value, and setting a weight value not meeting the user preset rule as zero; and responding to the fact that the user preset rule is an optional rule, setting the weight value meeting the user preset rule as a second numerical value, and setting the weight value not meeting the user preset rule as a third numerical value smaller than the second numerical value.
In the above case, there may be a case where none of the candidate position combinations conforms to the user preset rule belonging to the indispensable rule, and thus a plurality of positions selected by the user cannot be determined. Therefore, in the embodiment of the present application, if none of the candidate position combinations meets the user preset rule, the candidate position combination is presented to the user and manually selected by the user.
For example, the determined candidate location combination may be transmitted from the server to the user's terminal device for ticket purchase and then manually selected by the user. And, after the manual selection by the user, the result of the manual selection by the user is further transmitted back from the terminal device to the server.
That is, in the position determination method according to the embodiment of the present application, determining the plurality of positions selected by the user from the candidate position combinations based on the user preset rule includes: in response to none of the candidate location combinations meeting the user preset rule, presenting the candidate location combination to a user; and determining the plurality of positions manually selected by the user as the plurality of positions selected by the user.
In the case where the plurality of locations are not manually selected by the user, the user may be further prompted for confirmation for the plurality of locations selected by the user as determined in the above manner. That is, the confirmation information may be transmitted from the server to the terminal device, and the confirmation result is transmitted from the terminal device back to the server after the terminal device receives the confirmation of the user.
That is, in the position determination method according to the embodiment of the present application, after determining the plurality of positions selected by the user from the candidate position combinations based on the user preset rule, the method further includes: the user is prompted to confirm the plurality of locations selected by the user.
After the user confirms the plurality of positions, for example, the user confirms a certain candidate combination which is automatically recommended as the plurality of positions selected by the user, or the plurality of positions are manually selected under the condition that no candidate position combination conforms to the preset rules of the user, which all indicate that the plurality of positions conform to the subjective preference of the user in the position determination, and therefore the values can be correspondingly reflected on the user actively selecting values of the plurality of positions, that is, the user actively selecting value of each position in the plurality of positions can be increased by one.
That is, in the position determination method according to the embodiment of the present application, after prompting the user to confirm the plurality of positions selected by the user, the method further includes: in response to a user confirming the plurality of locations, incrementing a user actively selected value for each of the plurality of locations by one.
In addition, in the position determination method according to the embodiment of the present application, the historical behavior of the user may also be considered. For example, locations that have historically been selected by the user may be given higher weight. Alternatively, as described above, upon user authorization, in response to a user confirming the plurality of locations, the confirmation by different users is differentiated, and when the user actively selects the value for the next determination of the available location, the user actively selects the value for the location to which the same user or the same type of user has confirmed, by adding a larger value, for example, 5 to 10, to the user actively selecting the value for the location, thereby making the location that the user has confirmed more likely to be selected.
Application example
Fig. 6 illustrates a schematic diagram of an application example of a position determination method according to an embodiment of the present application.
As shown in fig. 6, in the case where the user wishes to select seats within a certain session, the user inputs the number of seats to be selected and a preset rule at S201. Then, at S202, based on the historical data of the seats, the heat value of all available seats is calculated, i.e., the user actively selects a numerical value as described above. At S203, for all available seats, sorting is performed by the heat value. At S204, K candidate combinations having a sum of heat values larger than the other seat combinations are selected based on the number of seats.
For example, the user may wish to select three seats, and of these three seats, the seating is an optional rule and the area is a mandatory rule. Three combinations of combination 1, combination 2 and combination 3 are selected in total by calculating the sum of the heat values, wherein the sum of the heat values of combination 1 and combination 2 is 10, and the sum of the heat values of combination 3 is 8.
In S205, the K candidate combinations are weighted according to a preset rule of the user, such as whether to connect seats, whether to share a region, whether to share seats across fields, and the like. In the above example, since the chain is the optional rule, it is assumed that the weight value conforming to the chain is 0.8, and the weight value not conforming to the chain is 0.2, and since the same region is the optional rule, it is assumed that the weight value conforming to the contract region is 1, and the weight value not conforming to the contract region is 0. For combinations 1, 2, and 3 described above, combination 1 does not fit the seated nor contract region, combination 2 does not fit the seated but contract region, and combination 3 fits both the seated and contract regions, combination 1, which does not fit the rule of choice for the contract region, is excluded first. Then, the weighted sum of combination 2 is calculated to be 0.2 × 10+1 × 10 — 12, and the weighted sum of combination 3 is calculated to be 0.8 × 8+1 × 8 — 14.4.
At S206, the candidate combination with the largest sum of the hot value weights among the K candidate combinations, for example, combination 3 as described above, is determined as the preferred combination.
At S207 it is determined whether a preferred combination exists, e.g. if combination 3 is selected as the preferred combination as described above, it is determined at S207 that a preferred combination exists and the preferred combination is presented to the user at S208. If none of the combinations 1 to 3 described above meet the rule of necessity of the contract area, it is determined at S207 that the preferred combination does not exist, and the user is prompted at S209 that there is no preferred combination, and the above K candidate combinations are returned to the user at S210 to be manually selected by the user.
Whether the automatically selected preferred combination is presented to the user at S208, the preferred combination is manually selected by the user at S210, and the selected seat combination is confirmed by the user at S211. And, if the user confirms the selected seat combination, the heat value of each seat in the seat combination selected by the user is increased by one at S212.
Exemplary method two
Fig. 7 illustrates a schematic diagram of a flow of an interactive method for reserving a ticket according to an embodiment of the application. Here, the interactive method for reserving ticket purchase according to the embodiment of the present application is applied to a terminal device, such as a smart phone, or a self-service ticket vending machine, etc., used by a user for purchasing a ticket. As shown in fig. 7, in the interactive method for reserving a ticket according to an embodiment of the present application, a terminal device 310 is used to interact with a user 320 and a server 330.
As shown in fig. 7, an interactive method for reserving a ticket according to an embodiment of the present application includes: s301, obtaining a reservation request input by a user in a reservation ticket purchasing process, wherein the reservation request comprises position requests of a plurality of positions; s302, transmitting the reservation request to a server that executes the position determination method as described above based on the reservation request and generates reservation results for the determined plurality of positions; s303, receiving reservation results of the determined plurality of locations from the server; and S304, presenting the reservation result to the user.
Here, as described above, the reservation request may include a user preset rule for selecting a plurality of locations, for example, whether to connect seats, whether to join areas, etc., in addition to a location request for a plurality of locations, such as the number of locations, a location price step, etc.
Fig. 8 illustrates a schematic diagram of a reservation result in an interactive method for reserving a ticket according to an embodiment of the present application. As shown in fig. 8, in the embodiment of the present application, a specific selected location may be presented to the user through a reservation result, and the user may perform reselection or confirmation based on the selected location. Alternatively, the user may be presented with only a notification that the user has selected a location, and not a specific location number.
Therefore, in the above-described interactive method for reserving a ticket, the reservation result includes location information of the determined plurality of locations and/or notification information informing the user of the selected location.
Here, as can be understood by those skilled in the art, the server 330 executes the location determination method as described above, so that the process of determining the plurality of locations selected by the user is completely the same as the process of the location determination method in the "exemplary method a" section before, and thus, the description thereof is omitted.
Exemplary method three
Fig. 9 illustrates a schematic diagram of a flow of an interactive method for ticketing according to an embodiment of the present application. Here, the interactive method for purchasing tickets according to the embodiment of the application is applied to a terminal device, such as a smart phone, or a self-service ticket machine, etc., used by a user for purchasing tickets. As shown in fig. 9, in the interactive method for ticket purchasing according to the embodiment of the present application, a terminal device 410 is used to interact with a user 420 and a server 430.
As shown in fig. 9, an interactive method for ticket purchasing according to an embodiment of the present application includes: s401, obtaining a ticket buying request input by a user in a ticketing process, wherein the ticket buying request comprises position requests of a plurality of positions; s402, sending the ticket purchase request to the server, the server executing the location determination method based on the ticket purchase request, and generating ticket information of the determined multiple locations; s403, receiving ticket information of the determined plurality of locations from the server; and S404, presenting the ticket information of the plurality of positions to the user.
Also, as described above, if the user has made a reservation before the ticket purchase request, the location requests of the plurality of locations may be directly obtained by retrieving the reservation request made before, and the user preset rule for the user to select the plurality of locations may also be obtained from the reservation request. In contrast, if the user has not made a reservation, the ticket purchase request may include a user preset rule for selecting a plurality of locations, such as whether to connect seats, whether to connect with a region, etc., in addition to a location request including a plurality of locations, such as a number of locations, a location price gear, etc.
Here, as can be understood by those skilled in the art, the server 330 executes the location determination method as described above, so that the process of determining the plurality of locations selected by the user is completely the same as the process of the location determination method in the "exemplary method a" section before, and thus, the description thereof is omitted.
Other examples of applications
As described above, where there are multiple options, each option may have been historically selected by other users. And, the more times the option is actively selected by the user, the greater the probability that the option is more preferable to the user. Therefore, if the user who sets the option actively selects the numerical value, the user actively selecting the numerical value can represent the subjective preference degree of the user for the option, so that the preference of the user for the option can be better embodied than other objective numerical values.
Therefore, the above concept can also be applied to other scenarios, such as a travel scenario, when a user queries information such as a destination, the user can actively select a value according to the destination to return a result to the user.
That is, an embodiment of the present application may relate to a destination information determination method including: receiving a query request for one or more pieces of destination information; in response to the query request, determining a user-actively-selected numerical value for each piece of destination information; and determining a piece of destination information returned to the user based on the destination information with the largest value actively selected by the user, or determining a plurality of pieces of destination information returned to the user based on the destination information with the larger sum of the values actively selected by the user than the combination of other destination information.
Similarly, in addition to the user actively selecting the numerical value for each piece of destination information, the results returned to the user may be filtered according to a preset rule of the user.
That is, in one example, in the above-described destination information determination method, determining the pieces of destination information returned to the user based on the pieces of destination information whose sum of numerical values is larger than the combination of the other pieces of destination information actively selected by the user includes: sorting the destination information according to the values actively selected by the user of the plurality of pieces of destination information; determining a plurality of candidate combinations of the plurality of pieces of destination information whose sum of the user's actively-selected numerical values is larger than other combinations of the plurality of pieces of destination information based on the number of the plurality of pieces of destination information; and determining a plurality of pieces of destination information returned to the user from the plurality of candidate combinations based on a user preset rule.
For example, the user preset rule may be that a plurality of destinations related to the plurality of destination information are within the same geographical area, or that a plurality of destinations related to the plurality of destination information are of the same type, such as a landscape type, a human type, and the like.
Here, those skilled in the art can understand that other details of the position determination method according to the embodiment of the present application as described above can also be applied to this scenario, and are not described here again to avoid redundancy.
Exemplary device one
FIG. 10 illustrates a block diagram of a position determination device according to an embodiment of the present application.
As shown in fig. 10, a position determination apparatus 500 according to an embodiment of the present application includes: a request receiving unit 510, configured to receive a location request, where the location request is used for a user to select multiple locations; a value determining unit 520, configured to determine a user-actively-selected value of an available location in response to the location request received by the request receiving unit; and a location determination unit 530 for determining a candidate location combination in which the sum of the user actively-selected values determined by the value determination unit is greater than other location combinations, and determining a plurality of locations selected by the user based on the candidate location combination.
In one example, in the above position determining apparatus 500, the position determining unit 530 is configured to: sorting the available positions according to the values actively selected by the user of the available positions; determining a candidate position combination of the plurality of positions for which the sum of the user actively-selected numerical values is greater than other position combinations based on the number of the plurality of positions; and determining a plurality of positions selected by the user from the candidate position combination based on a user preset rule.
In one example, in the above position determining apparatus 500, the determining, by the position determining unit 530, the plurality of positions selected by the user from the candidate position combinations based on the user preset rule includes: determining a plurality of different types of the user preset rules; determining a weight value corresponding to each type of the user preset rule; weighting each of the candidate position combinations with the weight value based on whether the each of the candidate position combinations conforms to the user preset rule; and determining the weighted and largest candidate position combination as a plurality of positions selected by the user.
In one example, in the above position determining apparatus 500, the determining, by the position determining unit 530, a plurality of different types of the user preset rule includes: determining that the user preset rule belongs to a necessary rule or an optional rule; and determining the weight value corresponding to each type of the user preset rule comprises: in response to the user preset rule being a necessary rule, setting a weight value meeting the user preset rule as a first numerical value, and setting a weight value not meeting the user preset rule as zero; and responding to the fact that the user preset rule is an optional rule, setting the weight value meeting the user preset rule as a second numerical value, and setting the weight value not meeting the user preset rule as a third numerical value smaller than the second numerical value.
In one example, in the position determining apparatus 500, the user preset rule includes at least one of the following: the plurality of positions are adjacent positions; the plurality of locations are locations within the same area; and the plurality of positions are the same position at different times.
In one example, in the above position determining apparatus 500, the determining, by the position determining unit 530, the plurality of positions selected by the user from the candidate position combinations based on the user preset rule includes: in response to none of the candidate location combinations meeting the user preset rule, presenting the candidate location combination to a user; and determining the plurality of positions manually selected by the user as the plurality of positions selected by the user.
In one example, in the above position determining apparatus 500, further comprising: and the prompting unit is used for prompting the user to confirm the plurality of positions selected by the user after the plurality of positions selected by the user are determined from the candidate position combination based on a preset rule of the user.
In one example, in the above position determining apparatus 500, further comprising: a confirmation unit to increment a user-actively-selected value for each of the plurality of locations by one in response to a user confirming the plurality of locations after prompting the user to confirm the user-selected plurality of locations.
In one example, in the above-described position determining apparatus 500, the available position is a purchasable position in a ticket reselling process.
In one example, in the above position determining apparatus 500, the position requests of the plurality of positions are reservation requests input by a user, and the reservation requests include the user preset rule.
In one example, in the above-described position determining apparatus 500, the available positions are unpurchased positions in the ticket vending process.
In an example, in the above position determining apparatus 500, the position requests of the plurality of positions are ticket purchase requests input by a user, the reservation request corresponding to the ticket purchase request includes the user preset rule, or the ticket purchase request directly includes the user preset rule.
Here, it will be understood by those skilled in the art that the specific functions and operations of the respective units and modules in the above-described position determining apparatus 500 have been described in detail in the above description of the position determining method with reference to fig. 1 to 5, and thus, a repetitive description thereof will be omitted.
As described above, the position determining apparatus 500 according to the embodiment of the present application may be implemented in various terminal devices, such as a ticket server for reservation and/or ticketing, and the like. In one example, the position determining apparatus 500 according to the embodiment of the present application may be integrated into the terminal device as a software module and/or a hardware module. For example, the position determination apparatus 500 may be a software module in an operating system of the terminal device, or may be an application developed for the terminal device; of course, the position determining means 500 may equally be one of many hardware modules of the terminal device.
Alternatively, in another example, the position determining apparatus 500 and the terminal device may be separate devices, and the position determining apparatus 500 may be connected to the terminal device through a wired and/or wireless network and transmit the interaction information according to an agreed data format.
Exemplary apparatus II
Fig. 11 illustrates a block diagram of an interaction device for reserving a ticket according to an embodiment of the application.
As shown in fig. 11, an interactive apparatus 600 for reserving a ticket according to an embodiment of the present application includes: a reservation requesting unit 610, configured to obtain a reservation request input by a user in a reservation ticket purchasing process, where the reservation request includes a location request of multiple locations and optionally includes a user preset rule; a reservation transmitting unit 620 for transmitting the reservation request to a server including the position determining device as described above and generating reservation results of the determined plurality of positions; a result receiving unit 630 for receiving reservation results of the determined plurality of locations from the server; and a result presenting unit 640 for presenting the reservation result to the user.
In one example, in the above-described interactive apparatus 600 for reserving a ticket, the reservation result includes location information of the determined plurality of locations and/or notification information informing the user of the selected location.
In one example, in the above-described interactive apparatus 600 for reserving a ticket, the reservation request includes a user preset rule for the user to select a plurality of locations.
Here, it can be understood by those skilled in the art that the detailed functions and operations of the respective units and modules in the above-described interactive apparatus for reserving a ticket 600 have been described in detail in the above description of the interactive method for reserving a ticket with reference to fig. 7 and 8, and thus, a repetitive description thereof will be omitted.
As described above, the interaction apparatus 600 for reserving tickets according to the embodiment of the present application may be implemented in various terminal devices, such as a smart phone of a user, a self-service ticket machine, and the like. In one example, the interaction apparatus 600 for reserving tickets according to the embodiment of the present application may be integrated into a terminal device as a software module and/or a hardware module. For example, the interactive device 600 for reserving tickets may be a software module in an operating system of the terminal device, or may be an application program developed for the terminal device; of course, the interactive device 600 for booking ticket purchase may also be one of many hardware modules of the terminal device.
Alternatively, in another example, the interactive apparatus for reserving tickets 600 and the terminal device may be separate devices, and the interactive apparatus for reserving tickets 600 may be connected to the terminal device through a wired and/or wireless network and transmit the interactive information according to an agreed data format.
Exemplary device three
Fig. 12 illustrates a block diagram of an interaction device for ticketing in accordance with an embodiment of the present application.
As shown in fig. 12, an interactive apparatus 700 for purchasing tickets according to an embodiment of the present application includes: a ticket buying request unit 710, configured to obtain a ticket buying request input by a user in a ticketing process, where the ticket buying request includes a location request of multiple locations and optionally includes a user preset rule; a ticket purchase transmitting unit 720 for transmitting the ticket purchase request to the server including the position determining apparatus as described above and generating ticket information of the determined plurality of positions; an information receiving unit 730 for receiving ticket information of the determined plurality of locations from the server; and an information presenting unit 740 for presenting the ticket information of the plurality of locations to the user.
In an example, in the above-mentioned interaction apparatus 700 for purchasing tickets, the ticket purchase request includes a user preset rule for selecting a plurality of locations by the user, or the reservation request corresponding to the ticket purchase request includes a user preset rule for selecting a plurality of locations by the user.
Here, it can be understood by those skilled in the art that the detailed functions and operations of the respective units and modules in the above-described interaction apparatus for purchasing tickets 700 have been described in detail in the above description of the interaction method for purchasing tickets with reference to fig. 9, and thus, a repetitive description thereof will be omitted.
As described above, the interaction apparatus 700 for purchasing tickets according to the embodiment of the present application may be implemented in various terminal devices, such as a smart phone of a user, a self-service ticket machine, and the like. In one example, the interaction apparatus 700 for purchasing tickets according to the embodiment of the present application may be integrated into a terminal device as a software module and/or a hardware module. For example, the interaction means 700 for purchasing tickets may be a software module in the operating system of the terminal device, or may be an application developed for the terminal device; of course, the interaction means 700 for purchasing tickets may also be one of a plurality of hardware modules of the terminal device.
Alternatively, in another example, the interactive apparatus for ticket buying 700 and the terminal device may also be separate devices, and the interactive apparatus for ticket buying 700 may be connected to the terminal device through a wired and/or wireless network and transmit the interactive information according to an agreed data format.
Exemplary electronic device
Next, an electronic apparatus according to an embodiment of the present application is described with reference to fig. 13.
FIG. 13 illustrates a block diagram of an electronic device in accordance with an embodiment of the present application.
As shown in fig. 13, the electronic device 10 includes one or more processors 11 and a memory 12.
The processor 11 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
Memory 12 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by processor 11 to implement the location determination methods, the interactive methods for booking and interactive methods for ticketing, and/or other desired functions of the various embodiments of the present application described above. Various content such as user-actively selected values of available locations may also be stored in the computer-readable storage medium.
In one example, the electronic device 10 may further include: an input device 13 and an output device 14, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 13 may include, for example, a keyboard, a mouse, and the like.
The output device 14 can output various information including a plurality of positions to be finally determined and the like to the outside. The output devices 14 may include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device 10 relevant to the present application are shown in fig. 13, and components such as buses, input/output interfaces, and the like are omitted. In addition, the electronic device 10 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps of the position determination method, the interactive method for reserving a ticket, and the interactive method for purchasing a ticket according to the various embodiments of the present application described in the above-mentioned "exemplary methods" section of this specification.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the first user computing device, partly on the first user device, as a stand-alone software package, partly on the first user computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps of the location determination method, the interactive method for reserving a ticket, and the interactive method for purchasing a ticket according to various embodiments of the present application described in the "exemplary methods" section of this specification above.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:共享洗衣机的控制方法、装置