CN110599838A - Mathematics automatic question setting method and device - Google Patents

Mathematics automatic question setting method and device Download PDF

Info

Publication number
CN110599838A
CN110599838A CN201910894206.6A CN201910894206A CN110599838A CN 110599838 A CN110599838 A CN 110599838A CN 201910894206 A CN201910894206 A CN 201910894206A CN 110599838 A CN110599838 A CN 110599838A
Authority
CN
China
Prior art keywords
question
theme
rule
topic
calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910894206.6A
Other languages
Chinese (zh)
Inventor
毛佳俊
杨元祖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ape Force Education Technology Co ltd
Original Assignee
Beijing Ape Power Future Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ape Power Future Technology Co Ltd filed Critical Beijing Ape Power Future Technology Co Ltd
Priority to CN201910894206.6A priority Critical patent/CN110599838A/en
Publication of CN110599838A publication Critical patent/CN110599838A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B7/00Electrically-operated teaching apparatus or devices working with questions and answers
    • G09B7/02Electrically-operated teaching apparatus or devices working with questions and answers of the type wherein the student is expected to construct an answer to the question which is presented or wherein the machine gives an answer to the question presented by a student

Abstract

The application provides a mathematics automatic question setting method and a device, wherein the mathematics automatic question setting method comprises the following steps: acquiring a question type; acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type; randomly generating a calculation formula according to the question template and the question rule, and calculating to obtain a calculation result of the calculation formula; and generating a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule. The titles corresponding to the title types can be randomly given through the pre-stored title templates and the title rules, so that the knowledge points related to the title types can be covered, and the storage space for storing the titles is saved.

Description

Mathematics automatic question setting method and device
Technical Field
The present application relates to the field of online learning technologies, and in particular, to a mathematical automatic question setting method and apparatus, a computing device, and a computer-readable storage medium.
Background
With the development of networks, the learning mode of students gradually shifts from paper to online learning of electronic products. And accessing a preset question bank through the electronic equipment to perform online learning and question making.
The existing electronic equipment stores massive questions into a question bank, and partial questions are extracted from the question bank every time for students to do questions. However, because the forms of the questions are changed more, if all the questions are stored, a large amount of storage space is occupied, resources are consumed, and if all the questions are not stored, missing knowledge points exist, so that the knowledge mastered by students cannot be examined completely.
Therefore, how to solve the above problems becomes a problem to be solved urgently by the technicians at present.
Disclosure of Invention
In view of the above, embodiments of the present application provide a mathematical automatic question-making method and apparatus, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a mathematical automatic question setting method, including:
acquiring a question type;
acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type;
randomly generating a calculation formula according to the question template and the question rule, and calculating to obtain a calculation result of the calculation formula;
and generating a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule.
Optionally, randomly generating a calculation formula according to the topic template and the topic rule, including:
acquiring a parameter number range, a parameter value range and an operation symbol set in the question rule;
randomly determining the number of parameters according to the parameter number range;
randomly determining a parameter value according to the parameter value range;
randomly determining an operation symbol according to the operation symbol set;
and generating a calculation formula according to the question template, the number of the parameters, the parameter values and the operation symbols.
Optionally, generating a title according to the calculation formula and the calculation result, including:
generating an initial title according to the calculation formula and the calculation result;
and randomly hiding any parameter or operation symbol in the initial theme to generate the theme.
Optionally, randomly generating a calculation formula according to the topic template and the topic rule, including:
acquiring parameter number range, parameter value range, operation symbol set and parameter logic in the question rule;
randomly determining the number of parameters according to the parameter number range;
randomly determining a parameter value according to the parameter value range;
randomly determining an operation symbol according to the operation symbol set;
and generating a calculation formula according to the question template, the number of the parameters, the parameter values, the operation symbols and the parameter logic.
Optionally, generating a title according to the calculation formula and the calculation result, including:
generating a question step and an initial question according to the calculation formula, the calculation result and the parameter logic;
and randomly hiding at least one parameter or operation symbol in the title step and the initial title to generate a title.
Optionally, the mathematical automatic question setting method further includes:
and under the condition that the calculation result does not match the theme rule, deleting the calculation formula, randomly generating the calculation formula again according to the theme template and the theme rule, and calculating to obtain the calculation result of the calculation formula.
Optionally, the mathematical automatic question setting method further includes:
and counting question setting time, and prompting that question setting fails under the condition that the question setting time exceeds preset timeout time.
Optionally, after generating a question according to the calculation formula and the calculation result, the method for automatically proposing a mathematical question further includes:
receiving a user answer to the topic;
determining a user answer result according to the user answer and the standard answer of the question;
and saving the user answer result.
According to a second aspect of embodiments of the present application, there is provided a mathematical automatic question apparatus, including:
a first obtaining module configured to obtain a topic type;
the second acquisition module is configured to acquire a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type;
the generation calculation module is configured to randomly generate a calculation formula according to the theme template and the theme rule and calculate to obtain a calculation result of the calculation formula;
and the generation module is configured to generate a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule.
Optionally, the generation calculation module is further configured to obtain a parameter number range, a parameter value range, and an operation symbol set in the question rule; randomly determining the number of parameters according to the parameter number range; randomly determining a parameter value according to the parameter value range; randomly determining an operation symbol according to the operation symbol set; and generating a calculation formula according to the question template, the number of the parameters, the parameter values and the operation symbols.
Optionally, the generating calculation module is further configured to generate an initial title according to the calculation formula and the calculation result; and randomly hiding any parameter or operation symbol in the initial theme to generate the theme.
Optionally, the generation calculation module is further configured to obtain a parameter number range, a parameter value range, an operation symbol set, and a parameter logic in the question rule; randomly determining the number of parameters according to the parameter number range; randomly determining a parameter value according to the parameter value range; randomly determining an operation symbol according to the operation symbol set; and generating a calculation formula according to the question template, the number of the parameters, the parameter values, the operation symbols and the parameter logic.
Optionally, the generating calculation module is further configured to generate a topic step and an initial topic according to the calculation formula, the calculation result and the parameter logic; and randomly hiding at least one parameter or operation symbol in the title step and the initial title to generate a title.
Optionally, the automatic mathematics question setting device further includes:
and the resetting module is configured to delete the calculation formula under the condition that the calculation result does not match the theme rule, randomly generate the calculation formula again according to the theme template and the theme rule, and calculate to obtain the calculation result of the calculation formula.
Optionally, the automatic mathematics question setting device further includes:
and the statistic prompting module is configured to count question setting time and prompt that question setting fails under the condition that the question setting time exceeds preset timeout time.
Optionally, the automatic mathematics question setting device further includes:
a receiving module configured to receive a user answer to the topic;
a determination module configured to determine a user answer result according to the user answer and the standard answer of the question;
a saving module configured to save the user answer result.
According to a third aspect of embodiments of the present application, there is provided a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the mathematical auto-question method when executing the instructions.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the mathematical auto-question method.
In the embodiment of the application, the topic type is obtained; acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type; randomly generating a calculation formula according to the question template and the question rule, and calculating to obtain a calculation result of the calculation formula; and generating a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule. The titles corresponding to the title types can be randomly given through the pre-stored title templates and the title rules, so that the knowledge points related to the title types can be covered, and the storage space for storing the titles is saved.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
FIG. 2 is a flow chart of a mathematical automatic question making method provided by an embodiment of the present application;
FIG. 3 is a flow chart of a mathematical automatic question making method provided by another embodiment of the present application;
FIG. 4 is a flow chart of a mathematical automatic question making method provided by another embodiment of the present application;
FIG. 5 is a flow chart of a mathematical automatic question making method provided by another embodiment of the present application;
fig. 6 is a schematic structural diagram of an automatic math question-making device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the present application, a mathematical automatic question-making method and apparatus, a computing device, and a computer-readable storage medium are provided, which are described in detail one by one in the following embodiments.
FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein processor 120 may perform the steps of the mathematical auto-question method of figure 2. FIG. 2 shows a flow chart of a mathematical auto-question method according to an embodiment of the present application, including steps 202 through 208.
Step 202: and acquiring the title type.
Different knowledge points in the mathematical discipline have different question types, such as four fundamental operations of addition, subtraction, multiplication and division of decimal, integer and fraction, power, evolution, exponentiation and the like. The topic type refers to the type of a topic to which mathematical automatic question making is required.
In the embodiment provided by the application, when the knowledge points needing examination are additions within 10, the topic type of the automatic question is the addition within 10. When the knowledge point needing to be examined is the multiplication commutative law, the question type of the automatic question is the multiplication commutative law. When the knowledge points needing to be examined are the multiplication distribution law, the question type of the automatic question is the multiplication distribution law.
Step 204: and acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type.
The topic template refers to a topic template corresponding to the topic type, for example, when the topic type is an addition within 10, the topic template is a + B ═ C. When the topic type is multiplicative assignment law, the topic template is A × C + B × C ═ D.
The topic rule refers to a topic rule corresponding to a topic type, for example, when the topic type is an addition within 10, it is required to ensure that all numbers in the topic template "a + B ═ C" are less than 10, that is, "a ═ 0 to 9, B ═ 0 to 9, and C ═ 0 to 9".
And acquiring a pre-stored title template and a title rule according to the title type, wherein the title template and the title rule both correspond to the title type.
Step 206: and randomly generating a calculation formula according to the title template and the title rule, and calculating to obtain a calculation result of the calculation formula.
The formula is an equation with an operation sign side. The formula calculated as "a + B ═ C" is "a + B". A calculation formula in "(a + B) × C ═ D" is "(a + B) × C".
And randomly generating a calculation formula according to the topic template and the topic rule, for example, when the topic template is 'A + B ═ C', the topic rule is 'A ═ 0-9, B ═ 0-9, and C ═ 0-9', randomly generating a calculation formula of '2 + 4', and calculating a calculation result of the calculation formula to be '6'. When the title template is 'A multiplied by C + B multiplied by C ═ D', the title rule is 'A ═ 0 to 99, B ═ 0 to 99, C ═ 0 to 9, D ═ 0 to 99, A + B ═ 10 multiplied by k, and k ═ 0 to 9', a calculation formula of '11 multiplied by 3+19 multiplied by 3' is randomly generated, and the calculation result of the calculation formula is '90'.
Step 208: and generating a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule.
In the embodiment provided by the application, the topic template is "a + B ═ C", the topic rule is "a ═ 0 to 9, B ═ 0 to 9, C ═ 0 to 9", the calculation formula is "2 + 4", the calculation result is "6", the calculation result "6" matches with "C ═ 0 to 9" in the topic rule, and therefore, the topic "2 +4 ═ is generated according to the calculation formula" 2+4 "and the calculation result" 6 ".
In another embodiment provided by the present application, the topic template is "a × C + B × C ═ D", the topic rule is "a ═ 0 to 99, B ═ 0 to 99, C ═ 0 to 9, D ═ 0 to 99, a + B ═ 10 × k, k ═ 0 to 9", the calculation formula is "11 × 3+19 × 3", the calculation result is "90", and the calculation result "90" matches "D ═ 0 to 99" in the topic rule, so that the topic "11 × 3+19 × 3" is generated according to the calculation formula "11 × 3+19 × 3" and the calculation result "90".
The application provides a mathematics automatic question method, after obtaining the topic type, according to the topic type obtains the topic template and the topic rule of prestore, has both saved the storage space of equipment through the topic rule of prestore, has avoided saving a large amount of fixed topics, again through according to topic template and the random generation of topic rule formula to through the method of formula and calculation result generation topic, guaranteed the randomness of proposing the question, can cover knowledge point under the topic type has both saved storage space, has guaranteed the comprehensiveness of examination knowledge point again.
FIG. 3 illustrates a mathematical auto-question method according to another embodiment of the present application, including steps 302 through 318.
Step 302: and acquiring the title type.
Step 304: and acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type.
Step 306: and randomly generating a calculation formula according to the title template and the title rule, and calculating to obtain a calculation result of the calculation formula.
The steps 302 to 306 are the same as the methods of the steps 202 to 206, and for the specific explanation of the steps 302 to 306, refer to the details of the steps 202 to 206 in the foregoing embodiments, which are not repeated herein.
Step 308: judging whether the calculation result is matched with the title rule, if not, executing the step 310; if yes, go to step 312.
And judging whether the calculation result is matched with the title rule, if not, executing the step 310, and if so, executing the step 312.
In the embodiment provided by the present application, the topic template is "a + B ═ C", the topic rule is "a ═ 0 to 9, B ═ 0 to 9, C ═ 0 to 9", the calculation formula is "6 + 7", the calculation result is "13", and the calculation result "13" is determined to be not matched with "C ═ 0 to 9" in the topic rule, so step 310 is executed.
In another embodiment provided by the present application, the topic template is "a + B ═ C", the topic rule is "a ═ 0 to 19, B ═ 0 to 19, C ═ 0 to 19, no carry is calculated," 9+8 "is calculated, and the calculation result is" 17 ", and at this time, although the calculation result" 17 "matches with" C ═ 0 to 19 "in the topic rule, a carry is generated from the calculation result in the calculation, and therefore it can be determined that the calculation result does not match with the topic rule, and step 310 is executed.
In another embodiment provided by the present application, the topic template is "(a × B + a × C)/D ═ E", the topic rule is "a ═ 1 to 100, B ═ 1 to 100, C ═ 1 to 100, B + C ═ kD, D ═ 1 to 100, k ═ 1 to 10, E ═ 1 to 100", the calculation formula is "(9 × 15+9 × 18)/11", the calculation result is "27", and the calculation result "27" is determined to match "E ═ 1 to 100" in the topic rule, so step 312 is executed.
Step 310: the calculation is deleted and step 306 is performed.
And if the calculation result is not matched with the title rule, indicating that the title cannot be generated, deleting the calculation formula, executing step 306, regenerating a new calculation formula, and calculating to obtain the calculation result of the new calculation formula.
In another embodiment provided by the present application, the method further includes: and counting question setting time, and prompting that question setting fails under the condition that the question setting time exceeds preset timeout time.
And setting a preset overtime time, and if the question setting time for deleting the calculation formula and regenerating the calculation formula for many times exceeds the preset overtime time in the question setting process, indicating that the question rule is unreasonably set or the question is generated with small probability, and the question cannot be automatically set due to unreasonable setting and prompting that the question setting fails. When the question setting fails, the question setting can jump out of the circulation, so that the time of a user is saved, and a developer is reminded of setting a question.
Step 312: and generating a title according to the calculation formula and the calculation result.
Step 312 the above-mentioned method of step 208 is consistent, and for the specific explanation of step 312, refer to the details of step 208 in the foregoing embodiment, which are not repeated herein.
Step 314: receiving a user answer to the topic.
After generating the title, the user gives a user answer according to the title, and at this time, the user answer of the title given by the user needs to be received.
In the example provided by the present application, entitled "2 +4 ═ and the user gives the answer" 6 ". A user answer of "6" to the topic is received.
In another embodiment provided by the present application, entitled "(9 × 15+9 × 18)/11 ═ and the user gives the answer" 28 ". A user answer "28" to the topic is received.
Step 316: and determining a user answer result according to the user answer and the standard answer of the question.
And comparing the user answer with the standard answer of the question, wherein the answer of the question is correct when the user answer is consistent with the standard answer, and the answer of the question is wrong when the user answer is inconsistent with the standard answer.
In the examples provided herein, the title is "2 +4 _", the user answer is "6", and the standard answer is "6". The user of the question therefore answers correctly.
In another embodiment provided herein, entitled "(9 × 15+9 × 18)/11 _", the user answer is "28", and the standard answer is "27". The user answer to the topic is therefore wrong.
Step 318: and saving the user answer result.
And storing the answer result of each question user, and counting the correct rate of the user answer under the current question type to help the user to analyze whether to master the knowledge point corresponding to the current question type.
The application provides a mathematics automatic question method, after obtaining the topic type, according to the topic type obtains the topic template and the topic rule of prestore, has both saved the storage space of equipment through the topic rule of prestore, has avoided saving a large amount of fixed topics, again through according to topic template and the random generation of topic rule formula to through the method of formula and calculation result generation topic, guaranteed the randomness of proposing the question, can cover knowledge point under the topic type has both saved storage space, has guaranteed the comprehensiveness of examination knowledge point again. After the user answers the questions, whether the user answers the questions correctly or not can be automatically judged, the correct rate of the user answers the questions under the current question type is counted, and the user is helped to analyze whether the knowledge points corresponding to the current question type are mastered or not. When the question setting fails, the question setting can be skipped out of the question setting circulation, so that the time of a user is saved, and a developer is reminded of setting a question.
FIG. 4 illustrates a mathematical auto-question method according to another embodiment of the present application, including steps 402 through 420.
Step 402: and acquiring the title type.
Step 404: and acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type.
The steps 402 to 404 are the same as the steps 202 to 204, and for the specific explanation of the steps 402 to 404, refer to the details of the steps 202 to 204 in the foregoing embodiment, which will not be repeated herein.
Step 406: and acquiring the parameter number range, the parameter value range and the operation symbol set in the question rule.
The title rule comprises information such as parameter number range, parameter value range, operation symbol set and the like. The parameters refer to the number of digits in the title, and as in an equation "a + B ═ C", A, B, C are all parameters. The parameter value range refers to the value of each parameter, the operator number set is the set of operation symbols participating in the operation in the title, and the operation symbols are +, -, ×, divand the like.
And acquiring the information of the parameter number range, the parameter value range and the operation symbol set.
In the embodiment provided by the application, taking an addition and subtraction method within 50 as an example, the subject rule specifies that the parameter range is 3-6, the value of each parameter is 0-50, and the operator number set is { +, - }.
Step 408: and randomly determining the number of the parameters according to the parameter number range.
In the embodiment provided by the application, the parameter range is 3-6, and the number of the randomly determined parameters is 4.
Step 410: and randomly determining the parameter value according to the parameter value range.
The continuous parameters can be directly expressed by parameter ranges, such as 0-99.
For the whole ten and the whole hundred parameters are expressed by 'A-1-9 Zero 1-2', wherein 1-9 represents the number before 0, Zero 1-2 represents the number of 0, such as 200, 40, etc.
For the decimal, the parameter can be divided into two parts by the decimal point, for example, the A is 10-99.01-50, which means that the value before the decimal point is 10-99 and the value after the decimal point is 01-50; the decimal may be represented by "C ═ a + B, a ═ 10 to 99, and B ═ 0.01 to 0.5".
In the embodiment provided by the application, the range of each parameter is randomly determined to be 0-50.
Step 412: and randomly determining the operation symbols according to the operation symbol set.
In the embodiments provided herein, the arithmetic symbols are randomly determined to be + and-.
Step 414: and generating a calculation formula according to the question template, the number of the parameters, the parameter values and the operation symbols.
And generating a calculation formula according to the title template and the number, value and operation symbol of the parameters determined in the steps 408 to 412.
In the embodiment provided by the application, taking an addition and subtraction method within 50 as an example, the number of the parameters is 4, the range of each parameter is 0-50, and the operation symbols are + and-. 3 of the 4 parameters are used for generating a calculation formula, and 1 parameter is used as a calculation result, so that the calculation formula is 14+ 26-19.
Step 416: and calculating to obtain a calculation result of the calculation formula.
In the embodiment provided by the present application, the calculation formula generated in step 414 is "14 + 26-19", and the calculation result is "21".
Step 418: and under the condition that the calculation result is matched with the title rule, generating an initial title according to the calculation formula and the calculation result.
And under the condition that the calculation result is matched with the title rule, combining and generating an equation as an initial title according to the calculation formula and the calculation result.
In the embodiment provided by the present application, each parameter is specified to have a range of "0 to 50" in the topic rule, and the calculation result is "21", so that the calculation result matches with the topic rule, and an initial topic "14 +26-19 ═ 21" is generated according to the calculation formula "14 + 26-19" and the calculation result "21".
Step 420: and randomly hiding any parameter or operation symbol in the initial theme to generate the theme.
In the initial theme, any parameter or operation symbol is randomly hidden, and then a mathematical theme can be generated. Using the method, several topics can be generated by using one initial topic.
In the examples provided herein, the original title "14 + 26-19-21" may be hidden, yielding a title 1 "_ + 26-19-21"; the "+" can be hidden, yielding title 2 "14 _26-19 ═ 21"; "26" can be hidden, and title 3 is generated as "14 + _19 ═ 21"; "could be hidden, yielding title 4" 14+26 — 19 ═ 21 "; "19" can be hidden, and title 5 is "14 + 26-" 21 "; "21" can be hidden to generate title 6 of "14 +26-19 _".
The application provides a mathematics automatic question method, after obtaining the topic type, according to the topic type obtains the topic template and the topic rule of prestore, has both saved the storage space of equipment through the topic rule of prestore, has avoided saving a large amount of fixed topics, again through according to topic template and the random generation of topic rule formula to through the method of formula and calculation result generation topic, guaranteed the randomness of proposing the question, can cover knowledge point under the topic type has both saved storage space, has guaranteed the comprehensiveness of examination knowledge point again.
Fig. 5 shows a mathematical automatic question making method according to another embodiment of the present application, which includes steps 502 to 520.
Step 502: and acquiring the title type.
Step 504: and acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type.
The steps 502 to 504 are the same as the steps 202 to 204, and for the specific explanation of the steps 502 to 504, reference is made to the details of the steps 202 to 204 in the foregoing embodiment, which is not repeated herein.
Step 506: and acquiring the parameter number range, the parameter value range, the operation symbol set and the parameter logic in the question rule.
The title rule comprises information such as parameter number range, parameter value range, operation symbol set and the like. The parameters refer to the number of digits in the title, and as in an equation "a + B ═ C", A, B, C are all parameters. The parameter value range refers to the value of each parameter, the operator number set is the set of operation symbols participating in the operation in the title, and the operation symbols are +, -, ×, divand the like.
For some complex topic types, there will be some logic between parameters, such as multiplication joint law, where the topic is "25 × 3+75 × 3 ═ 300", and the parameter logic requires that "25 + 75" is an integer multiple of 100. Therefore, the topic template of the multiplicative combination law is "a × D + B × D ═ C", where the logical parameters of the topic rule are "a + B ═ E, · k × 100, · k ═ 1-10".
Step 508: and randomly determining the number of the parameters according to the parameter number range.
Step 510: and randomly determining the parameter value according to the parameter value range.
Step 512: and randomly determining the operation symbols according to the operation symbol set.
The steps 508 to 512 are the same as the steps 408 to 412, and for the detailed explanation of the steps 508 to 512, reference is made to the details of the steps 408 to 412 in the foregoing embodiment, which is not repeated herein.
Step 514: and generating a calculation formula according to the question template, the number of the parameters, the parameter values, the operation symbols and the parameter logic.
And generating a calculation formula according to the theme template and the parameter number, the parameter value, the operation symbol and the parameter logic in the theme rule determined in the steps 508 to 512.
In the embodiment provided by the present application, taking a multiplication combination law as an example, the title template is "a × D + B × D ═ C", the number of parameters is 4, 3 parameters among 4 parameters are used to generate a calculation formula, 1 parameter is used as a calculation result, the parameter values are "a ═ 1 to 100, B ═ 1 to 100, C ═ 1 to 5Zero2 to 2, D ═ 1 to 10", the arithmetic sign is "x", the parameter logic is "a + B ═ E", E ═ k × 100, and k ═ 1 to 10 ". Therefore, the calculation formula generated is "25 × 3+75 × 3".
Step 516: and calculating to obtain a calculation result of the calculation formula.
In the embodiment provided in the present application, the calculation formula generated in step 514 is "25 × 3+75 × 3", and the calculation result is "300".
Step 518: and under the condition that the calculation result is matched with the title rule, generating a title step and an initial title according to the calculation formula, the calculation result and the parameter logic.
In the embodiment provided by the application, the topic generation step and the initial topic "25 × 3+75 × 3 ═ 300" are determined that the calculation result "300" meets "C ═ 1 to 5Zero2 to 2" in the topic rule. Where "25 × 3+75 × 3 ═ 300" is the initial title, and "(25 +75) × 3" is the title step.
In another embodiment provided by the present application, the topic template is "a + B-C ═ D", the topic rule is "a ═ 0 to 99, B ═ 0 to 99, C ═ 0 to 99, D ═ 0 to 99, the intermediate result range is 0 to 99", the calculation formula is "55 + 65-40", and the calculation result is "80", at this time, although the calculation result "80" matches with "D ═ 0 to 99" in the topic rule, the intermediate result "120" of the intermediate process "55 + 65" does not match with "the intermediate result range is 0 to 99" in the topic rule, and therefore it is determined that the calculation result does not match with the topic rule, and no topic can be generated.
Step 520: and randomly hiding at least one parameter or operation symbol in the title step and the initial title to generate a title.
When generating the title, the step of completely hiding the title and the step of randomly hiding one parameter or operation symbol in the initial title can be realized, and the step of writing the title is required. If "25 × 3+75 × 3 _", the title writing step is required to be "(25 +75) × 3 _ ═ 300", and if the title writing step is not performed, the title writing step is prompted to be required.
When generating a title, at least one parameter or operation symbol in the title step and the initial title may also be randomly hidden to generate a title, such as "25 × 3+75 × 3 ═ (++) × 3 ═ 300", or "25 × +75 × (25+75) × 3 ═ and so on.
The application provides a mathematics automatic question method, after obtaining the topic type, according to the topic type obtains the topic template and the topic rule of prestore, has both saved the storage space of equipment through the topic rule of prestore, has avoided saving a large amount of fixed topics, again through according to topic template and the random generation of topic rule formula to through the method of formula and calculation result generation topic, guaranteed the randomness of proposing the question, can cover knowledge point under the topic type has both saved storage space, has guaranteed the comprehensiveness of examination knowledge point again. Through the topic step, the user can better understand the knowledge points needing to be examined under the topic type, and the user can be helped to flexibly use the learned knowledge.
Corresponding to the above method embodiment, the present application further provides an embodiment of a math automatic question generator, and fig. 6 shows a schematic structural diagram of the math automatic question generator according to an embodiment of the present application. As shown in fig. 6, the apparatus includes:
a first obtaining module 602 configured to obtain a topic type.
A second obtaining module 604, configured to obtain a pre-stored topic template and topic rule corresponding to the topic type according to the topic type.
And the generating and calculating module 606 is configured to randomly generate a calculation formula according to the theme template and the theme rule, and calculate a calculation result of the calculation formula.
A generating module 608 configured to generate a topic according to the calculation formula and the calculation result if the calculation result matches the topic rule.
Optionally, the generating and calculating module 606 is further configured to obtain a parameter number range, a parameter value range, and an operation symbol set in the topic rule; randomly determining the number of parameters according to the parameter number range; randomly determining a parameter value according to the parameter value range; randomly determining an operation symbol according to the operation symbol set; and generating a calculation formula according to the question template, the number of the parameters, the parameter values and the operation symbols.
Optionally, the generating calculation module 606 is further configured to generate an initial title according to the calculation formula and the calculation result; and randomly hiding any parameter or operation symbol in the initial theme to generate the theme.
Optionally, the generating and calculating module 606 is further configured to obtain a parameter number range, a parameter value range, an operation symbol set, and a parameter logic in the question rule; randomly determining the number of parameters according to the parameter number range; randomly determining a parameter value according to the parameter value range; randomly determining an operation symbol according to the operation symbol set; and generating a calculation formula according to the question template, the number of the parameters, the parameter values, the operation symbols and the parameter logic.
Optionally, the generating calculation module 606 is further configured to generate a theme step and an initial theme according to the calculation formula, the calculation result and the parameter logic; and randomly hiding at least one parameter or operation symbol in the title step and the initial title to generate a title.
Optionally, the automatic mathematics question setting device further includes:
and the resetting module is configured to delete the calculation formula under the condition that the calculation result does not match the theme rule, randomly generate the calculation formula again according to the theme template and the theme rule, and calculate to obtain the calculation result of the calculation formula.
Optionally, the automatic mathematics question setting device further includes:
and the statistic prompting module is configured to count question setting time and prompt that question setting fails under the condition that the question setting time exceeds preset timeout time.
Optionally, the automatic mathematics question setting device further includes:
a receiving module configured to receive a user answer to the topic.
A determination module configured to determine a user answer result according to the user answer and the standard answer of the question.
A saving module configured to save the user answer result.
The application provides an automatic device of proposing a question of mathematics, after obtaining the topic type, according to the topic type obtains the topic template and the topic rule of prestoring, has both saved the storage space of equipment through the topic rule of prestoring, has avoided saving a large amount of fixed topics, again through according to topic template and the random generation of topic rule formula to through the method of formula and calculation result generation topic, guaranteed the randomness of proposing a question, can cover knowledge point under the topic type has both saved storage space, has guaranteed the comprehensiveness of examination knowledge point again. Through the topic step, the user can better understand the knowledge points needing to be examined under the topic type, and the user can be helped to flexibly use the learned knowledge. After the user answers the questions, whether the user answers the questions correctly or not can be automatically judged, the correct rate of the user answers the questions under the current question type is counted, and the user is helped to analyze whether the knowledge points corresponding to the current question type are mastered or not. When the question setting fails, the question setting can be skipped out of the question setting circulation, so that the time of a user is saved, and a developer is reminded of setting a question.
There is also provided in an embodiment of the present application a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the mathematical auto-question method when executing the instructions.
An embodiment of the present application also provides a computer readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the mathematical auto-question method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned automatic mathematic question-making method, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the above-mentioned automatic mathematic question-making method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (14)

1. A mathematical automatic question setting method, comprising:
acquiring a question type;
acquiring a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type;
randomly generating a calculation formula according to the question template and the question rule, and calculating to obtain a calculation result of the calculation formula;
and generating a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule.
2. The method of automatic math question generation according to claim 1, wherein randomly generating a calculation based on said question template and said question rule comprises:
acquiring a parameter number range, a parameter value range and an operation symbol set in the question rule;
randomly determining the number of parameters according to the parameter number range;
randomly determining a parameter value according to the parameter value range;
randomly determining an operation symbol according to the operation symbol set;
and generating a calculation formula according to the question template, the number of the parameters, the parameter values and the operation symbols.
3. The method of automatically proposing math according to claim 2, wherein generating a question based on the calculation and the calculation result comprises:
generating an initial title according to the calculation formula and the calculation result;
and randomly hiding any parameter or operation symbol in the initial theme to generate the theme.
4. The method of automatic math question generation according to claim 1, wherein randomly generating a calculation based on said question template and said question rule comprises:
acquiring parameter number range, parameter value range, operation symbol set and parameter logic in the question rule;
randomly determining the number of parameters according to the parameter number range;
randomly determining a parameter value according to the parameter value range;
randomly determining an operation symbol according to the operation symbol set;
and generating a calculation formula according to the question template, the number of the parameters, the parameter values, the operation symbols and the parameter logic.
5. The method of automatically proposing math according to claim 4, wherein generating a question based on the calculation and the calculation result comprises:
generating a question step and an initial question according to the calculation formula, the calculation result and the parameter logic;
and randomly hiding at least one parameter or operation symbol in the title step and the initial title to generate a title.
6. The method of automatically proposing math according to claim 1, further comprising:
and under the condition that the calculation result does not match the theme rule, deleting the calculation formula, randomly generating the calculation formula again according to the theme template and the theme rule, and calculating to obtain the calculation result of the calculation formula.
7. The automatic math question setting method of claim 6 further comprising:
and counting question setting time, and prompting that question setting fails under the condition that the question setting time exceeds preset timeout time.
8. The method of any of claims 1 to 7, further comprising, after generating a question based on the calculation and the calculation result:
receiving a user answer to the topic;
determining a user answer result according to the user answer and the standard answer of the question;
and saving the user answer result.
9. An automatic question setting device for mathematics, comprising:
a first obtaining module configured to obtain a topic type;
the second acquisition module is configured to acquire a pre-stored theme template and a theme rule corresponding to the theme type according to the theme type;
the generation calculation module is configured to randomly generate a calculation formula according to the theme template and the theme rule and calculate to obtain a calculation result of the calculation formula;
and the generation module is configured to generate a topic according to the calculation formula and the calculation result under the condition that the calculation result matches the topic rule.
10. The automatic math question setting device of claim 9 further comprising:
and the resetting module is configured to delete the calculation formula under the condition that the calculation result does not match the theme rule, randomly generate the calculation formula again according to the theme template and the theme rule, and calculate to obtain the calculation result of the calculation formula.
11. The automatic math question setting device of claim 10 further comprising:
and the statistic prompting module is configured to count question setting time and prompt that question setting fails under the condition that the question setting time exceeds preset timeout time.
12. The automatic math question setting device of any one of claims 9 to 11 further comprising:
a receiving module configured to receive a user answer to the topic;
a determination module configured to determine a user answer result according to the user answer and the standard answer of the question;
a saving module configured to save the user answer result.
13. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-8 when executing the instructions.
14. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 8.
CN201910894206.6A 2019-09-20 2019-09-20 Mathematics automatic question setting method and device Pending CN110599838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910894206.6A CN110599838A (en) 2019-09-20 2019-09-20 Mathematics automatic question setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910894206.6A CN110599838A (en) 2019-09-20 2019-09-20 Mathematics automatic question setting method and device

Publications (1)

Publication Number Publication Date
CN110599838A true CN110599838A (en) 2019-12-20

Family

ID=68861973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910894206.6A Pending CN110599838A (en) 2019-09-20 2019-09-20 Mathematics automatic question setting method and device

Country Status (1)

Country Link
CN (1) CN110599838A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111564072A (en) * 2020-06-09 2020-08-21 暗物智能科技(广州)有限公司 Automatic question setting method and system for plane geometry
CN112579735A (en) * 2020-12-09 2021-03-30 北京字节跳动网络技术有限公司 Question generation method and device, computer equipment and storage medium
CN112863278A (en) * 2021-02-09 2021-05-28 柳州智视科技有限公司 Problem solving method after problem condition replacement
CN112906862A (en) * 2021-02-09 2021-06-04 柳州智视科技有限公司 Method for solving similar mathematical problems based on arithmetic and problems
CN112949265A (en) * 2021-03-30 2021-06-11 领扣网络(上海)有限公司 Test question setting method and system
CN111353037B (en) * 2020-02-27 2021-06-22 北京字节跳动网络技术有限公司 Topic generation method and device and computer readable storage medium
CN113112884A (en) * 2021-04-25 2021-07-13 上海松鼠课堂人工智能科技有限公司 Artificial intelligence K12 full-automatic question generation system for education
CN114677865A (en) * 2022-03-16 2022-06-28 石家庄丁斗科技有限公司 Arithmetic method of mathematics question generator
CN115223411A (en) * 2022-06-13 2022-10-21 深圳市天美意科技有限公司 Intelligent children's oral computer and Ai intelligent question setting method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469428A (en) * 2016-08-31 2017-03-01 北京哥大诺博教育科技股份有限公司 The system and method for the lifting infant mathematics ability based on number axis
CN107316256A (en) * 2017-05-10 2017-11-03 杭州博世数据网络有限公司 A kind of physics exercise question-setting system
CN107423287A (en) * 2017-07-05 2017-12-01 华中师范大学 The automatic answer method and system of Proving Plane Geometry topic
CN107423286A (en) * 2017-07-05 2017-12-01 华中师范大学 The method and system that elementary mathematics algebraically type topic is answered automatically
CN108052492A (en) * 2017-12-11 2018-05-18 上海启思教育科技服务有限公司 A kind of mathematical problem automatic creation system
CN108491366A (en) * 2018-01-19 2018-09-04 明博教育科技股份有限公司 Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469428A (en) * 2016-08-31 2017-03-01 北京哥大诺博教育科技股份有限公司 The system and method for the lifting infant mathematics ability based on number axis
CN107316256A (en) * 2017-05-10 2017-11-03 杭州博世数据网络有限公司 A kind of physics exercise question-setting system
CN107423287A (en) * 2017-07-05 2017-12-01 华中师范大学 The automatic answer method and system of Proving Plane Geometry topic
CN107423286A (en) * 2017-07-05 2017-12-01 华中师范大学 The method and system that elementary mathematics algebraically type topic is answered automatically
CN108052492A (en) * 2017-12-11 2018-05-18 上海启思教育科技服务有限公司 A kind of mathematical problem automatic creation system
CN108491366A (en) * 2018-01-19 2018-09-04 明博教育科技股份有限公司 Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353037B (en) * 2020-02-27 2021-06-22 北京字节跳动网络技术有限公司 Topic generation method and device and computer readable storage medium
CN111564072A (en) * 2020-06-09 2020-08-21 暗物智能科技(广州)有限公司 Automatic question setting method and system for plane geometry
CN111564072B (en) * 2020-06-09 2022-02-01 暗物智能科技(广州)有限公司 Automatic question setting method and system for plane geometry
CN112579735A (en) * 2020-12-09 2021-03-30 北京字节跳动网络技术有限公司 Question generation method and device, computer equipment and storage medium
CN112863278A (en) * 2021-02-09 2021-05-28 柳州智视科技有限公司 Problem solving method after problem condition replacement
CN112906862A (en) * 2021-02-09 2021-06-04 柳州智视科技有限公司 Method for solving similar mathematical problems based on arithmetic and problems
CN112949265A (en) * 2021-03-30 2021-06-11 领扣网络(上海)有限公司 Test question setting method and system
CN113112884A (en) * 2021-04-25 2021-07-13 上海松鼠课堂人工智能科技有限公司 Artificial intelligence K12 full-automatic question generation system for education
CN114677865A (en) * 2022-03-16 2022-06-28 石家庄丁斗科技有限公司 Arithmetic method of mathematics question generator
CN115223411A (en) * 2022-06-13 2022-10-21 深圳市天美意科技有限公司 Intelligent children's oral computer and Ai intelligent question setting method

Similar Documents

Publication Publication Date Title
CN110599838A (en) Mathematics automatic question setting method and device
Goodrich et al. Algorithm design: foundations, analysis, and internet examples
CN105912500B (en) Machine learning model generation method and device
CN111353037B (en) Topic generation method and device and computer readable storage medium
JP7114959B2 (en) Program, information processing method, and information processing apparatus
CN112000891A (en) Information pushing method and device, computer equipment and storage medium
CN112183048A (en) Automatic problem solving method and device, computer equipment and storage medium
CN112287659B (en) Information generation method and device, electronic equipment and storage medium
CN113377942A (en) Test paper generation method and device, computer equipment and storage medium
CN109542891B (en) Data fusion method and computer storage medium
CN107729491B (en) Method, device and equipment for improving accuracy rate of question answer search
CN111462560A (en) Network education method and platform based on cloud computing
CN105912510A (en) Method and device for judging answers to test questions and well as server
CN110555143B (en) Question automatic answering method and computer storage medium
CN112084667A (en) Test case generation method and device and electronic equipment
CN115708088A (en) Problem solving method and device
CN112381291A (en) Behavior prediction method and device, information push method and device, electronic equipment and storage medium
CN113409423A (en) License plate image generation method, system, device and storage medium
CN115809318A (en) Question answering model training method and device and question answering method and device
CN112328894A (en) Behavior guiding method and device, computer equipment and storage medium
CN112579735B (en) Question generation method and device, computer equipment and storage medium
CN112616086A (en) Interactive video generation method and device
CN111738863A (en) User data screening method, device and system
CN109684365A (en) A kind of method, apparatus, equipment and storage medium automatically generating review topic
CN113535887B (en) Formula similarity detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200508

Address after: 100102 unit F01, 5th floor and unit 04, F01, 6th floor, building 1, yard 8, Guangshun South Street, Chaoyang District, Beijing

Applicant after: Beijing ape force Education Technology Co.,Ltd.

Address before: Units F01-03 and 05-10 on the 6th floor of No.1 Building, No.8 Courtyard, Guangshun South Street, Chaoyang District, Beijing

Applicant before: Beijing Ape Power Future Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220