Can 2 students come up with the same codes for a homework assignment

조회 수: 6 (최근 30일)
Could 2 students come up with the same codes for a homework assignment?

채택된 답변

Walter Roberson
Walter Roberson 2020년 8월 12일
Yes. There are some semi-conventional variable names for some purposes, and some algorithms only have a small number of basic ways to be written.
For example recently there was a question about the shortest m file to build a particular array. Inexperienced people would have been likely to write a loop, but for more experienced people, the array could be calculated by adding two simple expressions together, and then since it asked for the shortest m file the only available variety was choice of single-letter variable name and choice of which expression was left or right of the +, for a total of only 2*26 letters times 2 positions = 104 possibilities but some names would be much more likely than others, really only 15 or so common answers.
  댓글 수: 1
Christine White
Christine White 2020년 8월 12일
Thankyou my grandson has been accused of cheating 5 years ago someone turned in an assignment that was very much the same grandson is appealing this as he didn t cheat!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Steven Lord
Steven Lord 2020년 8월 12일
Sometimes the constraints placed on the students as part of the assignment encourage or almost force the result of the assignment to be the same. Consider a simple assignment to "Write a function named addme that takes two inputs and returns their sum."
Assuming the students interpret "their sum" the straightforward way (+) rather than being 'creative', the only real choices they have in implementing their solutions are the names of the three variables (the two inputs and the output) and as Walter says some choices are much more likely than others (x, y, z and a, b, c are probably going to be the most common.)
But if you're asking something more nuanced, like "Does MathWorks have any tools to detect plagiarism in homework solutions?" you could potentially try analyzing the corpus of solutions from your students using Text Analytics Toolbox or maybe the clustering tools in Statistics and Machine Learning Toolbox. But generating a report (if you're using MATLAB Grader) and passing that report into your Learning Management System's plagiarism detection systems would probably be easier.

카테고리

Help CenterFile Exchange에서 Parallel and Cloud에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by