CN108491366A - Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division - Google Patents

Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division Download PDF

Info

Publication number
CN108491366A
CN108491366A CN201810053958.5A CN201810053958A CN108491366A CN 108491366 A CN108491366 A CN 108491366A CN 201810053958 A CN201810053958 A CN 201810053958A CN 108491366 A CN108491366 A CN 108491366A
Authority
CN
China
Prior art keywords
expression formula
division
formula
factor
weight
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
CN201810053958.5A
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.)
MAINBO EDUCATION TECHNOLOGY Co Ltd
Original Assignee
MAINBO EDUCATION 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 MAINBO EDUCATION TECHNOLOGY Co Ltd filed Critical MAINBO EDUCATION TECHNOLOGY Co Ltd
Priority to CN201810053958.5A priority Critical patent/CN108491366A/en
Publication of CN108491366A publication Critical patent/CN108491366A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Educational Technology (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The present invention relates to a kind of set a question method and device and computer readable storage medium based on addition subtraction multiplication and division.Method of the present invention includes receiving user instruction, and corresponding normal formula is obtained according to user instruction;Judge whether the normal formula contains two level nesting subexpression;If the normal formula does not have two level nesting subexpression, the normal formula is split processing and obtains the expression formula factor;Mark the value range and weight of the expression formula factor;It is each expression formula factor random assignment in value range, the assignment is matched with user instruction;Result of calculation, if result in value range, and the value range and operation mediant matching, then return to topic.Method provided by the invention can flexibly adjust configuration rule according to condition difference and weight is arranged, and show the addition subtraction multiplication and division operation exercise of differing complexity, to meet the multiple needs of user, promote user experience.

Description

Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division
Technical field
The invention belongs to information-based digital education fields, and in particular to a kind of set a question method and dress based on addition subtraction multiplication and division It sets and computer readable storage medium.
Background technology
Along with computer technology, the propulsion of the development of mobile device and cybertimes, the learning method and mode of people Quietly changed, the topic that does one's exercises is an essential important link in learning process.A large number of homework exercises for primary and middle school students in internet In, the person of setting a question, which finds the exercise of suitable complexity and calculates correct option, will all spend the more time, to pupil For, the mental arithmetic operation topic of mathematics four fundamental rules mixing, mental arithmetic is the mode for having many verbal exercises on the net, but being substantially traversal, And hybrid operation topic is less (essentially fixed topic), causes the person of setting a question that cannot extract the hybrid operation topic of different range, mental arithmetic Topic cannot carry out limitation verification to result.
Invention content
In view of the deficiencies in the prior art, the object of the present invention is to provide a kind of sides of setting a question based on addition subtraction multiplication and division Method and device and computer readable storage medium.This method and device can flexibly adjust configuration rule according to condition difference Then and weight is set, shows the addition subtraction multiplication and division operation exercise of differing complexity, to meet the multiple needs of user.
To achieve the above objectives, the technical solution adopted by the present invention is:A kind of method of setting a question based on addition subtraction multiplication and division, including Following steps:
It receives user instructions, corresponding normal formula is obtained according to user instruction;Judge whether the normal formula contains two level Nested subexpression;If the normal formula does not have two level nesting subexpression, the normal formula, which is split processing, to be obtained The expression formula factor;Mark the value range and weight of the expression formula factor;It is each expression formula factor random assignment in value range, The assignment is matched with user instruction;Result of calculation, if result in value range, and the value range and operation mediant Matching, then return to topic.
Further, it is received user instructions described, further includes before obtaining corresponding normal formula according to user instruction:It establishes Exam pool, each topic type, which is all established, in the exam pool corresponding normal formula.
Further, in step (1), the user instruction includes set a question type and complexity of setting a question.
Further, in step (3), if the normal formula does not have two level nesting subexpression, by the normal formula It is split processing and obtains the expression formula factor and specifically include:If the normal formula does not have two level nesting subexpression, according to pre- If the normal formula is divided into expression formula and operation result by symbol;The expression formula is further divided according to predetermined symbol To at least one expression formula condition and at least one expression formula as a result, marking the maximum value of each expression formula result, minimum value, being It is no containing remainder and weight;The expression formula condition is further divided according to predetermined symbol, obtains the expression formula factor.
Further, described further to divide to the expression formula condition, obtaining the expression formula factor further includes:If to described Expression formula condition further divide in obtained expression formula containing " ", then the expression formula by it between neighbour is merged with "@" with it, To " " only, the expression formula after combination is labeled as the expression formula factor.
Further, in step (4), the value range and weight of the label expression formula factor specifically include:When the table When up to the formula factor being the operator in addition subtraction multiplication and division, oeprator and its weight are marked;When the expression formula factor be " (", ") ", " 0 " or when ", ", mark its maximum value, minimum value and weight.
Further, the value range of the label expression formula factor and weight further include:
When in the expression formula factor containing " " when, remove " { ", " } " in the expression formula factor, it is further according to predetermined symbol Segmentation, obtains subexpression;
When the subexpression includes the operator in addition subtraction multiplication and division, oeprator and its weight are marked;
When the subexpression includes " (", ") ", " 0 " or ", ", its maximum value, minimum value and weight are marked.
Further, in step (5), described is each expression formula factor random assignment, the assignment and use in value range Family instructions match specifically includes:If complexity of setting a question in user instruction is more difficult, taken accordingly for the expression formula factor and weight The value to match in value range.
A kind of device of setting a question based on addition subtraction multiplication and division, the device of setting a question include the memory that circuit connects successively, information Collector, processor, and it is stored in the calculator program that can be run in the memory and on the processor;The letter Breath acquisition module is for collecting user input instruction;The processor realizes such as claim 1- when executing the computer program The step of 8 arbitrary any the method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program can realize the step of the method as any such as claim 1-8 when being executed by processor.
Effect of the invention is that:It, can be flexible according to condition difference using method and device of the present invention Simultaneously weight is arranged in adjustment configuration rule, shows the addition subtraction multiplication and division operation exercise of differing complexity, to meet the multiple of user It needs.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of the method for the invention;
Fig. 2 is the structural schematic diagram of one embodiment of device of the present invention;
Fig. 3 is the structural schematic diagram of one embodiment of computer readable storage medium of the present invention.
Specific implementation mode
For make present invention solves the technical problem that, the technical solution that uses and the technique effect that reaches it is clearer, below The technical solution of the embodiment of the present invention will be described in further detail in conjunction with attached drawing.Obviously, described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work, belongs to the scope of protection of the invention.
It is a kind of based on addition subtraction multiplication and division as shown in Figure 1, Fig. 1 is the flow diagram of one embodiment of the method for the invention Set a question method, includes the following steps:
Step 101:It receives user instructions, corresponding normal formula is obtained according to user instruction.
Initially set up exam pool, each topic type, which is all established, in exam pool corresponding normal formula.In a specific embodiment, When topic type is multiplication pithy formula, corresponding normal formula is:
[1~9]@[×]@[1~9]=[0~100];
When topic type adds for whole ten number, subtracts whole ten, corresponding normal formula is:
[1~9] 0@[+, -]@[1~9] 0=[1~100];
When topic type be it is multiply-add, multiply subtract when, corresponding normal formula is:
[2~9]@[×]@[2~9]@[+<80>,-<20>]@[10~99]=[0~100];
When topic type is even to add, even subtract and add and subtract to mix, corresponding normal formula is:
[1~100]@[+, -]@[1~20]@[+, -]@[1~100]=[1~100];
When topic type is the division for having remainder, corresponding normal formula is:
[10~89]@[÷]@[2~9]=[1~9] ... [1-9];
When topic type is whole ten, whole hundred number multiplies one digit number, corresponding normal formula is:
[1~9<60>, 10~90<30>] 0@[×]@[2~9]=[1000~10000]<30>| | [1~1000]<70>;
When topic type be it is double it is multiply-add, double multiply subtract when, corresponding normal formula is:
[2~9]@[×]@[2~9]@[+, -]@[2~9]@[×]@[2~9]=[0~60]<30>| | [60~100]< 70>;
When topic type is adds, subtracts, multiplication and division mixes, corresponding normal formula is:
[1~100]@[+, -]@[1~20]<30>| | [2~10]@[*]@[2~20]<60>| | [2~100]@[÷]@[1 ~9]<30>=[0~60]<30>| | [60~100]<70>;
When topic type is that multiplication and division mixing is mixed with plus-minus, corresponding normal formula is:
{ [2~89]@[÷]@[1~9]<40>| [2~10]@[*]@[2~9]<70>@[+, -]@{ [2~89]@[÷]@ [1~9] | [2~10]@[*]@[2~9] }=[1~50]<30>||[50-100]<70>;
When topic type is parenthesized hybrid operation, corresponding normal formula is:
[1~9]@[*]@([2~100]@[+<20>,-<70>]@[1~50])=[0~60]<30>| | [60~100]< 70>;
When topic type is addition subtraction multiplication and division hybrid operation, corresponding normal formula is:
{ [2~89] 0@[÷]@[1~9]<40>| [2~10]@[*]@[2~9]<70>}@[+<60>,-<30>]@[10~ 89]<30>| | [1~9]@[*]@([2~100]@[+<20>,-<70>]@[1~50])<60>=[0~60]<30>| | [60~ 100]<70>。
Exam pool includes a variety of topic types, in the present invention the not only topic type in above-described embodiment.About in normal formula Display rule is described as follows:
[1~9]:Data area.Detailed annotation:Obtain the random number of range 1 to 9.
@:Decollator.Detailed annotation:Segmentation between number AND operator.
[+,-]:Add and subtract (multiplication and division) hybrid operation.Detailed annotation:It is random to obtain operator.
[1~9] ... [1-9]:Remainder expression formula.
[+<80>,-<20>]:It adds and subtracts (multiplication and division) hybrid operation and increases weight.Detailed annotation:Weight:I.e. random selecting calculation accords with Afterwards, the data in random selection 100, if it is less than weight, then the random number selected comes into force, and otherwise reselects.
[1~9] 0:Whole ten data.Detailed annotation:Random data multiplies 10.
[1~9<60>, 10~90<30>]0:Random data range increases weight.Detailed annotation:The weight of AND operator is the same
=[0~100]:Check results.Detailed annotation:The range of answer is verified.
||:Multiple expression formula mixing are mixed containing identical range of results or multiple results, can increase weight.
=[1000~10000]<30>| | [1~1000]<70>:Multiple result mixing, can increase weight.
|, {, }:Multiple subexpressions can be contained in expression formula, mixed by " | ", mixing subexpression is necessarily used " " " " surrounded.
():Bracket in algorithm.
It should be noted that the value range in normal formula can change.For example, such as in [1~9] most Small value is 1, maximum value 9, in other embodiments, can also be [1~10], for another example [+<80>,-<20>] in, about addition Weight be 80, in other embodiments or 70.Likewise, the decollator in normal formula can change.One It is indicated, can also be indicated in other embodiments with " # ", the present invention does not limit herein with "@" in a specific embodiment.For Facilitate understanding, is hereinafter all illustrated with above-mentioned normal formula.
It receives user instructions, corresponding normal formula is obtained according to user instruction.Wherein user instruction include set a question type and Set a question complexity.Complexity of setting a question in a specific embodiment can be divided into simple, moderate and more difficult three etc. Grade.In other embodiments, complexity of setting a question can also be divided into grade, and the present invention does not limit herein.
Specifically, when user instruction be addition subtraction multiplication and division hybrid operation, it is more difficult when, obtaining its normal formula is, { [2~89] 0@ [÷]@[1~9]<40>| [2~10]@[*]@[2~9]<70>}@[+<60>,-<30>]@[10~89]<30>| | [1~9]@ [*]@([2~100]@[+<20>,-<70>]@[1~50])<60>=[0~60]<30>| | [6~10] 0<70>.
Step 102:Judge whether the normal formula contains two level nesting subexpression.
Judge whether the normal formula contains two level nesting subexpression.It is more than specifically, whether having in criterion formula A kind of nested subexpression.Without two level nesting subexpression in the present embodiment.
Step 103:If the normal formula does not have two level nesting subexpression, the normal formula is split and is handled To the expression formula factor.
If the normal formula does not have two level nesting subexpression, the normal formula, which is split processing, obtains expression formula The factor specifically includes:
First if the normal formula does not have two level nesting subexpression, the normal formula is divided into according to predetermined symbol Expression formula and operation result.
In a specific embodiment, predetermined symbol is "=", and the label by "=" left side in normal formula is, The label on the right is.That is, expression formula is
{ [2~89] 0@[÷]@[1~9]<40>| [2~10]@[*]@[2~9]<70>}@[+<60>,-<30>]@[10~ 89]<30>| | [1~9]@[*]@([2~100]@[+<20>,-<70>]@[1~50])<60>, operation result is [0~60]<30 >| | [6~10] 0<70>.
Then, the expression formula and operation result are further divided according to predetermined symbol and obtains at least one expression formula item Part and at least one expression formula are as a result, marking the maximum value of each expression formula result, minimum value, whether containing remainder and weight.
In a specific embodiment, predetermined symbol is " | | ", and by expression formula and operation result, further segmentation obtains At least one expression formula condition and at least one expression formula result.Mark the maximum value of each expression formula result, minimum value, whether Contain remainder and weight.The value range that can determine that normal formula result according to the maximum value of label, minimum value coordinates different values The weight of range can be reversed the difficulty that control is set a question, i.e., controls complexity of setting a question by limit calculations, specifically It will be explained below.
It is obtained after dividing, expression formula condition 1 is
{ [2~89] 0@[÷]@[1~9]<40>| [2~10]@[*]@[2~9]<70>}@[+<60>,-<30>]@[10~ 89]<30>;Expression formula condition 2 is
[1~9]@[*]@([2~100]@[+<20>,-<70>]@[1~50])<60>;Expression formula result 1 is [0~60]< 30>, value range 0-60, weight 30;Expression formula result 2 is [6~10] 0<70>, value range 6-10, weight is 70。
Finally, the expression formula condition is further divided according to predetermined symbol, obtains the expression formula factor.It is specific at one Embodiment in, predetermined symbol is "@", and expression formula condition further divides.Wherein, contain when in the expression formula of segmentation gained " " when, then the expression formula by it between neighbour is merged with "@" with it, to " " only, the expression formula after combination is labeled as expression formula The factor.Remaining partitioning portion label is also labeled as the expression formula factor after combining.
By expression formula condition 1, further segmentation obtains, " { [2~89] 0 ", " [1~9]<40>| [2~10] ", " [*] ", " [2~9]<70>}”、“[+<60>,-<30>] ", " [10~89] ", due in " { [2~89] 0 " containing " ", obtained after combination The expression formula factor of expression formula condition 1 is " { [2~89] 0@[÷]@[1~9]<40>| [2~10]@[*]@[2~9]<70>}”、 “[+<60>,-<30>] " and " [10~89] ".
Step 104:Mark the value range and weight of the expression formula factor.
Specifically, when the expression formula factor includes the operator in addition subtraction multiplication and division, oeprator and its weight are marked;Work as table When up to the formula factor including " (", ") ", " 0 " or ", ", its maximum value, minimum value and weight are marked.
In other embodiments, when in the expression formula factor containing " " when, remove " { ", " } " in the expression formula factor, according to Predetermined symbol is further divided, and subexpression is obtained, and predetermined symbol is "@".When subexpression includes the operation in addition subtraction multiplication and division Fu Shi marks oeprator and its weight;When the subexpression includes " (", ") ", " 0 " or ", ", mark its maximum value, Minimum value and weight.
By the maximum value, minimum value and weight of this step mark, the value range and power of each expression formula factor have been obtained Refetch value.Specifically expansion does not illustrate.
Step 105:It is each expression formula factor random assignment in value range, the assignment is matched with user instruction.
If complexity of setting a question in user instruction is more difficult, matching in corresponding value range is taken for the expression formula factor Value, take the value to match in 0-100 for weight.Specifically, expression formula factor value size and weight value size with set a question Complexity is proportionate.
Step 106:Result of calculation, if operation result in value range, and the value range and operation mediant Match, then returns to topic.
At random to after expression formula factor assignment, calculation expression as a result, and judging operation result whether in value range It is interior.If operation result in value range, further judges whether the value range and operation mediant match.Have at one In the embodiment of body, if in value range value all be positive number, illustrate not learn negative by the person of setting a question, then correspondingly, The operation mediant obtained in calculating process can not be negative, when such a match occurs, can enter in next step.In other implementations In example, if value includes positive number in value range, illustrate to learn negative by the person of setting a question, then correspondingly, obtaining in calculating process The operation mediant arrived can be negative, when such a match occurs, can enter in next step.
Then, the decollator in expression formula after assignment is removed to obtain final tissue expression formula.Further judge final group It includes several data to knit expression formula, leaves out one of data to obtain topic at random, and topic is returned to user.
It is different from the prior art, a kind of method of setting a question based on addition subtraction multiplication and division provided by the invention can be according to condition not With can flexibly adjust configuration rule and weight is arranged, show the addition subtraction multiplication and division operation exercise of differing complexity, to meet The multiple needs of user.
It is a kind of based on addition subtraction multiplication and division as shown in Fig. 2, Fig. 2 is the structural schematic diagram of one embodiment of device of the present invention Set a question device 200, including memory 201, information acquisition device 202 and the processor 203 of circuit connection successively.Fixture 200 is also Including being stored in the calculator program that can be run in the memory and on the processor, the computer program is performed When realizing the step in above method embodiment.
The device 200 of setting a question based on addition subtraction multiplication and division can be desktop PC, notebook, palm PC and high in the clouds The computing devices such as server.The device 200 of setting a question based on addition subtraction multiplication and division may include, but be not limited only to, memory 201, letter Cease collector 202 and processor 203.It will be understood by those skilled in the art that the schematic diagram is only based on addition subtraction multiplication and division Set a question the example of device 200, does not constitute the restriction to the device 200 of setting a question based on addition subtraction multiplication and division, may include than illustrating more More or less component either combines certain components or different components, such as the device 200 of setting a question based on addition subtraction multiplication and division Can also include input-output equipment, network access equipment, bus etc..
Memory 201 can be used for storing the computer program, and the processor 203 is stored in institute by running or executing The computer program in memory 201 is stated, and calls the data being stored in memory, realizes setting a question based on addition subtraction multiplication and division The various functions of device 200.Memory 201 can include mainly storing program area and storage data field, wherein storing program area can Application program (such as sound-playing function, image player function etc.) needed for storage program area, at least one function etc.;It deposits Storage data field can be stored uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.In addition, memory 201 may include high-speed random access memory, can also be hard including nonvolatile memory, such as hard disk, memory, plug-in type Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digi tal, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Information acquisition device 202 receives user instructions, and can be specifically touch screen or keyboard.
Processor 203 can be central processing unit (Central Processing Unit, CPU), can also be other General processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..Processor 203 is the control centre of the device 200 of setting a question based on addition subtraction multiplication and division, using various interfaces and The various pieces of the entire device 200 of setting a question based on addition subtraction multiplication and division of connection.
It is provided by the invention a kind of based on addition subtraction multiplication and division by foregoing description it is found that the case where being different from the prior art Set a question device, can flexibly adjust configuration rule according to condition difference and weight is set, show differing complexity plus Subtract multiplication and division operation exercise, to meet the multiple needs of user.
As shown in figure 3, Fig. 3 is the structural schematic diagram of one embodiment of computer readable storage medium of the present invention, it is a kind of Computer readable storage medium 300, storage medium is stored with computer program 301, when computer program 301 is executed by processor It can realize such as the step in any above method.
In one embodiment, with computer readable storage medium 300 can be storage chip in terminal, hard disk or Person is the tool of other read-write storages such as mobile hard disk or flash disk, CD, can also be server etc..
By foregoing description it is found that the case where being different from the prior art, a kind of computer-readable storage provided by the invention Medium can flexibly adjust configuration rule according to condition difference and weight is arranged, and the plus-minus for showing differing complexity multiplies Division operation exercise, to meet the multiple needs of user.
It will be understood by those skilled in the art that method and system of the present invention is not limited to institute in specific implementation mode The embodiment stated, specific descriptions above are intended merely to explain the purpose of the present invention, are not intended to limit the present invention.This field skill Art personnel can derive other implementation manners according to the technical scheme of the present invention, and also belong to the scope of the technical innovation of the present invention, this The protection domain of invention is limited by claim and its equivalent.

Claims (10)

1. a kind of method of setting a question based on addition subtraction multiplication and division, which is characterized in that described method includes following steps:
(1) it receives user instructions, corresponding normal formula is obtained according to user instruction;
(2) judge whether the normal formula contains two level nesting subexpression;
(3) if the normal formula does not have two level nesting subexpression, the normal formula, which is split processing, obtains expression formula The factor;
(4) value range and weight of the expression formula factor are marked;
(5) it is each expression formula factor random assignment in value range, the assignment is matched with user instruction;
(6) result of calculation, if operation result in value range, and the value range and operation mediant matching, then return Topic.
2. a kind of method of setting a question based on addition subtraction multiplication and division as described in claim 1, which is characterized in that refer in the reception user It enables, further includes before obtaining corresponding normal formula according to user instruction:
Establish exam pool, each topic type, which is all established, in the exam pool corresponding normal formula.
3. a kind of method of setting a question based on addition subtraction multiplication and division as described in claim 1, which is characterized in that in step (1), the use Family instruction includes set a question type and complexity of setting a question.
4. a kind of method of setting a question based on addition subtraction multiplication and division as described in claim 1, which is characterized in that in step (3), it is described such as Normal formula described in fruit does not have two level nesting subexpression, the normal formula is split processing obtains the expression formula factor and specifically wrap It includes:
If the normal formula does not have two level nesting subexpression, according to predetermined symbol by the normal formula be divided into expression formula and Operation result;
The expression formula and operation result are further divided according to predetermined symbol at least one expression formula condition and at least of obtaining One expression formula is as a result, marking the maximum value of each expression formula result, minimum value, whether containing remainder and weight;
The expression formula condition is further divided according to predetermined symbol, obtains the expression formula factor.
5. a kind of method of setting a question based on addition subtraction multiplication and division as claimed in claim 4, which is characterized in that described to the expression formula Condition is further divided, and obtains the expression formula factor and further includes:
If to the expression formula condition further divide in obtained expression formula containing " ", its expression formula between neighbour is used "@" merges with it, to " " only, the expression formula after combination is labeled as the expression formula factor.
6. a kind of method of setting a question based on addition subtraction multiplication and division as described in claim 1, which is characterized in that in step (4), the mark The value range and weight for remembering the expression formula factor specifically include:
When the expression formula factor includes the operator in addition subtraction multiplication and division, oeprator and its weight are marked;
When the expression formula factor includes " (", ") ", " 0 " or ", ", its maximum value, minimum value and weight are marked.
7. a kind of method of setting a question based on addition subtraction multiplication and division as claimed in claim 6, which is characterized in that the label expression formula because Son value range and weight further include:
When in the expression formula factor containing " " when, remove " { ", " } " in the expression formula factor, further divided according to predetermined symbol, Obtain subexpression;
When the subexpression includes the operator in addition subtraction multiplication and division, oeprator and its weight are marked;
When the subexpression includes " (", ") ", " 0 " or ", ", its maximum value, minimum value and weight are marked.
8. a kind of method of setting a question based on addition subtraction multiplication and division as described in claim 1, which is characterized in that in step (5), it is described It is each expression formula factor random assignment in value range, the assignment is matched with user instruction to be specifically included:
If complexity of setting a question in user instruction is more difficult, the phase in corresponding value range is taken for the expression formula factor and weight The value matched.
9. a kind of device of setting a question based on addition subtraction multiplication and division, which is characterized in that the device of setting a question includes depositing for circuit connection successively Reservoir, information acquisition device, processor, and it is stored in the calculator journey that can be run in the memory and on the processor Sequence;
Described information acquisition module is for collecting user input instruction;
The processor realized when executing the computer program as claim 1-8 arbitrarily any the method the step of.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In the step of capable of realizing the method as any such as claim 1-8 when the computer program is executed by processor.
CN201810053958.5A 2018-01-19 2018-01-19 Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division Pending CN108491366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810053958.5A CN108491366A (en) 2018-01-19 2018-01-19 Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810053958.5A CN108491366A (en) 2018-01-19 2018-01-19 Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division

Publications (1)

Publication Number Publication Date
CN108491366A true CN108491366A (en) 2018-09-04

Family

ID=63343630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810053958.5A Pending CN108491366A (en) 2018-01-19 2018-01-19 Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division

Country Status (1)

Country Link
CN (1) CN108491366A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599838A (en) * 2019-09-20 2019-12-20 北京猿力未来科技有限公司 Mathematics automatic question setting method and device
CN112579735A (en) * 2020-12-09 2021-03-30 北京字节跳动网络技术有限公司 Question generation method and device, computer equipment and storage medium
CN115223411A (en) * 2022-06-13 2022-10-21 深圳市天美意科技有限公司 Intelligent children's oral computer and Ai intelligent question setting method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981022A (en) * 1995-09-12 1997-03-28 Matsushita Electric Ind Co Ltd Calculation question forming method
CN103150938A (en) * 2013-03-14 2013-06-12 南京信息工程大学 Automatic question assignment method
WO2014081169A1 (en) * 2012-11-21 2014-05-30 Wang Sung Ho Method for addition, subtraction, multiplication, and division game

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981022A (en) * 1995-09-12 1997-03-28 Matsushita Electric Ind Co Ltd Calculation question forming method
WO2014081169A1 (en) * 2012-11-21 2014-05-30 Wang Sung Ho Method for addition, subtraction, multiplication, and division game
CN103150938A (en) * 2013-03-14 2013-06-12 南京信息工程大学 Automatic question assignment method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599838A (en) * 2019-09-20 2019-12-20 北京猿力未来科技有限公司 Mathematics automatic question setting method and device
CN112579735A (en) * 2020-12-09 2021-03-30 北京字节跳动网络技术有限公司 Question generation method and device, computer equipment and storage medium
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
Krantz Real analysis and foundations
Kosmann-Schwarzbach Groups and symmetries
CN111353037B (en) Topic generation method and device and computer readable storage medium
CN110377740A (en) Feeling polarities analysis method, device, electronic equipment and storage medium
CN108076154A (en) Application message recommends method, apparatus and storage medium and server
CN107316258A (en) With no paper contest method, device, terminal and computer-readable recording medium
CN108491366A (en) Set a question method and device and computer readable storage medium based on addition subtraction multiplication and division
CN109961146A (en) Mathematical problem answers method and device
CN111369403A (en) Problem solving demonstration method and device
Wallis A beginner's guide to discrete mathematics
CN110569335A (en) triple verification method and device based on artificial intelligence and storage medium
CN107944023A (en) Exercise pushing method and system and terminal equipment
CN107895027A (en) Individual feelings and emotions knowledge mapping method for building up and device
CN106131226A (en) Judge method and the server of script
Chang Data structures and algorithms
CN112287659A (en) Information generation method and device, electronic equipment and storage medium
Riabko et al. Chatbot algorithm for solving physics problems.
Mutono et al. An investigation of Mobile learning readiness for Post-School Education and Training in South Africa using the Technology Acceptance model
Ariffin Needs and potentials for studying local malaysian culture through mobile learning
CN103678397B (en) Application search device, application search method and electronic device
CN115273820A (en) Audio processing method and device, storage medium and electronic equipment
Gander Informatics and general education
Jiménez et al. From recreational mathematics to recreational programming, and back
CN109815123A (en) Interface testing case script classification method, device, electronic equipment and medium
Corry Number crunching vs. number theory: computers and FLT, from Kummer to SWAC (1850–1960), and beyond

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180904