Title solving method and electronic device
By providing step-by-step output and guidance, electronic devices help users gain a deeper understanding of the questions, solving the problem of poor user experience in traditional solution methods and cultivating users' problem-solving abilities.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-01-24
- Publication Date
- 2026-07-24
AI Technical Summary
Traditional problem-solving methods fail to cultivate users' problem-solving skills and independent thinking abilities, resulting in a poor user experience.
After acquiring the question to be solved, the electronic device outputs some solution steps and guidance information. After receiving user feedback, it outputs more solution steps, guiding the user's thinking step by step, and supporting user questions and corrections of incorrect solution steps.
It deepened users' understanding of the problem-solving steps, cultivated users' problem-solving thinking and independent thinking ability, and improved the user experience.
Smart Images

Figure CN122450342A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and in particular to methods for solving problems and electronic equipment. Background Technology
[0002] With the development of electronic device technology, electronic devices are becoming increasingly capable of performing a wide range of functions. To facilitate people's learning and work, current electronic devices can provide problem-solving functions. However, traditional problem-solving methods are not conducive to users gaining a deeper understanding of the problems, failing to cultivate users' problem-solving thinking and independent thinking abilities, resulting in a poor user experience. Summary of the Invention
[0003] This application provides a problem-solving method and an electronic device that can help users gain a deeper understanding of the problem, cultivate users' problem-solving thinking and independent thinking ability, and improve user experience.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] In a first aspect, a problem-solving method is provided, applied to an electronic device. The method includes: acquiring a problem to be solved; outputting n problem-solving steps and first information, wherein the n problem-solving steps are partial problem-solving steps in the answer to the problem to be solved, and n is a positive integer; the first information includes information for guiding the user to think about the problem to be solved; receiving feedback from the user on the first information; and in response to the feedback operation, outputting m problem-solving steps, wherein m is a positive integer.
[0006] Based on the above technical solution, after acquiring a question, the electronic device can output partial solution steps from the answer to the question, and can also output initial information including guidance for the user to think about the question. Then, after receiving feedback from the user on this initial information, it outputs m solution steps. In this way, by first providing the user with partial solution steps, then guiding the user through the initial information, and finally outputting m solution steps after receiving user feedback, the device can deepen the user's understanding of the solution steps. This facilitates a deeper understanding of the question, cultivates the user's problem-solving thinking and independent thinking ability, and improves the user experience.
[0007] In one possible design, the information used to guide the user's thinking about the problem to be solved refers to the solution approach for the m problem-solving steps. In this way, the first information includes the solution approach for the m problem-solving steps. By providing the solution approach first, the user is guided to try solving the problem themselves, which improves the user experience.
[0008] In one possible design, the m solution steps are those following the n solution steps, and each m solution step represents a portion of the solution steps in the answer to the question. In this way, the electronic device does not return all the solution steps to the user at once, but rather returns them step by step. This allows the user to focus on the currently output solution steps, deepening their understanding of the steps. This facilitates a deeper understanding of the question, cultivates the user's problem-solving thinking and independent thinking ability, and improves the user experience.
[0009] In one possible design, the information prompts used to guide the user's thinking about the problem to be solved allow the user to ask questions about the n processing steps. In this way, the electronic device can also support the user asking questions about the output solution steps, providing more problem-solving guidance and improving the user experience.
[0010] In one possible design, the feedback operation is an operation of asking a question about at least one of the n processing steps, and the m problem-solving steps are some or all of the problem-solving steps in the answers to the questions asked about the at least one processing step. In this way, after the electronic device receives the user's question about the output problem-solving steps, it can further answer the user's question, providing more problem-solving guidance and improving the user experience.
[0011] In one possible design, the m problem-solving steps are partial problem-solving steps in the answer to the question posed by the at least one processing step. After outputting the m problem-solving steps, the method further includes: outputting third information, the third information including the solution ideas for p problem-solving steps, the p problem-solving steps being problem-solving steps following the m problem-solving steps, the p problem-solving steps being partial problem-solving steps in the answer to the question posed by the at least one processing step, where p is a positive integer; receiving user feedback on the third information; and responding to the feedback operation by outputting the p problem-solving steps.
[0012] In this way, after receiving a user's question regarding the output solution steps, the system doesn't return all the solution steps at once when answering the user's question. Instead, it provides the next step of the solution approach, returning the solution steps to the user in stages. This allows the user to deepen their thinking about the solution steps. This helps the user gain a deeper understanding of the problem, cultivates their problem-solving thinking and independent thinking ability, and improves the user experience.
[0013] In one possible design, outputting n problem-solving steps includes outputting a schematic diagram corresponding to at least one of the n problem-solving steps. In this way, the electronic device can also generate schematic diagrams corresponding to the problem-solving steps, which can help the user understand the current problem-solving step.
[0014] In one possible design, the method further includes: receiving a question input by a user and an answer corresponding to the question; outputting second information, the second information indicating at least one of an incorrect solution step in the answer corresponding to the question and an error point in the incorrect solution step. In this way, the electronic device can support the validation of the user-inputted answer to determine whether the user-inputted answer is correct, helping the user find errors in the answer, pointing out the error points in the answer, and improving the user experience.
[0015] In one possible design, after receiving the user-input question and the corresponding answer, the method further includes: if it is determined that the answer corresponding to the question is incorrect, outputting the correct answer. This can deepen the user's impression and understanding of the incorrect question, enabling the user to learn how to solve the same question the next time, thus improving the user experience.
[0016] In one possible design, outputting the correct answer includes: outputting x solution steps and fourth information, wherein the x solution steps are partial solution steps from the correct answer, and x is a positive integer; the fourth information includes information to guide the user to think about a first question, which is a question determined based on the question input by the user and the incorrect solution steps in the answer corresponding to the question; receiving feedback from the user on the fourth information; and in response to the feedback, outputting y solution steps, where y is a positive integer.
[0017] In this way, during answer verification, the system first provides the user with partial steps to the correct solution. Then, it guides the user through a fourth piece of information, and only after receiving user feedback does it output the next step. This deepens the user's understanding of the solution process. It helps users gain a deeper understanding of incorrect answers, cultivates their problem-solving skills and independent thinking abilities, and improves the user experience.
[0018] In one possible design, the information used to guide the user's thinking about the first question refers to the solution approach for the y problem-solving steps.
[0019] In one possible design, the y solution steps are solution steps following the x solution steps, and the y solution steps are partial solution steps in the answer to the first question.
[0020] In one possible design, the information prompts used to guide the user's thinking about the first question allow the user to ask questions about the x processing steps.
[0021] In one possible design, the feedback operation is an operation of asking a question about at least one of the x processing steps, and the y problem-solving steps are some or all of the problem-solving steps in the answer to the question asked by the at least one processing step.
[0022] In one possible design, before outputting the second information, the method further includes: generating at least one first solution step based on the input question, the at least one first solution step being used to answer the input question; determining at least one second solution step included in the answer corresponding to the question; and determining whether the at least one second solution step contains an error based on the at least one first solution step and the at least one second solution step. This facilitates the electronic device in determining which specific solution step contains an error.
[0023] In one possible design, at least one of n, m, x, y, and p takes the value 1.
[0024] In one possible design, before outputting n solution steps, the method further includes: inputting the problem to be solved into a first preset model, and outputting the answer to the problem through the first preset model; inputting the answer to the problem to be solved into a second preset model, and outputting the solution steps included in the answer to the problem through the second preset model. In this way, different tasks can be performed by different models, making the model implementation simpler.
[0025] In one possible design, before outputting the m problem-solving steps, the method further includes: inputting the question raised for at least one of the n processing steps and the at least one of the n processing steps into a third preset model, and outputting the unsolved question through the third preset model; inputting the unsolved question output by the third preset model into a first preset model, and outputting the answer to the question raised for the at least one processing step through the first preset model.
[0026] In one possible design, before outputting the correct answer, the process includes: inputting the user-inputted question, the answer corresponding to the question, and the second information into a third preset model, and outputting the question to be answered through the third preset model; inputting the question to be answered output by the third preset model into a first preset model, and outputting the correct answer through the first preset model.
[0027] Secondly, this application provides an electronic device having the function of implementing the method described in the first aspect and any of the designs described above. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.
[0028] Thirdly, an electronic device is provided, comprising: a processor and a memory coupled to the processor, the memory for storing program code including instructions, the processor reading the instructions from the memory to cause the electronic device to perform the method as described in any of the preceding aspects and any of the designs therein.
[0029] In one possible design, the electronic device also includes a display screen for supporting various display operations performed by the electronic device.
[0030] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any of the preceding aspects and any of the designs therein.
[0031] Fifthly, a computer program product is provided, the computer program product comprising: a computer program or instructions that, when run on a computer, cause the computer to perform the method as described in any of the foregoing aspects and any of the designs thereof.
[0032] In a sixth aspect, this application provides a chip system including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes instructions, the at least one processor performs the method described in the first aspect and any of the designs therein.
[0033] It should be noted that the technical effects of any of the designs in the second to sixth aspects mentioned above can be found in the technical effects of the corresponding designs in the first aspect, and will not be repeated here. Attached Figure Description
[0034] Figure 1 This application provides a schematic diagram of a problem-solving process involving taking photos.
[0035] Figure 2 This is a schematic diagram illustrating another process of solving problems by taking photos, as provided in an embodiment of this application.
[0036] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0037] Figure 4This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;
[0038] Figure 5 This application provides a schematic diagram of an interface for enabling the problem-solving function of an electronic device.
[0039] Figure 6 This application provides another schematic diagram of an interface for enabling problem-solving functions on electronic devices.
[0040] Figure 7 A schematic diagram of an interface for inputting questions, provided as an embodiment of this application;
[0041] Figure 8 This application provides a schematic diagram illustrating a step-by-step problem-solving process.
[0042] Figure 9 A schematic diagram of an interface for outputting answers provided in an embodiment of this application;
[0043] Figure 10 This application provides a schematic diagram illustrating a process for answering questions raised by users.
[0044] Figure 11 This application provides a schematic diagram illustrating a process for validating user-inputted answers in an embodiment.
[0045] Figure 12 This is a schematic diagram of an answer verification interface provided in an embodiment of this application;
[0046] Figure 13 A flowchart illustrating a problem-solving method provided in an embodiment of this application;
[0047] Figure 14 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0048] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0049] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.
[0050] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0051] Currently, many photo-based problem-solving systems have emerged on the market. These systems have gained widespread attention due to their ease of use and accurate answers. By receiving an image containing the problem uploaded by the user, these systems can return the complete answer to the question. However, current photo-based problem-solving systems are all one-time interactions, meaning they return all the solution steps at once. For example: Figure 1 , Figure 2 This diagram illustrates a process of solving problems by taking photos. Figure 1 As shown in (1), the electronic device can display a main interface (or desktop) 100. The main interface 100 displays icons for one or more applications, such as an icon for a clock application, an icon for a gallery application, etc. The icons for different applications can be used to open the running interface of the corresponding application and realize the functions of the corresponding application. Among these icons is an icon 101 for a problem-solving application, which allows users to solve problems by taking photos. If a user performs an operation such as clicking on the icon 101 of the problem-solving application, the system will respond to that operation as follows: Figure 1 As shown in (2), the electronic device can display the running interface 110 of the problem-solving application. One or more functional controls are displayed in the running interface 110, such as the photo answering control 111, the help writing control 112, the AI photo control 113, etc. Different functional controls can be used to enable different functions of the problem-solving application.
[0052] Taking the photo-based Q&A control 111 as an example, this control can be used to enable the photo-based Q&A function of a problem-solving application. When the electronic device detects an action such as a user clicking the photo-based Q&A control 111, in response to this action, the electronic device can display something like... Figure 1The camera interface 120 shown in (3) displays the image captured by the camera 121, a camera button 122, and a title selection box 123. Subsequently, the user can perform an operation such as clicking the camera button 122, and the camera will respond to that operation as follows: Figure 1 As shown in (4), the electronic device can display a photo upload interface 130. The photo upload interface 130 displays a photo 131 taken by a camera. The photo 131 may include a title and may also include content unrelated to the title. The user can select a title by moving the position and size of the title selection box 123 on the photo 131.
[0053] like Figure 1 As shown in (4), taking the question selected in checkbox 123 as an example, the user can perform operations such as clicking the upload button 132 included in the upload interface 130 to upload the selected question to the problem-solving application. In response to this user operation, such as... Figure 2 As shown in Figure (1), the electronic device can display the running interface 200 of the problem-solving application, which displays image 201, showing the question selected by the aforementioned checkbox 123. Accordingly, after the problem-solving application receives image 201, the electronic device can parse the question in image 201 and output the answer to the question. For example, the electronic device can display the running interface 210 of the problem-solving application, which displays the complete answer to the question, such as answer 211.
[0054] The above problem-solving methods are not conducive to users gaining a deeper understanding of the questions, and fail to cultivate users' problem-solving thinking and independent thinking ability, resulting in a poor user experience.
[0055] Based on this, the embodiments of this application provide a problem-solving method that can help users gain a deeper understanding of the problem, help users master problem-solving methods, cultivate users' problem-solving thinking and independent thinking ability, and improve user experience.
[0056] The technical solutions provided in this application can be applied to electronic device 100 or to a system including electronic device 100.
[0057] Electronic device 100 can be a mobile phone, a personal digital assistant (PDA), a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices, and / or smart city devices. Optionally, electronic device 100 can be a fixed device or a portable device. Optionally, the operating system installed on electronic device 100 can include, but is not limited to, […]. Alternatively, other operating systems may be used. This application does not impose specific limitations on the specific type of electronic device or the operating system installed.
[0058] For example, Figure 3 A schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application is shown.
[0059] like Figure 3 As shown, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, buttons 180, a display screen 190, a camera 191, etc.
[0060] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0061] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0062] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0063] In some embodiments, processor 110 may include one or more interfaces, such as USB interface 130.
[0064] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0065] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, memory 120, display 190, and wireless communication module 160, etc.
[0066] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0067] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0068] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0069] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Starflash, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0070] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, Starflash, GNSS, WLAN, NFC, FM, and / or IR technologies, etc.
[0071] The display screen 190 is used to display images, videos, etc. The display screen 190 includes a display panel. In some embodiments of this application, the display screen 190 can be used to output answers to questions.
[0072] The memory 120 can be used to store computer executable program code, which includes instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of the electronic device 100, etc. Furthermore, the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120 and / or instructions stored in memory disposed in the processor.
[0073] In some embodiments of this application, memory 120 may be used to store various pre-trained models that can be used to solve problems.
[0074] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. In some embodiments of this application, the audio module 170 can be used to receive voice commands input by the user during the problem-solving process, and can also be used to broadcast various information (such as problem-solving steps, guidance information, etc.) to interact with the user via voice. A description of the problem-solving steps and guidance information is provided below.
[0075] Buttons 180 include a power button, volume buttons, etc. Buttons 180 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0076] Electronic device 500 can achieve shooting function through ISP, camera 191, video codec, GPU, display 190 and application processor.
[0077] Camera 191 is used to capture still images or videos. In some embodiments, electronic device 500 may include one or N cameras 191, where N is a positive integer greater than 1. In some implementations of this application, camera 191 can be used to photograph a problem.
[0078] In some embodiments, the electronic device 100 can be divided into functional modules. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional module.
[0079] In this embodiment, as one possible implementation, Figure 4 A schematic diagram of the structure of another electronic device 100 provided in an embodiment of this application is shown. For example... Figure 4 As shown, the electronic device 100 includes at least one of the following modules: a problem-solving module, an answer segmentation module, a schematic diagram generation module, a guidance generation module, a problem rewriting module, a problem-answer parsing module, and an answer comparison module.
[0080] The problem-solving module can be used to acquire the question input by the user, parse the question, and generate the answer. In this embodiment, the answer generated by the problem-solving module can refer to the complete answer to the question. A complete answer to a question may include at least one solution step, and each solution step may have independent semantics. Optionally, the question input by the user acquired by the problem-solving module can be a question directly input by the user into the problem-solving module in a question-solving scenario, or a question identified by the question-answer parsing module based on the content of the user input in an answer verification scenario.
[0081] The answer segmentation module can be used to segment the answer to a question, obtaining each solution step included in the answer. In some embodiments, the answer segmentation module can be used to segment the answer generated by the problem-solving module. In other embodiments, the answer segmentation module can be used to segment the answer obtained by the question-answer parsing module.
[0082] The diagram generation module can be used to generate a diagram corresponding to a solution step obtained from the answer segmentation module, in order to help users understand the solution step.
[0083] The guidance generation module can be used to generate guidance information, which can indicate the purpose, key points, or thought process of the next solution step. Optionally, the guidance information can also be used to instruct the user on how to view the next solution step.
[0084] The question rewriting module can be used to generate questions. In some embodiments, the question rewriting module can be used to generate questions based on the user's problem-solving steps and the user's question. In other embodiments, the question rewriting module can also be used to generate new questions based on the user's input question and answer obtained by the question answer parsing module, where the answer contains incorrect problem-solving steps, etc.
[0085] The question-and-answer parsing module receives user input, which may include questions and corresponding answers. This module can then identify which parts of the input constitute the question and which constitute the answer.
[0086] The answer comparison module is used to obtain the answers generated by the problem-solving module and the answers identified by the question-answer parsing module. It compares the two answers to identify identical and different problem-solving steps. For the different steps, it performs error analysis to determine which step is incorrect. The answer generated by the problem-solving module can refer to the answer generated by the problem-solving module after parsing the question identified by the question-answer parsing module. In some embodiments, to facilitate the comparison, both the answer generated by the problem-solving module and the answer identified by the question-answer parsing module can be segmented into problem-solving steps by the answer segmentation module. Then, the answer comparison module compares the problem-solving steps included in the two answers output by the answer segmentation module to identify the incorrect step.
[0087] It should be noted that, Figure 4 The division shown is merely illustrative and represents only one logical functional division. In actual implementation, there may be other division methods. For example, the problem-solving module and the answer-splitting module can be implemented as a single functional module. This module can obtain the problem input by the user and directly generate at least one solution step based on the problem. This at least one solution step constitutes the answer to the problem.
[0088] For example: Figure 4 All the modules shown can also be implemented as a single processing module, which can be used to implement, for example... Figure 4 The functions of each module are shown. Optionally, the processing module can be implemented by a processor or processor-related circuit components, and can be a processor or processing unit.
[0089] Optional, such as Figure 4 The electronic device 100 shown may further include at least one of a storage module and a display module. Figure 4 (Not shown in the image), this storage module stores programs or instructions. When the processing module executes the program or instructions, it causes... Figure 4 The electronic device 100 shown can perform the methods described in the following embodiments. The display module can be implemented by display screen-related components, and the display module can be used to support, for example... Figure 4 The electronic device 100 shown performs various display operations during the problem-solving process.
[0090] Understandable Figure 3 , Figure 4 The illustrated structures do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The processing steps or functional characteristics of the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0091] The technical solutions involved in the following embodiments can all be applied to applications with, for example, Figure 3 , Figure 4 The device implementation of the structure shown.
[0092] In some embodiments, a user can enable the problem-solving function (or, as described, the question-answering function) of an electronic device. In response to the activation of this function, the electronic device can answer the questions. Optionally, in this embodiment, the problem-solving function of the electronic device can be integrated into a smart assistant (such as Xiaoyi), that is, the problem-solving function is implemented by the smart assistant, and the user can enable the problem-solving function by waking up the smart assistant.
[0093] Taking the integration of problem-solving functions into a smart assistant on an electronic device as an example, users can activate the smart assistant by inputting a voice wake-up phrase (such as "Xiaoyi, Xiaoyi") or by long-pressing the power button. For instance, after receiving the aforementioned activation command, the electronic device can display something like... Figure 5 The wake-up interface 500 shown in Figure (1) serves to remind the user that the smart assistant has been activated. The wake-up interface 500 may include commonly used functional controls, such as "idiom chain" and "nearby restaurants." In some embodiments, these functional controls may include a problem-solving control 501. The user can perform operations such as clicking on the problem-solving control 501, and in response to this operation, the smart assistant begins to perform the problem-solving function. Of course, the problem-solving control 501 can also be displayed on other interfaces. For example, the wake-up interface 500 may also display an upward swipe control 502, a main control 503, etc. The user can perform a trigger operation on the upward swipe control 502 or the main control 503, and in response to this operation, the electronic device may display... Figure 5 The running interface 510 of the smart assistant shown in (2) is as follows. Figure 5 The problem-solving control 501 shown in (1) can also be displayed in the running interface 510 of the smart assistant.
[0094] Alternatively, the problem-solving function of electronic devices can be integrated into applications; that is, electronic devices can achieve problem-solving functionality by installing applications with such capabilities. For example... Figure 1 As shown in (1) and (2), the electronic device can display the application's icon. The user can perform various operations to enable the application, such as clicking the icon. In response to these operations, the electronic device can run the application and thus enable the problem-solving function. Optionally, the aforementioned application with problem-solving function can be a dedicated application for problem-solving, or it can be an application that includes problem-solving function.
[0095] Alternatively, the problem-solving function of an electronic device can also exist as a system function of the electronic device. Users can activate this system function through specific operations. For example, these specific operations can include triggering specific controls in various display locations such as the pull-down control center, long-pressing the power button, or issuing voice commands such as "Please help me solve this problem." Of course, the specific operation can also be other button operations, gesture operations, voice commands, etc. Optionally, before the user activates the system function of the electronic device through a specific operation, the electronic device can present any interface, such as the running interface of various applications, the always-on display, the lock screen, the desktop, etc. Alternatively, before the user activates the system function of the electronic device through a specific operation, the electronic device can also present a specific interface, such as a document display interface, an image viewing interface, the running interface of a specific application (such as a problem-solving application, an office application, etc.), or any other interface that may have problem-solving requirements. For example, the system function of the electronic device can only be activated when the electronic device presents these specific interfaces and receives the specific operation performed by the user. Conversely, if the interface presented by the electronic device is not one of these specific interfaces, the system function of the electronic device cannot be activated even if the user performs the aforementioned specific operation. For example, users can only perform the aforementioned specific operations when the electronic device displays these specific interfaces. In other words, the electronic device only has an entry point (such as a specific control or button) for the user to perform the aforementioned specific operations when these specific interfaces are displayed.
[0096] Taking the problem-solving function of an electronic device as an example, which is considered a system function of the electronic device. For instance, such as... Figure 6 As shown, the electronic device displays an office application's operating interface 600, which shows question 601. The user can input voice commands such as "Please help me solve the question on the screen." In response to this voice command, the electronic device activates this system function and solves the question currently on the screen (i.e., question 601). This can be understood as... Figure 6 The example shown assumes the electronic device is currently displaying one question. In real-world applications, the electronic device may display multiple questions. It is also understood that... Figure 6 The example shown illustrates how, in a scenario where an electronic device displays a question on its interface, the user can activate the question-solving function using a voice command such as "Please help me answer the question on the screen," thus providing an answer to the currently displayed question. Even when no question is displayed on the electronic device, the user can activate the question-solving function through other operations to answer subsequently entered questions.
[0097] In some embodiments, when the problem-solving function of an electronic device is enabled, if there are no problems in the electronic device (e.g., Figure 1 In (1) and (2), as shown Figure 5 In scenarios such as those shown, the electronic device can also display a question input interface, through which the user can input the question. As a possible example, this question input interface can be specifically implemented as follows: Figure 1 The running interface 110 shown in (2) is in the form of the interface.
[0098] For example, the running interface 110 displays a photo-taking Q&A control 111. Users can use this control 111 to activate the electronic device's camera and input the question into the device by taking a picture of it. The specific process can be found in... Figure 1 In (3) to Ru Figure 2 The process shown in (1) is as follows.
[0099] For example, the operating interface 110 also displays a camera button 114, an input box 115, etc. Users can perform actions such as clicking the camera button 114; in response to this action, the electronic device can activate the camera to take a picture, and simultaneously display information such as... Figure 1 The interfaces shown in (3) and (4) are as follows. The electronic device can display images as captured in response to the captured images. Figure 7 The interface 700 shown above displays an image 701 obtained by taking a photo using the camera button 114. Users can simultaneously use other methods such as... Figure 7 The user can input voice commands or text, such as "Help me solve this problem," into the input box 115 to instruct the electronic device to solve the problem in picture 701. Alternatively, the user can directly input the problem in text form into the electronic device through the input box 115. Or, the user can input the problem by reading it aloud through the input box 115.
[0100] For example, the running interface 110 also displays an add button 116, which allows users to directly input images of questions stored in the album or files containing questions into the electronic device.
[0101] In this embodiment of the application, the questions can be input into the electronic device in various forms such as text, voice, images, and videos, and this embodiment of the application does not impose any restrictions on this.
[0102] Of course, in other embodiments, when the problem-solving function of the electronic device is enabled, if the electronic device already contains problems (e.g.) Figure 6 In the scenario shown, the electronic device may not need to display a question input interface. Optionally, such as... Figure 6 In the scenario shown, the questions answered by the electronic device can be... Figure 6The interface shown may contain some or all of the questions. Users can instruct the electronic device to answer all or some of the questions on the interface.
[0103] Furthermore, after acquiring a problem to be solved, the electronic device can analyze the problem and provide a step-by-step solution. This way, instead of returning the entire solution at once, the device returns the steps one by one. This allows the user to focus on the currently displayed solution, deepening their understanding and prompting further thought. This facilitates a deeper comprehension of the problem, cultivates problem-solving skills and independent thinking, and improves the user experience. Moreover, by returning the solution steps in stages, it's easier for the user to ask questions about the solution later, providing more detailed solutions and enhancing the overall user experience.
[0104] The following is combined Figure 4 The structure shown illustrates the process of an electronic device outputting the solution steps for a problem in stages.
[0105] For example, such as Figure 8 As shown, the problem-solving module receives problem 801, parses it, and outputs answer 802. The module can directly reuse the current problem-solving system to generate a complete answer based on the problem. Next, answer 802 is input into the answer segmentation module for segmentation to obtain all the problem-solving steps included in answer 802, such as steps 803a to 803d. As one possible implementation, the answer segmentation module can segment answer 802 based on keywords. For example, keywords can include various keywords that can be used to indicate sequence, such as "first," "then," "after," "first step," "second step," "next," "finally," and "ultimately," to obtain each problem-solving step. As another possible implementation, the answer segmentation module can also input answer 802 into a pre-trained model, which then outputs steps 803a to 803d. Of course, the two implementations described above can also be used in combination. For example, electronic devices can combine the problem-solving steps obtained based on keywords with the problem-solving steps output by the model to comprehensively determine all the problem-solving steps included in the answer. This can make the obtained problem-solving steps more accurate.
[0106] As can be understood, the example above illustrates how an electronic device first obtains the complete answer to the question and then breaks down the solution steps. This approach simplifies and makes obtaining the solution steps easier to implement. In other examples, the electronic device can also directly generate each solution step sequentially based on the question.
[0107] Optional, such as Figure 8 As shown, after the answer segmentation module obtains solution steps 803a to 803d, the schematic diagram generation module can also generate a schematic diagram corresponding to each solution step based on each solution step in solution steps 803a to 803d. Figure 8 The diagram shown only corresponds to step 803a. It is understood that for some problem-solving steps, such as more complex ones, the diagram generation module will generate a corresponding diagram; for others, such as simpler ones, it will not. In other words, some problem-solving steps have corresponding diagrams, while others do not. For example, the diagram generation module can also input the problem-solving steps into a pre-trained model, which will then output the corresponding diagram. For example, this pre-trained model can be a large language model (LLM). In this way, the electronic device can also generate diagrams corresponding to problem-solving steps, which can assist the user in understanding the current problem-solving step.
[0108] Optional, such as Figure 8 As shown, after the answer segmentation module obtains solution steps 803a to 803d, the guidance generation module can also generate guidance information corresponding to each solution step. The guidance information corresponding to each solution step can be used to indicate to the user the purpose, key points, or thought process of the next solution step. Optionally, the guidance information corresponding to each solution step can also be used to instruct the user on how to view the next solution step. For example... Figure 8 The diagram shows the guidance information 805 corresponding to solution step 803a. Guidance information 805 can be used to instruct the user on the solution approach for the next solution step (i.e., solution step 803b). In this way, the electronic device can also generate guidance information corresponding to each solution step, providing the next solution approach and allowing the user to try to solve the problem independently. This can guide the user's thinking and problem-solving, improving the user experience.
[0109] Understandably, for the last solution step, since there are no further solution steps, the guidance information corresponding to the last solution step can be used to indicate to the user that all solution steps have been output, that is, to indicate to the user that the solution step output this time is the last solution step.
[0110] Finally, the electronic device can output each solution step to the user (e.g., display on a screen or read aloud) based on each solution step obtained by the answer segmentation module, the diagram generated by the diagram generation module, and the guidance information generated by the guidance generation module. For example, Figure 9As shown in (1), taking question 801 as an example, the electronic device can display the solution interface 900, which displays question 801, solution step 803a, schematic diagram 804 corresponding to solution step 803a, and guidance information 805 corresponding to solution step 803a. Figure 9 In example (1), the electronic device outputs the first solution step of problem 801. Subsequently, when the electronic device receives a text or voice input such as "Next" to view the next solution step, in response to this operation, the electronic device can continue to output solution step 803b and the guidance information corresponding to solution step 803b. If a diagram corresponding to solution step 803b exists, the diagram corresponding to solution step 803b can also be output. Next, when the electronic device receives another operation to view the next solution step, the electronic device can continue to output at least one of solution step 803c, the guidance information corresponding to solution step 803c, and the diagram corresponding to solution step 803c. This continues until the electronic device outputs the last solution step.
[0111] It is understood that in this embodiment, when the electronic device outputs solution steps in steps, it is exemplified by outputting one solution step at a time. In other implementations, when the electronic device outputs solution steps in multiple steps, it can also output multiple solution steps at each step. These multiple solution steps are partial solution steps from the answer to the question to be solved. For example, after obtaining the question to be solved, the electronic device can first output the first two solution steps (i.e., the first and second solution steps). Then, upon receiving an operation instructing the electronic device to output the solution steps in the next step, the electronic device outputs the solution steps following the aforementioned first two solution steps, such as the third solution step, the fourth solution step, etc., and so on, until all solution steps are output. Optionally, in this implementation, there is no limit to the number of solution steps specifically output at each step.
[0112] Optionally, in this embodiment of the application, when the question 801 is input into the electronic device in a non-text form such as an image, the electronic device can also output the recognized question so that the user can confirm whether the question recognized by the electronic device is accurate. Optionally, the recognized question output by the electronic device can also be edited by the user so that the user can correct the question if there is an error in the question recognized by the electronic device.
[0113] In some embodiments, the electronic device also allows the user to ask questions about the output solution steps. In response to the user's question, the electronic device can also answer that question. For example, the electronic device can support the user asking questions about the currently output solution steps while outputting a solution step. Optionally, in this example, such as... Figure 9 The guidance information 805 shown in (1) can also instruct the user to ask questions about the current solution step, so that the user is aware that the electronic device has the ability to support the user in asking questions about the solution step. Of course, in other examples, the electronic device can also support the user in asking questions about the solution steps before the output solution step when outputting a solution step. In this way, the electronic device can also support the user in asking questions about the output solution steps, and the electronic device can provide the user with more solution guidance.
[0114] The following is combined Figure 4 The structure shown is for user... Figure 9 Taking the problem-solving step 803a shown in (1) as an example, this paper introduces the process of electronic devices receiving questions raised by users regarding the problem-solving steps and answering those questions.
[0115] For example, such as Figure 10 As shown, the problem rewriting module can obtain the user's question 1001 and the solution step 803a corresponding to question 1001. The problem rewriting module generates a question 1002 based on question 1001 and solution step 803a. For example, the problem rewriting module can input question 1001 and solution step 803a into a pre-trained model, and the model outputs question 1002. Alternatively, the problem rewriting module can use solution step 803a as known conditions and question 1001 as the question to generate question 1002. Optionally, the problem rewriting module can also obtain question 801 and generate question 1002 based on question 801, question 1001, and solution step 803a to make the generated question more accurate. Optionally, the problem rewriting module can also obtain one or more solution steps preceding the user's question and combine these one or more solution steps to generate a question, making the generated question more accurate.
[0116] Optionally, the solution step 803a corresponding to question 1001 can be determined by the electronic device based on the output solution steps and the question 1001 input by the user. For example, when the electronic device supports the user asking questions about the currently output solution steps, after receiving the user's question, the electronic device can determine the currently output solution steps as the solution steps corresponding to the question input by the user.
[0117] For example, when an electronic device allows users to ask questions about both the currently output and previously output problem-solving steps, the device can determine the specific problem-solving step the question pertains to after receiving the user's question. For instance, if the user's question contains keywords such as "this," "this one," "the," or "this," indicating the currently output problem-solving step, the electronic device can determine that the question refers to the currently output problem-solving step. Similarly, if the user's question contains keywords such as "previous," "before," "the previous one," or "just now," indicating the previously output problem-solving step, the electronic device can determine that the question refers to the previously output problem-solving step.
[0118] Next, as Figure 10 As shown, the problem-solving module can obtain problem 1002, parse it, and generate answer 1003. The implementation of generating answer 1003 by the problem-solving module can be found in the implementation of generating answer 802. Finally, the electronic device can output answer 1003 to the user. For example, as shown... Figure 9 As shown in Figure (2), the electronic device can display a solution interface 910. The solution interface 910 displays question 1001 and answer 1003. Optionally, it also displays previously output solution steps 803a, question 801, etc. Optionally, guidance information 1004 can be displayed in answer 1003, which instructs the user on how to view the next solution step. Optionally, the guidance information 1004 can also be generated by a guidance information generation module.
[0119] Figure 9 In the example shown in (2), the electronic device directly outputs all the solution steps of answer 1003 at once. Outputting all the solution steps at once avoids situations where the user is unclear about which question to answer initially due to excessive interaction with the electronic device. Of course, in other examples, the electronic device can also use methods such as... Figure 9 As shown in (1), the solution steps included in answer 1003 are output step by step. In this example, the answer segmentation module can also obtain the answer 1003 generated by the solution module and segment the solution steps in answer 1003 so that the electronic device can output the solution steps included in answer 1003 step by step. Similarly, the schematic diagram generation module can also generate schematic diagrams corresponding to the solution steps segmented by the answer segmentation module, and the guidance information generation module can also generate corresponding guidance information.
[0120] In some other embodiments, when the problem-solving function of the electronic device is enabled, the electronic device can also verify the input answer based on this function. In this embodiment, the answer input to the electronic device can refer to the answer obtained by an entity other than the electronic device (such as a user) parsing the question. In this embodiment, the electronic device can acquire the question and the input answer, parse the acquired question, and generate the answer to the question. The electronic device can compare its own generated answer with the answer input to the electronic device to determine any errors in the input answer. In this embodiment, the implementation of the electronic device acquiring the question and answer can refer to the implementation in the embodiment of the electronic device acquiring the question described above. Thus, the electronic device can support the verification of the user's input answer to determine whether the user's input answer is correct, helping the user find errors in the answer, pointing out the errors in the answer, and improving the user experience.
[0121] The following is combined Figure 4 The structure shown illustrates the process by which electronic devices validate user-input answers.
[0122] For example, such as Figure 11 As shown, the question-and-answer parsing module can obtain the questions and answers input by the user, identify the questions and answers, and determine which content constitutes the question and which constitutes the answer. For example: Figure 11 As shown, taking image 1101 containing questions and answers as an example, which is input by the user into the electronic device, the question parsing module can perform region segmentation on image 1101, dividing it into at least one region. Then, the question parsing module can input the segmented regions into a pre-trained model. This model can perform feature recognition on the regions, dividing them into two categories: regions containing questions and regions containing answers. The question-answer parsing module then extracts information from both categories of regions to obtain question 1102 and answer 1103.
[0123] For example, if a user inputs text containing a question and answer into an electronic device, the question parsing module can directly analyze the text to obtain the question and answer. Of course, in other examples, similar to the question input format described above, questions and answers can also be input into the electronic device in other formats.
[0124] Optionally, in this embodiment, the question and answer can be entered into the electronic device simultaneously or sequentially. For example, the question and answer may be presented in different images and uploaded to the electronic device by the user sequentially. Alternatively, the question and answer may be different texts and entered into the electronic device by the user sequentially.
[0125] Next, as Figure 11 As shown, the problem-solving module can obtain question 1102 from the question-answer parsing module, parse question 1102, and output the answer 1104. Then, the answer 1104 can be input into the answer segmentation module for segmentation to obtain all the problem-solving steps included in the answer 1104, such as problem-solving steps 1104a to 1104c, i.e., the answer list 1105.
[0126] At the same time, the answer 1103 obtained by the question answer parsing module can also be input into the answer segmentation module for segmentation to obtain all the problem-solving steps included in the answer 1103, such as problem-solving steps 1103a to 1103c, i.e., answer list 1106.
[0127] Understandably, the number of solution steps included in answer list 1105 and answer list 1106 may be the same or different.
[0128] Then, the answer comparison module can obtain answer list 1105 and answer list 1106 respectively. The answer comparison module can compare the two answer lists to determine whether all the solution steps in answer list 1106 are correct. For example, the answer comparison module can also input the two answer lists into a pre-trained model, and the model outputs the comparison result. In one possible case, the comparison result can indicate that answer list 1106 is completely correct. In another possible case, the comparison result can indicate that there are erroneous solution steps in answer list 1106. Optionally, in this case, the comparison result can also indicate the specific errors in the erroneous solution steps. Furthermore, the electronic device can output the comparison result obtained by the answer comparison module to the user.
[0129] In some embodiments, when the electronic device detects an error in the input answer, it can also correct the error and provide the user with the correct answer. This reinforces the user's understanding and recall of incorrect answers, enabling them to solve similar problems in the future and improving the user experience. For example: Figure 11As shown, when the comparison result output by the answer comparison module indicates that answer list 1106 contains an error, this comparison result can be input into the question rewriting module. Simultaneously, the question rewriting module can also obtain answer list 1106 (or answer 1103) and question 1102. Based on the comparison result, answer list 1106, and question 1102, the question rewriting module can generate question 1107. Similarly, the question rewriting module can also input the comparison result, answer list 1106, and question 1102 into a pre-trained model, and the model will output question 1107. For example, the question rewriting module can use the solution steps preceding the erroneous solution steps indicated in the comparison result as known conditions and use question 1102 as the question to generate question 1107.
[0130] Then, the question 1107 generated by the question rewriting module 1106 can be input into the problem-solving module again to generate the answer 1108.
[0131] Optionally, in this embodiment, when the electronic device provides the correct answer to the user, the electronic device can also output the solution steps in the answer in the step-by-step manner described above. This can deepen the user's understanding of the errors. Therefore, furthermore, as... Figure 11 As shown, answer 1108 can also be input into the answer segmentation module, which outputs each solution step, such as solution step 1108a. Figure 11 Only one is shown in the example. Similarly, in this embodiment, the diagram generation module can also generate a diagram corresponding to each solution step in at least one solution step based on the solution steps output by the answer segmentation module. The guidance generation module can also generate guidance information corresponding to each solution step based on the solution steps output by the answer segmentation module to guide the user to the next step of the solution. For details on the implementation of segmenting solution steps and generating guidance information, please refer to [reference needed]. Figure 8 The implementation shown is as follows. In this way, by guiding users to the next step of the solution through guidance information, the user's understanding of the error can be deepened, thus improving the user experience.
[0132] Finally, the electronic device can output to the user the comparison results obtained by the answer comparison module, as well as the problem-solving steps obtained by the answer segmentation module. For example, such as... Figure 12 As shown, the electronic device can display a verification interface 1200, which displays the following: Figure 11 The image shown is 1101, the comparison result is 1201 (which can be used as an example of the second information), the solution steps are 1108a, and the guiding information is 1202. Figure 12The example shown illustrates how an electronic device provides the correct answer to a user by displaying the solution steps in a step-by-step manner when it detects an incorrect answer. In other embodiments, similar to the scenario described above, when the electronic device detects an incorrect answer, it can also output all the correct solution steps at once to provide the user with a complete correct answer.
[0133] For example, Figure 13 A flowchart illustrating a problem-solving method provided in an embodiment of this application is shown. Figure 13 As shown, the method includes the following steps:
[0134] S1301, Electronic devices acquire unanswered questions.
[0135] For example, the question to be answered can be as follows: Figure 9 Problem 801, shown in (1), is an unsolved problem.
[0136] S1302, The electronic device outputs n problem-solving steps and the first piece of information.
[0137] Here, n solution steps are partial solution steps from the answer to the problem to be solved, where n is a positive integer. For example, taking n as 1, these n solution steps can be as follows: Figure 9 The problem-solving steps 803a shown in (1) are as follows. The first information includes information to guide the user's thinking about the problem to be solved. For example, the first information may be as follows: Figure 9 The guidance information 805 shown in (1) is shown in the middle.
[0138] S1303, The electronic device receives feedback from the user regarding the first information.
[0139] Optionally, the feedback action can be a question action or an action to view m solution steps.
[0140] S1304. The electronic device responds to the feedback operation and outputs m solution steps.
[0141] Where m is a positive integer.
[0142] In some embodiments, the information used to guide the user's thinking about the problem to be solved refers to the solution approach of these m solution steps. Optionally, in this embodiment, these m solution steps can be solution steps following the aforementioned n solution steps. These m solution steps are partial solution steps from the answer to the problem to be solved obtained in step S1301.
[0143] In some other embodiments, the information prompts used to guide the user in thinking about the question to be answered allow the user to ask questions about the aforementioned n processing steps. Optionally, in this embodiment, the feedback operation in step S1303 can be an operation of asking a question about at least one of the n processing steps, and these m problem-solving steps can be some or all of the problem-solving steps in the answer to the question raised in response to at least one processing step, for example, such as Figure 9 In the example shown in (2), these m solution steps can be as follows: Figure 9 The solution steps included in answer 1003 shown in (2) are as follows.
[0144] Optionally, in this embodiment, before outputting m solution steps, the electronic device may also generate a question to be solved based on the question posed for at least one of the n processing steps and the question addressed by at least one of those n processing steps. For details on this implementation, please refer to [reference needed]. Figure 10 The implementation shown is understandable. Figure 10 The example shown is based on an electronic device outputting one solution step at a time. When the electronic device outputs multiple solution steps at a time, it can also support users to ask questions about one or more of these solution steps.
[0145] This application also provides a chip system, such as... Figure 14 As shown, the chip system includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 are interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices. As another example, the interface circuit 1402 can be used to send signals to other devices (e.g., the processor 1401). Exemplarily, the interface circuit 1402 can read instructions stored in memory and send those instructions to the processor 1401. When the instructions are executed by the processor 1401, the electronic device can perform the various steps performed by the electronic device in the above embodiments. Of course, the chip system may also include other discrete components, and this application embodiment does not specifically limit this.
[0146] Optionally, the chip system may include one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0147] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0148] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0149] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0150] This application also provides a computer storage medium storing computer instructions, which, when executed on an electronic device, cause the electronic device to perform the methods described in the above-described method embodiments.
[0151] This application provides a computer program product, which includes a computer program or instructions that, when run on a computer, cause the computer to perform the methods described in the above-described method embodiments.
[0152] In addition, this application also provides an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the apparatus to perform the methods in the above-described method embodiments.
[0153] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0154] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0155] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The embodiments can be combined with or referenced to each other without conflict. The apparatus embodiments described above are merely illustrative; for example, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0156] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0157] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0158] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0159] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for solving a problem, characterized in that, Applied to electronic devices, the method includes: Get the questions to be answered; Output n solution steps and first information, where the n solution steps are partial solution steps in the answer to the question to be solved, where n is a positive integer, and the first information includes information to guide the user to think about the question to be solved; Receive user feedback on the first information; In response to the feedback operation, output m solution steps, where m is a positive integer.
2. The method according to claim 1, characterized in that, The information used to guide the user in thinking about the question to be answered includes the solution approach for the m steps.
3. The method according to claim 1 or 2, characterized in that, The m solution steps are the solution steps following the n solution steps, and the m solution steps are part of the solution steps in the answer to the question to be solved.
4. The method according to claim 1, characterized in that, The information prompts used to guide users in thinking about the questions to be answered allow users to ask questions about the n processing steps.
5. The method according to claim 4, characterized in that, The feedback operation is an operation of asking a question about at least one of the n processing steps, and the m problem-solving steps are some or all of the problem-solving steps in the answer to the question asked by the at least one processing step.
6. The method according to any one of claims 1-5, characterized in that, The output includes n problem-solving steps, including: Output a schematic diagram corresponding to at least one of the n problem-solving steps.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Receives user input of a question and the corresponding answer; Output second information, which is used to indicate at least one of the following: an incorrect solution step in the answer corresponding to the question, and an error point in the incorrect solution step.
8. The method according to claim 7, characterized in that, After receiving the user-inputted question and the corresponding answer, the method further includes: If it is determined that the answer to the question is incorrect, output the correct answer.
9. The method according to claim 7 or 8, characterized in that, Before outputting the second information, the method further includes: At least one first solution step is generated based on the input question, and the at least one first solution step is used to solve the input question; Determine at least one second problem-solving step included in the answer corresponding to the question; Based on the at least one first problem-solving step and the at least one second problem-solving step, determine whether there is an error in the at least one second problem-solving step.
10. An electronic device, characterized in that, include: A processor and a memory, the memory being coupled to the processor, the memory being used to store program code including instructions, the processor reading the instructions from the memory to cause the electronic device to perform the method as described in any one of claims 1-9.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-9.
12. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1-9.