CN112906894A - Method for simulating question numbers - Google Patents
Method for simulating question numbers Download PDFInfo
- Publication number
- CN112906894A CN112906894A CN202110176031.2A CN202110176031A CN112906894A CN 112906894 A CN112906894 A CN 112906894A CN 202110176031 A CN202110176031 A CN 202110176031A CN 112906894 A CN112906894 A CN 112906894A
- Authority
- CN
- China
- Prior art keywords
- new
- digit
- questions
- logic
- numbers
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N7/00—Computing arrangements based on specific mathematical models
Abstract
A method of digital simulation of a title, comprising the steps of: firstly, acquiring the number of questions and generating new questions; (II) selecting a mode for generating topics: the system automatically generates a mode and a user-defined mode, and generates a new value group in an imitation way; comparing the generated new value set with the value set of the existing questions, and deleting the new value set if the new value set and the value set of the existing questions conflict; and (IV) replacing the new values to generate new questions, and repeating the imitation until the number of the new questions meets the requirements. The invention adopts the computer system to automatically replace the logic related numbers of the questions to generate new questions, thereby saving the labor cost, having high universality of the questions, higher speed and higher efficiency, not only effectively avoiding the writing error or the calculation error in the writing process by manpower, but also leading the questions to be more in line with the intention of the user by the setting of the user-defined mode.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method for simulating title numbers.
Background
In the daily learning process, computer questions have become a relatively large trend, and in the method for simulating human questions by a computer, most basically, some transformations are often made on some numbers of the same question types, so that the content of the same question types is enriched to make it possible for the thematic sea tactics. However, no better method for replacing the numbers of the questions through a computer system is found at present, manual question setting still plays a dominant role, sometimes, in order to obtain an expected answer, multi-step calculation is needed, the process is complicated, and under the condition of large number of questions, time and labor are consumed.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a method for replacing logically related digits in a topic is provided, thereby obtaining a new topic and overcoming the above-mentioned deficiencies of the prior art.
The technical scheme adopted by the invention is as follows: a method of digital simulation of a title, comprising the steps of:
firstly, acquiring the number of questions and generating new questions;
selecting a topic generation mode, wherein the mode comprises a system automatic generation mode and a user self-defined mode;
the system automatically generates a mode:
(1) acquiring problem solving logic and logic numbers of problems;
(2) acquiring all numbers of the questions and positions of the numbers;
(3) acquiring logic related numbers of subjects, and calculating the maximum imitable number;
(4) sequentially simulating the numbers to combine a new number group;
user-defined mode:
(1) the user self-defines the value range of each logic related number;
(2) the system identifies the format content and the position of the format content defined by the user in the question;
(3) the system sequentially extracts each self-defined content in the questions, analyzes the self-defined content into value lists according to a fixed format, sequentially takes values from each self-defined value list and combines the values into a new value group;
comparing the generated new value set with a value set list of the existing question, if all the numbers of the value set conflict with the existing value set, deleting the new value set, and re-simulating the value set;
and (IV) replacing the values in the value group to the original question copy in sequence to generate a new question, and repeating the imitation until the number of the new question meets the requirement.
The further technical scheme is as follows: the step (one) specifically comprises the following steps:
(1) acquiring content input by a user;
(2) extracting the title in the content;
(3) the number of new topics in the content is extracted.
Further: the system automatic generation mode of the step (two) specifically comprises the following steps:
firstly, obtaining problem solving logic of a problem, if the problem has the logic, entering a step II, and if the problem does not have the logic, quitting the imitation;
extracting logic numbers in the problem solving logic, if the problem solving logic has logic numbers, adding the logic numbers into a logic number list, entering the step III, and if the logic numbers do not exist, exiting the imitation;
thirdly, sorting the logic numbers in the logic number list from small to large;
extracting all numbers in the questions, acquiring the position of each number in the questions, and adding the numbers and the number positions of the questions into a question number list and a question number position list respectively;
extracting logic relevant digits from the title digit list, and adding the logic relevant digits into the logic relevant digit list;
calculating the maximum imitable number of the questions according to the imitable number of each logic related number;
seventhly, simulating the numbers in the logic related number list in sequence to generate a new value group.
Further: the user-defined mode of step (two) includes the following steps:
firstly, inputting a custom range of each numerical value in a question by a user, wherein the input range is represented by a custom format;
establishing an original topic copy, sequentially identifying a self-defined format and the position of the self-defined format from the copy, and adding the position of the format into a user-defined position list;
sequentially extracting self-defined numerical values and adding the self-defined numerical values into a self-defined value list;
and fourthly, traversing the copies, and respectively taking out the values from all the user-defined value lists to generate a new value group.
Further: the step (c) comprises the following steps:
judging whether the current number is an integer or a decimal, if so, performing imitation by adopting an integer imitation principle, and if so, performing imitation by adopting a decimal imitation principle;
integer imitation principle:
if the number of new questions is less than or equal to the maximum number of imitations
a. The digit of the new numerical value is consistent with that of the original numerical value;
b. the original numerical value digit is only 1 digit, the digit is not 0, the original numerical value digit is more than 1 digit, and the highest digit is not 0;
c. generating a random numerical value meeting the conditions of the steps, and replacing the random numerical value as a new numerical value;
if the number of new questions is required to be larger than the maximum number of imitation questions
a. Calculating the number of additional bits to make the new question number requirement less than or equal to the maximum imitative number, and the formula is as follows:
the number of additional bits = number of bits taken ((new title number requirement/maximum imitable number)/10);
b. calculating the digit of each original numerical value, and adding the digit into a digit list;
c. adding digits by using a minimum adding principle, and adding one digit to the minimum digit in sequence until the addition is finished;
d. the original numerical value digit is only 1 digit, the digit is not 0, the original numerical value digit is more than 1 digit, and the highest digit is not 0;
e. generating a random numerical value meeting the conditions of the steps, and replacing the random numerical value as a new numerical value;
decimal imitation principle:
and randomly simulating the numerical value to be replaced as a new numerical value, wherein the digit of the decimal part of the new numerical value is less than or equal to the digit of the decimal part of the original numerical value.
Due to the adoption of the technical scheme, the title digital imitation method has the following beneficial effects:
1. the method adopts a computer system to automatically replace the logic related numbers of the questions to generate new questions, and changes the manual rewriting of the questions into the automatic generation of the questions by the system, thereby not only saving the labor cost, but also having high universality, higher speed and higher efficiency;
2. the system automatically generates new questions, and can effectively avoid writing errors or calculation errors caused by complicated calculation process, multiple steps and multiple parameters in the writing process by manpower;
3. because the invention sets the user self-defining mode and supports the self-definition of logic relevant numbers and answers, the user can set values of the relevant numbers or answers of the questions to the direction required by the user, and the system randomly combines the set values to generate new questions, thereby leading the questions to be more in line with the intention of the user.
The technical features of a title digital imitation method of the present invention will be further described with reference to the accompanying drawings and examples.
Drawings
FIG. 1: the method of the present invention is a flow chart.
Detailed Description
Example one
A method for simulating title numbers, as shown in fig. 1, comprising the steps of:
firstly, acquiring the number of questions and generating new questions;
(1) acquiring the content input by the user:
the library purchases 2 kinds of books, namely 150 books of the fairy tale book and 150 books of the story book respectively, each 16 yuan of the fairy tale book and each 13.2 yuan of the story book, and how much money is needed for purchasing the books. #9
Where the symbol "#" is preceded by a topic and followed by the number of new topics generated.
(2) Extracting topics in the content:
the library purchases 2 kinds of books, namely 150 books of the fairy tale book and 150 books of the story book respectively, each 16 yuan of the fairy tale book and each 13.2 yuan of the story book, and how much money is needed for purchasing the books.
(3) Number of new topics in the extracted content: 9.
(II) carrying out pattern recognition, selecting a pattern for generating a title: the system automatically generates a mode;
(1) acquiring problem solving logic and logic numbers of problems;
firstly, obtaining problem solving logic of a problem, if the problem has the logic, entering a step II, and if the problem does not have the logic, quitting the imitation;
solving the problem logic:
number 1 x number 2= result 0
Number 1 x number 3= result 1
Result 0+ result 1= result 2
Where the number 0 is 2, the number 1 is 150, the number 2 is 16, and the number 3 is 13.2.
Extracting logic numbers in the problem solving logic, if the problem solving logic has logic numbers, adding the logic numbers into a logic number list, entering the step III, and if the logic numbers do not exist, exiting the imitation;
logic number: 1, 2, 3 of the number 1, number 2, number 3;
add 1, 2, 3 to the list of logical numbers.
Thirdly, sorting the logic numbers in the logic number list from small to large;
and (4) sequencing results: 1. 2 and 3.
(2) Acquiring all numbers of the questions and positions of the numbers;
extracting all numbers in the questions, acquiring the position of each number in the questions, and adding the numbers and the number positions of the questions into a question number list and a question number position list respectively;
number in the question: 2. 150, 16, 13.2;
digital position: 12. 43, 60, 76;
adding 2, 150, 16 and 13.2 into a topic number list;
add 12, 43, 60, 76 to the list of thematic locations.
(3) Acquiring logic related numbers of subjects, and calculating the maximum imitable number;
firstly, extracting logic related digits from a subject digit list, and adding the logic related digits into the logic related digit list;
list of logically related digits: 150. 16, 13.2;
150, 16, 13.2 are added to the list of logically related numbers.
Calculating to obtain the maximum imitable number of the questions according to the imitable number of each logic related number in the questions;
maximum number of counterfeits: 900 x 90 x 900= 72900000.
(4) Sequentially simulating the numbers in the logic related number list to generate a new number group;
judging whether the current number is an integer or a decimal, if so, performing imitation by adopting an integer imitation principle, and if so, performing imitation by adopting a decimal imitation principle;
integer imitation principle:
if the number of new questions is less than or equal to the maximum number of imitations
a. The digit of the new numerical value is consistent with that of the original numerical value;
b. the original numerical value digit is only 1 digit, the digit is not 0, the original numerical value digit is more than 1 digit, and the highest digit is not 0;
c. generating a random numerical value meeting the conditions of the steps, and replacing the random numerical value as a new numerical value;
if the number of new questions is required to be larger than the maximum number of imitation questions
a. Calculating the number of additional bits to make the new question number requirement less than or equal to the maximum imitative number, and the formula is as follows:
the number of additional bits = number of bits taken ((new title number requirement/maximum imitable number)/10);
b. calculating the digit of each original numerical value, and adding the digit into a digit list;
c. adding digits by using a minimum adding principle, and adding one digit to the minimum digit in sequence until the addition is finished;
d. the original numerical value digit is only 1 digit, the digit is not 0, the original numerical value digit is more than 1 digit, and the highest digit is not 0;
e. generating a random numerical value meeting the conditions of the steps, and replacing the random numerical value as a new numerical value;
decimal imitation principle:
and randomly simulating the numerical value to be replaced as a new numerical value, wherein the digit of the decimal part of the new numerical value is less than or equal to the digit of the decimal part of the original numerical value.
Comparing the generated new value set with a value set list of the existing question, if all the numbers of the value set conflict with the existing value set, deleting the new value set, and re-simulating the value set;
list of new value sets:
120、22、18.5
135、20、12.6
140、10、17.2
180、13、16.5
200、23、22.3
assume that the currently generated new set of values is: 200. 23, 22.3, if the conflict with the last group in the new value group list is obtained through judgment, re-counterfeiting is carried out;
assume that the currently generated new set of values is: 300. 21, 18.3, and directly putting the new value group list into the list if each group of the new value group list does not conflict with the new value group list.
And (IV) replacing the values in the value group to the original question copy in sequence to generate a new question, judging whether the imitation quantity reaches, if so, finishing the imitation, and if not, repeating the imitation until the quantity of the new question meets the requirement.
Topic 1: the library purchases 2 kinds of books, namely 120 books of fairy tale books and storybooks respectively, each fairy tale book has 22 yuan, and each storybook has 18.5 yuan, so that how much money is needed for purchasing the books.
Topic 2: the library purchases 2 kinds of books, namely 135 books of fairy tale books and story books respectively, wherein each 20 yuan of fairy tale books and each 12.6 yuan of story books, and how much money is needed for purchasing the books.
Topic 3: the library purchases 2 books respectively 140 books of fairy tale book and storybook, each 10 yuan of fairy tale book and each 17.2 yuan of storybook book, and how much money is needed for purchasing the books.
Example two
The steps (a), (b), (c) and (d) are substantially the same as those in the first embodiment, except that the topic generation mode selected in the step (b) is: the user self-defines the mode, and the steps are as follows:
(1) the user inputs the custom range of each numerical value in the question, and the input range is represented by a custom format;
assume that the user inputs: # [10-200], # [10-25], # [10.0, 10.5, 12.8, 15.6, 18.6, 20.0, 22.5, 25.0]
Namely: newly purchasing 2 books in a library, namely fairy tale books and storybooks with various # [10-200] yuan, 10.0, 10.5, 12.8, 15.6, 18.6, 20.0, 22.5 and 25.0] yuan, requires much money for purchasing the books.
(2) The system identifies the format content and the position of the format content defined by the user in the question;
establishing an original topic copy, sequentially identifying a self-defined format and the position of the self-defined format from the copy, and adding the position of the format into a user-defined position list;
(3) the system sequentially extracts each self-defined content in the questions, analyzes the self-defined content into value lists according to a fixed format, sequentially takes values from each self-defined value list and combines the values into a new value group;
firstly, sequentially extracting self-defined numerical values and adding the self-defined numerical values into a self-defined value list;
sequentially traversing the copies, and randomly taking out values from all the user-defined value lists to generate a new value group;
after the steps (three) and (four) are executed, the following results are obtained:
topic 1: the library purchases 2 kinds of books, namely 120 books of fairy tale books and story books respectively, each 20 yuan of fairy tale books and each 22.5 yuan of story books, and how much money is needed for purchasing the books.
Topic 2: the library purchases 2 books, namely 135 books of fairy tale books and story books respectively, each book of the fairy tale books is 25 yuan, each book of the story books is 15.6 yuan, and how much money is needed for purchasing the books.
Topic 3: the library buys 180 books of 2 books, namely fairy tale books and storybooks respectively, each fairy tale book is 10 yuan, each storybooks is 18.6 yuan, and how much money is needed for buying the books.
The above embodiments are only preferred embodiments of the present invention, and the method of the present invention is not limited to the forms illustrated in the above embodiments, and any modifications, equivalents and the like which are within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (5)
1. A method for simulating title numbers is characterized in that: the method comprises the following steps:
firstly, acquiring the number of questions and generating new questions;
selecting a topic generation mode, wherein the mode comprises a system automatic generation mode and a user self-defined mode;
the system automatically generates a mode:
(1) acquiring problem solving logic and logic numbers of problems;
(2) acquiring all numbers of the questions and positions of the numbers;
(3) acquiring logic related numbers of subjects, and calculating the maximum imitable number;
(4) sequentially simulating the numbers to combine a new number group;
user-defined mode:
(1) the user self-defines the value range of each logic related number;
(2) the system identifies the format content and the position of the format content defined by the user in the question;
(3) the system sequentially extracts each self-defined content in the questions, analyzes the self-defined content into value lists according to a fixed format, sequentially takes values from each self-defined value list and combines the values into a new value group;
comparing the generated new value set with a value set list of the existing question, if all the numbers of the value set conflict with the existing value set, deleting the new value set, and re-simulating the value set;
and (IV) replacing the values in the value group to the original question copy in sequence to generate a new question, and repeating the imitation until the number of the new question meets the requirement.
2. The method for digital simulation of titles according to claim 1, wherein: the step (one) specifically comprises the following steps:
(1) acquiring content input by a user;
(2) extracting the title in the content;
(3) the number of new topics in the content is extracted.
3. The method for digital simulation of titles according to claim 1, wherein: the system automatic generation mode of the step (two) specifically comprises the following steps:
firstly, obtaining problem solving logic of a problem, if the problem has the logic, entering a step II, and if the problem does not have the logic, quitting the imitation;
extracting logic numbers in the problem solving logic, if the problem solving logic has logic numbers, adding the logic numbers into a logic number list, entering the step III, and if the logic numbers do not exist, exiting the imitation;
thirdly, sorting the logic numbers in the logic number list from small to large;
extracting all numbers in the questions, acquiring the position of each number in the questions, and adding the numbers and the number positions of the questions into a question number list and a question number position list respectively;
extracting logic relevant digits from the title digit list, and adding the logic relevant digits into the logic relevant digit list;
calculating the maximum imitable number of the questions according to the imitable number of each logic related number;
seventhly, simulating the numbers in the logic related number list in sequence to generate a new value group.
4. The method for digital simulation of titles according to claim 1, wherein: the user-defined mode of step (two) includes the following steps:
firstly, inputting a custom range of each numerical value in a question by a user, wherein the input range is represented by a custom format;
establishing an original topic copy, sequentially identifying a self-defined format and the position of the self-defined format from the copy, and adding the position of the format into a user-defined position list;
sequentially extracting self-defined numerical values and adding the self-defined numerical values into a self-defined value list;
and fourthly, traversing the copies, and respectively taking out the values from all the user-defined value lists to generate a new value group.
5. The method for digital simulation of titles according to claim 3, wherein: the step (c) comprises the following steps:
judging whether the current number is an integer or a decimal, if so, performing imitation by adopting an integer imitation principle, and if so, performing imitation by adopting a decimal imitation principle;
integer imitation principle:
if the number of new questions is less than or equal to the maximum number of imitations
a. The digit of the new numerical value is consistent with that of the original numerical value;
b. the original numerical value digit is only 1 digit, the digit is not 0, the original numerical value digit is more than 1 digit, and the highest digit is not 0;
c. generating a random numerical value meeting the conditions of the steps, and replacing the random numerical value as a new numerical value;
if the number of new questions is required to be larger than the maximum number of imitation questions
a. Calculating the number of additional bits to make the new question number requirement less than or equal to the maximum imitative number, and the formula is as follows:
the number of additional bits = number of bits taken ((new title number requirement/maximum imitable number)/10);
b. calculating the digit of each original numerical value, and adding the digit into a digit list;
c. adding digits by using a minimum adding principle, and adding one digit to the minimum digit in sequence until the addition is finished;
d. the original numerical value digit is only 1 digit, the digit is not 0, the original numerical value digit is more than 1 digit, and the highest digit is not 0;
e. generating a random numerical value meeting the conditions of the steps, and replacing the random numerical value as a new numerical value;
decimal imitation principle:
and randomly simulating the numerical value to be replaced as a new numerical value, wherein the digit of the decimal part of the new numerical value is less than or equal to the digit of the decimal part of the original numerical value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110176031.2A CN112906894A (en) | 2021-02-09 | 2021-02-09 | Method for simulating question numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110176031.2A CN112906894A (en) | 2021-02-09 | 2021-02-09 | Method for simulating question numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112906894A true CN112906894A (en) | 2021-06-04 |
Family
ID=76122928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110176031.2A Pending CN112906894A (en) | 2021-02-09 | 2021-02-09 | Method for simulating question numbers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112906894A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101375268A (en) * | 2006-01-27 | 2009-02-25 | Unz.Org有限责任公司 | Presenting digitized content on a network |
CN103150938A (en) * | 2013-03-14 | 2013-06-12 | 南京信息工程大学 | Automatic question assignment method |
CN107203514A (en) * | 2017-07-18 | 2017-09-26 | 湖南光海教育科技有限公司 | Intelligent tutoring exercise generation method, device and computer-readable recording medium |
CN108052492A (en) * | 2017-12-11 | 2018-05-18 | 上海启思教育科技服务有限公司 | A kind of mathematical problem automatic creation system |
CN109583429A (en) * | 2018-12-26 | 2019-04-05 | 杭州大拿科技股份有限公司 | A kind of method and device for the middle application topic that corrects an examination paper |
CN109960804A (en) * | 2019-03-21 | 2019-07-02 | 江西风向标教育科技有限公司 | A kind of topic text sentence vector generation method and device |
-
2021
- 2021-02-09 CN CN202110176031.2A patent/CN112906894A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101375268A (en) * | 2006-01-27 | 2009-02-25 | Unz.Org有限责任公司 | Presenting digitized content on a network |
CN103150938A (en) * | 2013-03-14 | 2013-06-12 | 南京信息工程大学 | Automatic question assignment method |
CN107203514A (en) * | 2017-07-18 | 2017-09-26 | 湖南光海教育科技有限公司 | Intelligent tutoring exercise generation method, device and computer-readable recording medium |
CN108052492A (en) * | 2017-12-11 | 2018-05-18 | 上海启思教育科技服务有限公司 | A kind of mathematical problem automatic creation system |
CN109583429A (en) * | 2018-12-26 | 2019-04-05 | 杭州大拿科技股份有限公司 | A kind of method and device for the middle application topic that corrects an examination paper |
CN109960804A (en) * | 2019-03-21 | 2019-07-02 | 江西风向标教育科技有限公司 | A kind of topic text sentence vector generation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Thon | Who’s telling the tale? Authors and narrators in graphic narrative | |
CN111950630B (en) | Small sample industrial product defect classification method based on two-stage transfer learning | |
CN110209892A (en) | Sensitive information recognition methods, device, electronic equipment and storage medium | |
Drout | Tradition and influence in Anglo-Saxon literature: An evolutionary, cognitivist approach | |
CN107357785A (en) | Theme feature word abstracting method and system, feeling polarities determination methods and system | |
CN110263164A (en) | A kind of Sentiment orientation analysis method based on Model Fusion | |
CN102682022A (en) | Implementation method for Chinese character holographic movable character library and operation of Chinese character holographic movable character library | |
CN112906894A (en) | Method for simulating question numbers | |
CN109933768A (en) | A kind of legal documents Intelligent treatment, write method and system | |
CN109240549B (en) | Calligraphy corrector based on external digital equipment and big data intelligent analysis | |
CN102891838A (en) | Method and device for detecting promotion content in question and answer club | |
CN102591850A (en) | Method and system for error text statement correction based on conditional statements | |
Melle | Husserl’s revision of the sixth logical investigation | |
CN101470692A (en) | Multimedia poem evaluation system and method | |
CN110110605A (en) | A kind of Chinese Painting and Calligraphy handwriting verification sample database system | |
CN105654534A (en) | Academic poster automatic composition generation method | |
Van Gigch | Design of the modern inquiring system—ii. the contemporary computer | |
Ma et al. | Online painting image clustering for the mental health of college art students based on improved CNN and SMOTE | |
Peng et al. | Influence Factors and Improvement Suggestions of Chinese Wushu Communication in Chinese Martial Arts. | |
CN116798046B (en) | Automatic modification method, device, medium and program product for junior middle school mathematical formulas | |
CN108647898A (en) | Information evaluation processing method and processing device | |
White | The position and role of minority languages and their writing systems in China | |
Mash et al. | Unknown But Not Unknowable: The Network of Identified and Unidentified Hands in the Social Edition of the Devonshire Manuscript | |
CN107633074A (en) | A kind of information extracting method, device and storage medium | |
Корончик | INTERNET MEMES AS AN INTERDISCIPLINARY CONCEPT |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210604 |