Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Plagiarism Detection ???

Plagiarism Detection ???

Scheduled Pinned Locked Moved The Lounge
databasequestion
24 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ _Damian S_

    james_dixon_2008 wrote:

    How does it check for code cheating

    The plagiarism checking software that was used at my university (a lifetime ago I admit) worked in the following way: 1. Strip out ALL comments and whitespace from the code 2. Compare what's left (ie: just the code, not the comments/white space) I was shown a sample of a detected plagiarism - the code was IDENTICAL apart from the literal strings eg: one said "Enter the number" the other said "Number?" If you are researching a problem on the web, and take some snippets of code you find and modify them to suit your purposes, then that is the efficient and effective use of resources. If you are taking someone elses code and attempting to straight out pass it off as your own, that's plagiarism.

    ------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!

    B Offline
    B Offline
    bobnek
    wrote on last edited by
    #13

    Back in the mid 80's I had a professor that checked for cheating by running the student's programs through lexical analyzer that he wrote. Everything that was left after white space and comments would be considered a token. He would then compare the number of tokens and which ones were used. Any close matches in these numbers warranted a closer look and usually proved that a couple students were sharing code. The last two classes I had with this guy was “Compiler Design” and that is where he revealed how he did this while teaching us to write the front end of our own compilers.

    1 Reply Last reply
    0
    • P peterwaine

      What is it about academia ? Punishing people for code resuse ? Whereas in a working environment you get punished for not resuing code. Where a key metric is how quickly you can deliver and the sponsor is not the least bit interested in who wrote the code.

      H Offline
      H Offline
      hvanzyll
      wrote on last edited by
      #14

      While your in school... you are suppose to be learning how to code... not use some one elses code... by the time you get to working... they assume you know how to code... so then you can use other peoples work...

      1 Reply Last reply
      0
      • P peterwaine

        What is it about academia ? Punishing people for code resuse ? Whereas in a working environment you get punished for not resuing code. Where a key metric is how quickly you can deliver and the sponsor is not the least bit interested in who wrote the code.

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #15

        True, but the point of submitting these pieces of coursework is to prove that the student actually has the capability to complete that coursework - that they understand the concept and how to put it into practice. The grade they get on the coursework normally makes up part of the overall grade for that course module and ultimately the pass/fail result, and any grading, they get on their time at university. You could do it as a measure of whatever their code provides over and above what they've researched and obtained, but that makes it very difficult to set coursework for fundamentals classes covering data structures and algorithms, which will tend to be included in some system-supplied package with most programming languages and environments. It also makes for an uneven playing field. As for the working environment, the sponsor should be interested in who wrote the code, or at least the terms the original author placed on it. A lot of companies are being sued for including GPL code in their applications and having to settle, and many router makers are now having to place source code on their websites.


        DoEvents: Generating unexpected recursion since 1991

        1 Reply Last reply
        0
        • P peterwaine

          What is it about academia ? Punishing people for code resuse ? Whereas in a working environment you get punished for not resuing code. Where a key metric is how quickly you can deliver and the sponsor is not the least bit interested in who wrote the code.

          G Offline
          G Offline
          ghle
          wrote on last edited by
          #16

          peterwaine wrote:

          Punishing people for code resuse ?

          Academia is about learning how to do something. A base of knowledge so you are productive at the tasks after school is finished. Take a bubble sort, for example. The goal is not just to get a working bubble sort. It is more important to learn the manipulations, storing, comparisons, and HOW TO DO IT, not just to do it. Why bother learning history, math, a language (or even spelling), when I can go on the web and do a search and "resuse" someone else's work? Same idea. Work is about getting things done, not learning how to do it. We've all met the "coders" that cannot think for themselves. If they can't find the idea somewhere else, they can't do the assigned task without help. :mad:

          Gary

          M 1 Reply Last reply
          0
          • T thrakazog

            The university should be encouraging Plagiarism anyway. In the real world if you can steal some working code of the old interweb you save man hours. Just mark anything stolen as *research* and you're in the clear.

            M Offline
            M Offline
            Mike Lang
            wrote on last edited by
            #17

            In some situations yes, you can copy code from the web. Maybe you need a data access layer, so you use enterprise library, or a customized version of it. Or maybe you need logging, so you use log4net, ent lib logging, or better yet xquisoft logging (shameless plug). But rarely if ever will you be able to piece together an entire business application from anything on the web. Make sure you actually learn how to design and write original code while you can.

            Michael Lang (versat1474) http://www.xquisoft.com/[^]

            1 Reply Last reply
            0
            • J james_dixon_2008

              Just wondering ...How does this software work for Universities..How does it check for code cheating...I want to write this piece of software but i am not sure how does it compare things..I know it search over the net and look over all the coding reference database to find the similar one...But if the student recompiled the code and made some changes then would this software gonna work. cheers James

              S Offline
              S Offline
              Sergey Alexandrovich Kryukov
              wrote on last edited by
              #18

              Dear university professors! Please consider starting with your own work. Come to think about, may be you're the first ones to be accused in plagiarism, well... sometimes? When I hear about student's assignment work done by copying someone's else work, it means that someone else already invented the problems, provided the solution or his/her students did; and may be you were the one to borrow the problem (may be with solutions(s)) and offer to your students. If your problems were original, your students would not have anything to copy, except some known algorithm to solve some partial problems, but that would be o.k. to do so. Now, I admit that it is very hard to invent a really original problem. I have created myself just a dozen or so, to count only decent ones. But I had a luxury to teach VERY few students; and I work at inventing problems quite rarely. Most problems come out when you do some real-life development combined with teaching/mentoring. So, anyway, before thinking about catching your students on plagiarism, I would kindly invite you to think some more about quality of your teaching. Thank you.

              Sergey A Kryukov

              A G 2 Replies Last reply
              0
              • G ghle

                peterwaine wrote:

                Punishing people for code resuse ?

                Academia is about learning how to do something. A base of knowledge so you are productive at the tasks after school is finished. Take a bubble sort, for example. The goal is not just to get a working bubble sort. It is more important to learn the manipulations, storing, comparisons, and HOW TO DO IT, not just to do it. Why bother learning history, math, a language (or even spelling), when I can go on the web and do a search and "resuse" someone else's work? Same idea. Work is about getting things done, not learning how to do it. We've all met the "coders" that cannot think for themselves. If they can't find the idea somewhere else, they can't do the assigned task without help. :mad:

                Gary

                M Offline
                M Offline
                marr75
                wrote on last edited by
                #19

                There is a huge message in the industry targeted right at universities. The message is clear, the graduates you are pumping out are not prepared to work here. They do not have the networking, code reuse, application, or quick decision making skills to cut the mustard. One of the most valuable skills I ever learned was how to read other people's code, therefore "plagiarism" checking applications with complex algorithms are a trivial tool. A quick program that gives totals of whitespace and tokens so that a professor can identify suspicious submissions followed by a quick interview to make sure both students understand the code that they have submitted is more than sufficient to ensure that a student did not simply "copy" the solution, if his friend aided him by providing source and making sure that his fellow student understood the operation and mechanics of it then they both gained valuable knowledge from the exercise.

                1 Reply Last reply
                0
                • S Sergey Alexandrovich Kryukov

                  Dear university professors! Please consider starting with your own work. Come to think about, may be you're the first ones to be accused in plagiarism, well... sometimes? When I hear about student's assignment work done by copying someone's else work, it means that someone else already invented the problems, provided the solution or his/her students did; and may be you were the one to borrow the problem (may be with solutions(s)) and offer to your students. If your problems were original, your students would not have anything to copy, except some known algorithm to solve some partial problems, but that would be o.k. to do so. Now, I admit that it is very hard to invent a really original problem. I have created myself just a dozen or so, to count only decent ones. But I had a luxury to teach VERY few students; and I work at inventing problems quite rarely. Most problems come out when you do some real-life development combined with teaching/mentoring. So, anyway, before thinking about catching your students on plagiarism, I would kindly invite you to think some more about quality of your teaching. Thank you.

                  Sergey A Kryukov

                  A Offline
                  A Offline
                  amymarie3
                  wrote on last edited by
                  #20

                  When I was in college my instructor gave us projects to do but our tests were worth more than our projects. All tests were paper tests where we were asked to write code. It had to be mistake free.

                  1 Reply Last reply
                  0
                  • J james_dixon_2008

                    Just wondering ...How does this software work for Universities..How does it check for code cheating...I want to write this piece of software but i am not sure how does it compare things..I know it search over the net and look over all the coding reference database to find the similar one...But if the student recompiled the code and made some changes then would this software gonna work. cheers James

                    B Offline
                    B Offline
                    BruceCarson
                    wrote on last edited by
                    #21

                    Just in case you weren't aware of it, Google has a special "Code Search" feature: http://www.google.com/codesearch/advanced\_code\_search

                    G 1 Reply Last reply
                    0
                    • S Sergey Alexandrovich Kryukov

                      Dear university professors! Please consider starting with your own work. Come to think about, may be you're the first ones to be accused in plagiarism, well... sometimes? When I hear about student's assignment work done by copying someone's else work, it means that someone else already invented the problems, provided the solution or his/her students did; and may be you were the one to borrow the problem (may be with solutions(s)) and offer to your students. If your problems were original, your students would not have anything to copy, except some known algorithm to solve some partial problems, but that would be o.k. to do so. Now, I admit that it is very hard to invent a really original problem. I have created myself just a dozen or so, to count only decent ones. But I had a luxury to teach VERY few students; and I work at inventing problems quite rarely. Most problems come out when you do some real-life development combined with teaching/mentoring. So, anyway, before thinking about catching your students on plagiarism, I would kindly invite you to think some more about quality of your teaching. Thank you.

                      Sergey A Kryukov

                      G Offline
                      G Offline
                      ghle
                      wrote on last edited by
                      #22

                      Burn the books and tests - don't use them. Original thinking only. Let's go back to the dark ages.

                      Gary

                      1 Reply Last reply
                      0
                      • B BruceCarson

                        Just in case you weren't aware of it, Google has a special "Code Search" feature: http://www.google.com/codesearch/advanced\_code\_search

                        G Offline
                        G Offline
                        ghle
                        wrote on last edited by
                        #23

                        Ah, now I can finish my homework... Thanks. :-D

                        Gary

                        1 Reply Last reply
                        0
                        • P peterwaine

                          What is it about academia ? Punishing people for code resuse ? Whereas in a working environment you get punished for not resuing code. Where a key metric is how quickly you can deliver and the sponsor is not the least bit interested in who wrote the code.

                          S Offline
                          S Offline
                          Sergey Alexandrovich Kryukov
                          wrote on last edited by
                          #24

                          peterwaine wrote:

                          Punishing people for code resuse ?

                          Do you need a lecture on how plagiarism and code reuse are different? I don't think so. I do believe you're smart enough to understand this: Plagiarism according to Wikipedia[^] Plagiarism is no more no less than a misrepresentation of the author of something -- a lie, a fraud.

                          Sergey A Kryukov

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups