Method and apparatus for processing information

By actively updating flight information, the problem of inconsistency between the air ticket margin information in the cache and the real-time information is solved, the timeliness and cost balance of information is achieved, and the accuracy of information and traffic cost control is ensured.

CN112307328BActive Publication Date: 2025-01-10BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011018458.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-24
Publication Date
2025-01-10
Estimated Expiration
2040-09-24

AI Technical Summary

Technical Problem

In the prior art, when information service providers acquire flight information, the cached ticket margin information may be inconsistent with real-time information, resulting in difficult to balance information timeliness and traffic costs.

Method used

By actively obtaining the AV information of the flight, updating the current ticket margin information in the cache based on the actual ticket margin information, and controlling the information acquisition frequency according to the preset time interval to improve the timeliness and accuracy of the information while reducing traffic costs.

Benefits of technology

It achieves a balance between the accuracy of cached information and traffic cost, ensures the timeliness and accuracy of air ticket margin information, and controls the traffic costs incurred by querying information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307328B_ABST
    Figure CN112307328B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method and device for processing information. A specific implementation of the method includes: based on the current preset time interval, obtaining the AV information of the flight, the AV information includes the actual ticket remaining information of the flight; if the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache, then updating the current ticket remaining information based on the actual ticket remaining information. By actively obtaining the AV information of the flight, and then updating the current ticket remaining information in the cache based on the actual ticket remaining information in the obtained AV information, the timeliness and accuracy of the current ticket remaining information in the cache are improved. At the same time, the frequency of information acquisition is controlled by a preset time interval to control the traffic cost generated by querying the AV information, thereby achieving a balance between the accuracy of the ticket remaining information in the cache and the traffic cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, specifically to the field of information technology, and more particularly to a method and device for processing information. Background Art

[0002] Information service providers (such as some air ticket query websites) usually call the AV information query interface of Air China (China Civil Aviation Information Network Co., Ltd.) or third-party data providers to obtain the AV information of the flight. AV information refers to the flight information provided by the Air China system, which may include various information of the flight, such as the flight's starting point, destination, stopover cities, ticket remaining, cabin class, etc. The information service provider can generate an AV query instruction based on the query requirements received from the user (such as the flight number that the user wants to query), and then send the AV query instruction to the AV information query interface opened by the Air China system to obtain the corresponding AV information.

[0003] In related technologies, information service providers usually save the AV information obtained by query in a cache. During the validity period of the cached information, when a user's query request is received, the corresponding information is called from the cache and presented to the user, rather than calling the query interface in real time, so as to control the traffic costs generated by the query information. Summary of the invention

[0004] Embodiments of the present disclosure provide methods and devices for processing information.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for processing information, the method comprising: obtaining AV information of a flight based on a current preset time interval, the AV information comprising actual ticket remaining information of the flight; if the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache, updating the current ticket remaining information based on the actual ticket remaining information.

[0006] In some embodiments, based on the current preset time interval, the AV information of the flight is obtained, including: based on the current preset time interval, obtaining the AV information of the lowest level cabin in the flight; if the actual ticket remaining information in the AV information of the lowest level cabin in the flight is a number, then executing the following steps: reducing the current preset time interval according to the preset strategy, and determining the reduced time interval as the current time interval; based on the current time interval, obtaining the AV information of each level cabin in the flight.

[0007] In some embodiments, if the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is "A", the following steps are performed: the popularity identifier, departure time identifier and query time identifier of the flight are determined from a pre-constructed mapping relationship list; the characteristic identifier of the flight is determined based on the popularity identifier, departure time identifier and query time identifier of the flight; the time interval corresponding to the characteristic identifier is determined from a pre-constructed mapping relationship list between the characteristic identifier and the time interval; the time interval corresponding to the characteristic identifier is determined as the current time interval; wherein, the popularity identifier is used to characterize the popularity of the route on which the flight is located, the departure time identifier is used to characterize the length of time based on the flight's departure, and the query time identifier is used to characterize the position of the current time in the preset time interval.

[0008] In some embodiments, the method further includes: obtaining the actual accuracy of the current ticket balance information within a preset time period; in response to the actual accuracy being outside the numerical range of the preset expected accuracy, determining an adjustment coefficient based on the actual accuracy, the upper limit of the expected accuracy and the lower limit of the expected accuracy; determining the adjustment step based on the preset step and the adjustment coefficient; determining the sum of the adjustment step and the current preset time interval as the current preset time interval; wherein the adjustment coefficient is positively correlated to the difference obtained by subtracting the mean between the upper limit of the expected accuracy and the lower limit of the expected accuracy from the actual accuracy, and is negatively correlated to the difference between the upper limit of the expected accuracy and the lower limit of the expected accuracy.

[0009] In some embodiments, the method further includes: in response to receiving the information query instruction, sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache.

[0010] In some embodiments, after sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache, the method further includes: obtaining AV information of the flight pointed to by the query instruction.

[0011] In a second aspect, an embodiment of the present disclosure provides a device for processing information, the device comprising: an information acquisition unit, configured to acquire AV information of a flight based on a current preset time interval, the AV information comprising actual ticket remaining information of the flight; an information update unit, the information update unit being configured to update the current ticket remaining information based on the actual ticket remaining information if the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache.

[0012] In some embodiments, the information acquisition unit further includes: a lowest class information acquisition module, configured to acquire the AV information of the lowest class in the flight based on the current preset time interval; a determination module, configured to execute the following steps if the actual ticket remaining information in the AV information of the lowest class in the flight is a number: reduce the current preset time interval according to a preset strategy, and determine the reduced time interval as the current time interval; based on the current time interval, acquire the AV information of each class in the flight.

[0013] In some embodiments, the determination module is further configured to execute the following steps if the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is "A": determine the popularity identifier, departure time identifier and query time identifier of the flight respectively from a pre-constructed mapping relationship list; determine the characteristic identifier of the flight based on the popularity identifier, departure time identifier and query time identifier of the flight; determine the time interval corresponding to the characteristic identifier from a pre-constructed mapping relationship list between characteristic identifiers and time intervals; determine the time interval corresponding to the characteristic identifier as the current time interval; wherein, the popularity identifier is used to characterize the popularity of the route on which the flight is located, the departure time identifier is used to characterize the length of time based on the flight's departure, and the query time identifier is used to characterize the position of the current time in a preset time interval.

[0014] In some embodiments, the device also includes an adjustment unit, which is configured to: obtain the actual accuracy of the current ticket balance information within a preset time period; in response to determining that the actual accuracy is outside the numerical range of the preset expected accuracy, determine the adjustment coefficient based on the actual accuracy, the upper limit of the expected accuracy and the lower limit of the expected accuracy; determine the adjustment step based on the preset step and the adjustment coefficient; determine the sum of the adjustment step and the current preset time interval as the current preset time interval; wherein the adjustment coefficient is positively correlated to the difference obtained by subtracting the average of the upper limit of the expected accuracy and the lower limit of the expected accuracy from the actual accuracy, and is negatively correlated to the difference between the upper limit of the expected accuracy and the lower limit of the expected accuracy.

[0015] In some embodiments, the apparatus further comprises an information sending module configured to send, in response to receiving an information query instruction, current ticket remaining information of the flight pointed to by the information query instruction in the cache.

[0016] In some embodiments, after sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache, the information acquisition unit is further configured to acquire the AV information of the flight pointed to by the query instruction.

[0017] The method and device for processing information provided by the embodiments of the present disclosure actively obtain the AV information of the flight, and then update the current ticket remaining information in the cache based on the actual ticket remaining information in the obtained AV information, so as to improve the timeliness and accuracy of the current ticket remaining information in the cache, and control the frequency of information acquisition by preset time intervals to control the traffic costs generated by querying the AV information, thereby achieving a balance between the accuracy of the cached information and the traffic cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0019] Figure 1 is an exemplary system architecture diagram in which some embodiments of the present disclosure may be applied;

[0020] Figure 2 is a flow chart of one embodiment of a method for processing information according to the present disclosure;

[0021] Figure 3 yes Figure 2 The embodiment of the method for processing information shown is a schematic diagram of a scenario in which the embodiment of the method can be applied;

[0022] Figure 4 is a flow chart of yet another embodiment of a method for processing information according to the present disclosure;

[0023] Figure 5 is a structural schematic diagram of an embodiment of a device for processing information according to the present disclosure;

[0024] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION

[0025] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] Figure 1 An exemplary system architecture 100 is shown to which a method for processing information or an apparatus for processing information according to an embodiment of the present disclosure can be applied.

[0028] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0029] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. For example, the user can send an AV information query instruction to the server 105, and receive the AV information sent by the server 105, and then update the current ticket remaining information of the flight in the cache system according to the received AV information.

[0030] Generally, after receiving the AV information query instruction, the server of the air traffic information generates AV information based on the AV information query instruction and returns the AV information to the sender of the AV information query instruction. In the present disclosure, the AV information includes the actual ticket remaining information of the flight. The query and analysis of AV information is common knowledge in the art and will not be repeated here.

[0031] The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be electronic devices with communication functions, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, desktop computers, etc. When the terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above.

[0032] Server 105 may be a server providing information services, for example, it may be a data server of Air China, which opens an AV information query interface to terminal devices 101, 102, 103 to receive AV information query instructions sent by terminal devices 101, 102, 103, and then sends corresponding AV information back to terminal devices 101, 102, 103.

[0033] It should be noted that the method for processing information provided in the embodiments of the present disclosure may be executed by the terminal devices 101, 102, and 103. Accordingly, the apparatus for processing information may be provided in the terminal devices 101, 102, and 103.

[0034] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules for providing distributed services, or it can be implemented as a single software or software module. No specific limitation is made here.

[0035] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for processing information according to the present disclosure. The method for processing information comprises the following steps:

[0036] Step 201, based on the current preset time interval, obtain the AV information of the flight.

[0037] In this embodiment, the current ticket balance information of the flight is stored in the cache of the execution subject, and the actual ticket balance information changes in real time, which may cause the current ticket balance information to be inconsistent with the actual ticket balance information. In order to improve the accuracy of the current ticket balance information in the cache (i.e., the consistency between the current ticket balance information and the actual ticket balance information), the execution subject can actively update the current ticket balance information in the cache at regular intervals. It is understandable that the higher the update frequency, the higher the accuracy of the current ticket balance information, but the resulting traffic fee is also higher. Therefore, the time interval for obtaining AV information can be pre-set according to actual needs.

[0038] As an example, the execution entity may send an AV information query instruction to the AV information query interface opened by the air traffic information service every 60 minutes to obtain the AV information of the flight and extract the actual ticket remaining information of the flight from the AV information.

[0039] In some optional implementations of the present embodiment, the following steps can also be used to adjust the current preset time interval: obtain the actual accuracy of the current ticket balance information within the preset time period; in response to determining that the actual accuracy is outside the numerical range of the preset expected accuracy, determine the adjustment coefficient based on the actual accuracy, the upper limit of the expected accuracy and the lower limit of the expected accuracy; determine the adjustment step based on the preset step and the adjustment coefficient; determine the sum of the adjustment step and the current preset time interval as the current preset time interval; wherein the adjustment coefficient is positively correlated to the difference obtained by subtracting the average of the upper limit of the expected accuracy and the lower limit of the expected accuracy from the actual accuracy, and is negatively correlated to the difference between the upper limit of the expected accuracy and the lower limit of the expected accuracy.

[0040] In this implementation, accuracy refers to the consistency between the current ticket balance information in the cache and the actual ticket balance information in the AV information within a certain time period. The execution subject can automatically obtain the actual accuracy of the current ticket balance information within a preset time period (e.g., 24 hours).

[0041] As an example, if the execution subject obtains AV information 10 times in a preset time period (e.g., 8 hours), and the actual ticket balance information in 9 AV information is consistent with the current ticket balance information, then the actual accuracy of the current ticket balance information within the 8 hours is 90%. The numerical range of the expected accuracy includes a lower limit and an upper limit. If the actual accuracy is lower than the lower limit of the expected accuracy, it means that the actual accuracy is lower than expected. At this time, the current preset time interval value should be lowered to improve the actual accuracy; if the actual accuracy is higher than the upper limit of the expected accuracy, it means that the traffic fee generated by the current query information is too high. At this time, the value of the current preset time interval should be increased to reduce the traffic fee generated by the query information.

[0042] In a specific example of this implementation, the expected accuracy can be preset to be 90%-95%, the adjustment step s=1min (minute), the actual accuracy is 85%, and the current preset time interval is 10min. The execution subject executes the following formulas (1) and (2) to obtain the adjustment step s*, wherein formula (1) is used to characterize the calculation method of the adjustment coefficient, and formula (2) is used to characterize the calculation method of the adjustment step.

[0043]

[0044] s * =n·s (2)

[0045] Where n is the adjustment coefficient, X is the actual accuracy, X2 is the upper limit of the expected accuracy, and X1 is the lower limit of the expected accuracy.

[0046] Calculation yields n=-1.5, s*=-1.5 min.

[0047] Then, the execution entity uses the sum (8.5 min) of the current preset time interval (10 min) and the adjustment step (-1.5 min) as the adjusted current preset time interval.

[0048] In this implementation, the current preset time interval is dynamically adjusted based on the actual accuracy of the current ticket remaining information to adjust the update frequency of the current ticket remaining information in the cache, which can ensure that the accuracy of the current ticket remaining information in the cache meets the preset standards and reasonably control the traffic costs generated by querying the information.

[0049] Step 202: If the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache, the current ticket remaining information is updated based on the actual ticket remaining information.

[0050] Based on the AV information obtained in step 201, the execution subject can obtain the actual ticket remaining information of the flight, and then compare the actual ticket remaining information with the current ticket remaining information in the cache. If the two are inconsistent, it means that the actual ticket remaining has changed during the last update cycle. The execution subject updates the current ticket remaining information in the cache to keep it consistent with the actual ticket remaining information.

[0051] In a specific example, the execution subject receives the AV information of a flight: flight number: MU2118; flight departure date is 05SEP (September 5), SAT (Saturday); itinerary starting and ending points are BJSCHUAN (Beijing to Sichuan); direct flight; departure time 1215 (12:15), arrival time 1530 (15:30); aircraft model is 77A; no stopover; the actual remaining tickets of class F are 9. If the current remaining tickets of class F of the flight in the cache of the execution subject are more than 10, it will be updated to the current remaining tickets of class F are 9.

[0052] It should be noted that the executing entity can obtain AV information of multiple flights at one time, and then update the current ticket remaining information in the cache respectively; it can also obtain AV information of a certain flight specifically, and then update the current ticket remaining information of the flight in the cache in a targeted manner. This application does not limit this.

[0053] Continue to see Figure 3 , Figure 3 FIG. 2 is a schematic diagram of a scenario in which the embodiment of the method shown in FIG. Figure 3 In the scenario shown, the server 302 may be a data server of the air traffic information service, on which all flight information is stored, and an AV information query interface is opened to the execution subject 301. The execution subject sends a flight AV information query instruction to the server at a preset time interval, and receives the flight AV information returned by the server, which includes the actual ticket remaining information of the flight. The execution subject then compares the actual ticket remaining information with the current ticket remaining information in the cache. If the two are inconsistent, the current ticket remaining information is updated to be consistent with the actual ticket remaining information, thereby completing the automatic update of the current ticket remaining information in the cache.

[0054] The method and device for processing information provided by the embodiments of the present disclosure actively obtain the AV information of the flight, and then update the current ticket remaining information in the cache based on the actual ticket remaining information in the obtained AV information, so as to improve the timeliness and accuracy of the current ticket remaining information in the cache, and control the frequency of information acquisition by preset time intervals to control the traffic costs generated by querying the AV information, thereby achieving a balance between the accuracy of the cached information and the traffic cost.

[0055] In some optional implementations of this embodiment, the method may further include: in response to receiving the information query instruction, sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache. In this way, it is possible to avoid calling the information query interface of the air traffic information in real time, which helps to reduce the traffic cost generated by the AV information query.

[0056] Furthermore, the implementation method may further include: after sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache, obtaining the AV information of the flight pointed to by the query instruction.

[0057] In this implementation, the execution entity can adopt an asynchronous update strategy. When receiving a query instruction, it first presents the current ticket remaining information in the cache to the user to avoid the delay caused by the AV information query process. After that, the execution entity obtains the corresponding AV information and updates the current ticket remaining information in the cache based on the obtained AV information, which can further improve the accuracy of the current ticket remaining information in the cache.

[0058] Further references Figure 4 , which shows a process 400 of another embodiment of a method for processing information. The process 400 of the method for processing information includes the following steps:

[0059] Step 401, based on the current preset time interval, obtain the AV information of the lowest-level cabin in the flight.

[0060] Research has found that due to price reasons, the tickets for the lowest-level cabin in a flight are sold out first. Based on this, in this embodiment, the execution subject only obtains the AV information of the lowest-level cabin in the flight, and then predicts the change speed of the actual tickets of other-level cabins in the flight through the actual ticket surplus of the lowest-level cabin in the flight. If the actual ticket surplus of the lowest-level cabin in the flight is large, the actual ticket surplus of other-level cabins is also large, and the change speed is slow; if the actual ticket surplus of the lowest-level cabin in the flight is small, then in the future time period, the sales speed of the actual ticket surplus of other-level cabins will become faster, and accordingly, the change speed of the actual ticket surplus information of other-level cabins will also become faster.

[0061] It should be noted that the lowest-level cabin in this embodiment is the lowest-level cabin among the cabins on sale in the flight. For example, if the lowest-level cabin in a flight is F-class, but the tickets of F-class are sold out, then E-class above F-class is used as the lowest-level cabin, and the execution entity obtains the AV information of the E-class cabin.

[0062] Step 402, determine whether the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is a number or "A". If it is "A", execute steps 403, 404, 405, and 406; if it is a number, execute steps 407 and 408.

[0063] It should be noted that in the AV information, "A" means that the actual remaining ticket amount is greater than or equal to 10; if the actual remaining ticket amount is less than 10, it will be displayed as a specific number.

[0064] In this embodiment, the execution subject determines the update frequency and update strategy of the current ticket balance information in the cache according to the actual ticket balance of the lowest level of cabin. For example, when the actual ticket balance is large (i.e., the actual ticket balance in the AV information is A), a relatively low update frequency can be used, i.e., a larger current preset time interval can be used; when the actual ticket balance is small (i.e., the actual ticket balance in the AV information is displayed as a specific number), a relatively high update frequency can be used, i.e., a smaller current preset time interval can be used.

[0065] Step 403, respectively determine the flight's popularity indicator, departure time indicator, and query time indicator from the pre-built mapping relationship list. The popularity indicator is used to represent the popularity of the flight's route, the departure time indicator is used to represent the time length from the flight's departure, and the query time indicator is used to represent the current time in the preset time interval.

[0066] Research has found that the speed of ticket sales is related to the popularity of the flight, the time until departure, and the time interval. For example, tickets for popular flights sell faster than those for less popular flights; the shorter the time until departure, the faster the ticket sales; and the ticket sales speed is slower in the time period from 0:00 to 7:00 every day than in the time period from 8:00 to 24:00. It can be understood that the ticket sales speed is positively correlated with the rate of change of the actual ticket balance information. Therefore, the execution subject in this embodiment can predict the rate of change of the actual ticket balance information by the popularity, the time until departure, and the position of the current time in the preset time interval.

[0067] As an example, the execution subject can characterize the popularity of the flight by parameters such as the number of flights included in the route where the flight is located, the speed at which the tickets are sold, and the number of people who purchase tickets. For example, the flights can be sorted according to the popularity, the top 100 flights are determined as popular flights, the flights ranked 100 to 300 are determined as ordinary flights, and the flights ranked after 300 are determined as non-popular flights, and a mapping relationship list between the flight ranking and the popularity of the flight is established. In this way, the execution subject can determine the popularity of the flight according to the position of the flight in the ranking. The execution subject can also divide the departure time into different departure time intervals, for example, 8-15 days from the departure time is determined as the first departure time interval, 4-7 days from the departure time is determined as the second departure time interval, and 0-3 days from the departure time is determined as the third departure time interval, and a mapping management list between each departure time interval and the flight departure time is established, so that the execution subject can determine the departure time identifier of the flight according to the position of the current flight in the departure time interval. The execution entity can also determine 0:00 to 7:00 every day as the first preset time interval and 8:00 to 24:00 as the second preset time interval. In this way, the execution entity can determine the query time identifier of the current flight at the current time according to the position of the current time in the preset time interval.

[0068] Step 404, determining a characteristic identifier of the flight based on the flight's popularity identifier, departure time identifier, and query time identifier.

[0069] As an example, the execution entity may directly combine the flight's popularity identifier, departure time identifier, and query time identifier into a character string, and the character string is the characteristic identifier of the flight.

[0070] Step 405: determine the time interval corresponding to the feature identifier from a pre-constructed mapping relationship list between feature identifiers and time intervals.

[0071] In this embodiment, the execution subject can predict the change rate of the actual ticket remaining information of the flight based on the popularity of the flight, the time length until departure, and the position of the current time in the preset time interval, and then use different current preset time intervals for different change rates of the actual ticket remaining information, and establish a mapping relationship between the characteristic identifier of the flight and the current preset time interval. In this way, the execution subject can determine the corresponding time interval based on the characteristic identifier of the flight obtained in step 404.

[0072] As an example, the execution entity may establish a mapping relationship list as shown in Table 1.

[0073] Table 1

[0074]

[0075]

[0076] Step 406: determine the time interval corresponding to the characteristic identifier as the current time interval.

[0077] For example, flight CA09 is ranked third in popularity ranking, has 10 days to take-off, and the current time is 22:00. Based on the mapping management list in step 405, it can be determined that the current time interval of the flight at the current time is 20 minutes. In this way, the current preset time interval matching the predicted change speed of the actual ticket remaining information of the flight can be determined, so as to control the update frequency of the current ticket remaining information in the cache.

[0078] Step 407: Reduce the current preset time interval according to the preset strategy, and determine the reduced time interval as the current time interval.

[0079] In this embodiment, when the execution subject determines that the actual ticket remaining information of the lowest level of class is a specific number from the AV information of the lowest level of class, it means that the actual ticket remaining of the lowest level of class is small. At this time, the current preset time interval should be reduced to increase the update frequency. For example, if the actual ticket remaining information of the lowest level of class is A, the current preset time interval is 30 minutes. When the actual ticket remaining of the lowest level of class becomes 9, the current preset time interval is reduced to 10 minutes.

[0080] In some optional implementations of this embodiment, the current preset time interval can be gradually reduced according to different actual ticket balances. For example, when the actual ticket balance of the lowest class becomes 9, the current preset time interval is adjusted to 10 minutes; when the actual ticket balance of the lowest class becomes 7, the current preset time interval is adjusted to 8 minutes; when the actual ticket balance of the lowest class becomes 5, the current preset time interval is adjusted to 6 minutes.

[0081] In a specific example of the present implementation, a correspondence list between the actual ticket remaining of the lowest level of cabin space and the current preset time interval value as shown in Table 2 can also be constructed based on data statistics. In this way, the execution entity can determine the value of the current preset time interval by retrieving the corresponding list.

[0082] Table 2

[0083]

[0084] Step 408: based on the current time interval, obtain AV information of each class of seats in the flight.

[0085] In this embodiment, when the executing entity determines that the actual ticket remaining information of the lowest level of class is a specific number from the AV information of the lowest level of class, it means that the actual ticket remaining of the lowest level of class is small. It can be predicted that the actual ticket remaining of other levels of class will also change in the future time period. Therefore, the current ticket remaining information of all levels of class of flights in the cache is updated in a full update manner to ensure its accuracy.

[0086] Step 409: If the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache, the current ticket remaining information is updated based on the actual ticket remaining information. This step corresponds to the aforementioned step 202 and will not be described again here.

[0087] from Figure 4 It can be seen that Figure 2 Compared with the embodiment shown in , the process 400 of the method for processing information in this embodiment embodies: in the AV information acquisition stage, only the AV information of the lowest cabin class in the passing flight is acquired, the actual ticket remaining information of other cabins is predicted by the actual ticket remaining information of the lowest cabin class, the adjustment strategy of the preset time interval is determined based on the judgment result, and when the actual ticket remaining information of the lowest cabin class meets the preset conditions, the current ticket remaining information of all cabins in the cache is updated. In this way, the traffic cost generated by the query information can be further reduced, and the cache can be further referenced. Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for processing information. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0088] It should be noted that the above steps of adjusting the current preset time interval based on the actual accuracy and the expected accuracy are also applicable to Figure 4 For example, when the actual ticket balance information is "A", the current preset time interval can be determined by the characteristic identifier of the flight, and then the current preset time interval is adjusted based on the actual accuracy rate and the expected accuracy rate.

[0089] like Figure 5 As shown, the device 500 for processing information in this embodiment includes: an information acquisition unit 501, configured to acquire AV information of a flight based on a current preset time interval, the AV information including actual ticket remaining information; an information update unit 502, configured to update the current ticket remaining information based on the actual ticket remaining information if the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache.

[0090] In this embodiment, the information acquisition unit 501 further includes: a lowest class information acquisition module, configured to obtain the AV information of the lowest class in the flight based on the current preset time interval; a determination module, configured to execute the following steps if the actual ticket remaining information in the AV information of the lowest class in the flight is a number: reduce the current preset time interval according to the preset strategy, and determine the reduced time interval as the current time interval; based on the current time interval, obtain the AV information of each class in the flight.

[0091] In this embodiment, the determination module is also configured to execute the following steps if the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is "A": determine the flight's popularity identifier, departure time identifier and query time identifier from a pre-constructed mapping relationship list; determine the flight's feature identifier based on the flight's popularity identifier, departure time identifier and query time identifier; determine the time interval corresponding to the feature identifier from a pre-constructed mapping relationship list between feature identifiers and time intervals; determine the time interval corresponding to the feature identifier as the current time interval; wherein the popularity identifier is used to characterize the popularity of the flight's route, the departure time identifier is used to characterize the length of time based on the flight's departure, and the query time identifier is used to characterize the position of the current time in a preset time interval.

[0092] In this embodiment, the device also includes an adjustment unit, which is configured to: obtain the actual accuracy of the current ticket balance information within a preset time period; in response to the actual accuracy being lower than the preset lower limit of the expected accuracy, determine the adjustment coefficient based on the actual accuracy, the upper limit of the expected accuracy and the lower limit of the expected accuracy; determine the adjustment step based on the preset step and the adjustment coefficient; determine the sum of the adjustment step and the current preset time interval as the current preset time interval; wherein the adjustment coefficient is positively correlated to the difference obtained by subtracting the average between the upper limit of the expected accuracy and the lower limit of the expected accuracy from the actual accuracy, and is negatively correlated to the difference between the upper limit of the expected accuracy and the lower limit of the expected accuracy.

[0093] In this embodiment, the device further comprises an information sending module, which is configured to send the current ticket remaining information of the flight pointed to by the information query instruction in the cache in response to receiving the information query instruction.

[0094] In this embodiment, after sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache, the information acquisition unit is further configured to acquire the AV information of the flight pointed to by the query instruction.

[0095] Reference below Figure 6 , which shows an electronic device (eg, Figure 1The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0096] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0097] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0098] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus, or a device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0099] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the AV information of the flight based on the current preset time interval; if the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache, updates the current ticket remaining information based on the actual ticket remaining information.

[0100] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an information acquisition unit and an information update unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the information acquisition unit may also be described as "a unit for acquiring AV information of a flight based on a current preset time interval".

[0103] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) to form a technical solution.

Claims

1. A method for processing information, wherein: include: Based on the current preset time interval, obtaining AV information of the flight, the AV information including actual ticket remaining information of the flight; If the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache, updating the current ticket remaining information based on the actual ticket remaining information; Wherein, obtaining the AV information of the flight based on the current preset time interval includes: Based on the current preset time interval, obtaining AV information of the lowest-level cabin in the flight; If the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is a number, perform the following steps: reducing the current preset time interval according to a preset strategy, and determining the reduced time interval as the current time interval, wherein the current time interval decreases as the actual ticket remaining information decreases; Obtaining the actual accuracy of the current air ticket remaining information within a preset time period; In response to determining that the actual accuracy is outside a preset numerical range of expected accuracy, determining an adjustment coefficient based on the actual accuracy, an upper limit of the expected accuracy, and a lower limit of the expected accuracy; Determining an adjustment step length based on a preset step length and the adjustment coefficient; The sum of the adjustment step length and the current preset time interval is determined as the adjusted current preset time interval; wherein the adjustment coefficient is positively correlated to the difference obtained by subtracting the average between the upper limit of the expected accuracy rate and the lower limit of the expected accuracy rate from the actual accuracy rate, and negatively correlated to the difference between the upper limit of the expected accuracy rate and the lower limit of the expected accuracy rate; Based on the adjusted current time interval, AV information of each class of seats in the flight is obtained.

2. The method according to claim 1, wherein: If the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is "A", perform the following steps: Determine the popularity indicator, departure time indicator and query time indicator of the flight from the pre-built mapping relationship list; Determining a characteristic identifier of the flight based on the popularity identifier, the departure time identifier, and the query time identifier of the flight; Determine the time interval corresponding to the feature identifier from a pre-constructed mapping relationship list between feature identifiers and time intervals; Determine the time interval corresponding to the feature identifier as the current time interval; Among them, the popularity identifier is used to represent the popularity of the route on which the flight is located, the take-off time identifier is used to represent the time length based on the flight's take-off, and the query time identifier is used to represent the position of the current time in the preset time interval.

3. The method according to any one of claims 1 to 2, further comprising: In response to receiving the information query instruction, the current ticket remaining information of the flight pointed to by the information query instruction in the cache is sent.

4. According to the method of claim 3, after sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache, the method further comprises: Obtain the AV information of the flight pointed to by the query instruction.

5. A device for processing information, wherein: include: An information acquisition unit, configured to acquire AV information of a flight based on a current preset time interval, wherein the AV information includes actual ticket remaining information of the flight; an information updating unit configured to update the current ticket remaining information based on the actual ticket remaining information if the actual ticket remaining information in the AV information is different from the current ticket remaining information in the cache; Wherein, the information acquisition unit further includes: A lowest class information acquisition module is configured to acquire the AV information of the lowest class in the flight based on the current preset time interval; The determination module is configured to execute the following steps if the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is a number: reducing the current preset time interval according to a preset strategy, and determining the reduced time interval as the current time interval, wherein the current time interval decreases as the actual ticket remaining information decreases; obtaining the actual accuracy of the current ticket remaining information within a preset time period; in response to determining that the actual accuracy is outside the numerical range of the preset expected accuracy, determining an adjustment coefficient based on the actual accuracy, the upper limit of the expected accuracy, and the lower limit of the expected accuracy; determining an adjustment step based on a preset step and the adjustment coefficient; determining the sum of the adjustment step and the current preset time interval as the adjusted current preset time interval; wherein the adjustment coefficient is positively correlated to the difference obtained by subtracting the average of the upper limit of the expected accuracy and the lower limit of the expected accuracy from the actual accuracy, and negatively correlated to the difference between the upper limit of the expected accuracy and the lower limit of the expected accuracy; and obtaining the AV information of cabins of each level in the flight based on the adjusted current time interval.

6. The device according to claim 5, wherein: The determination module is further configured to execute the following steps if the actual ticket remaining information in the AV information of the lowest-level cabin in the flight is "A": Determine the popularity indicator, departure time indicator and query time indicator of the flight from the pre-built mapping relationship list; Determining a characteristic identifier of the flight based on the popularity identifier, the departure time identifier, and the query time identifier of the flight; Determine the time interval corresponding to the feature identifier from a pre-constructed mapping relationship list between feature identifiers and time intervals; Determine the time interval corresponding to the feature identifier as the current time interval; Among them, the popularity identifier is used to represent the popularity of the route on which the flight is located, the take-off time identifier is used to represent the time length based on the flight's take-off, and the query time identifier is used to represent the position of the current time in the preset time interval.

7. The device according to any one of claims 5 to 6, further comprising an information sending module, configured to send current ticket remaining information of the flight pointed to by the information query instruction in the cache in response to receiving the information query instruction.

8. According to the device of claim 7, after sending the current ticket remaining information of the flight pointed to by the information query instruction in the cache, the information acquisition unit is further configured to acquire AV information of the flight pointed to by the query instruction.

9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Air ticket inquiring cache method

    CN107291920A

  • Cache-based flight remaining-seat querying method

    CN107885743A