Method for automatically classifying and grading program competition type source codes according to question answering method
An automatic classification and source code technology, which is applied in the direction of instruments, software testing/debugging, electrical digital data processing, etc., can solve the problems of unfair scoring, fine granularity, rigidity, etc., and achieve the effect of improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0030] for(expression1;expression2;expression3){...}
[0031] → expression1; while(expression2){...expression3;}
example 2
[0033] do{...}while(expression);
[0034] → while(true){...if(!expression)break;}
[0035] 2) Transformation of operators sensitive to the order of operations: In C language, the operations that specify the order of operations are: "&&", "||", "?:" and ",". The "&&" and "||" operators are logical operators, which will also be mentioned later when introducing the transformation of logical expressions. The main idea of transforming operators that are sensitive to the order of operation is to introduce temporary variables to split a statement into multiple statements that are not sensitive to the order of operation.
[0036] There are three transformation rules, and two transformation examples are also given:
[0037] Example 1:
[0038] ...expression0,expression1...;
[0039] →...expression0;temporary1=expression1;temporary1...;
[0040] Example 2:
[0041] ...expression 0? expression1:expression2...;
[0042] → if (expression 0) {temporary variable 1 = expression 1;} ...
example 3
[0056] Example 3: (-expression1)+(-expression2)→-(expression1+expression2)
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com