FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Architecture & Design
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
July 01, 2004

Detecting Source-Code Plagiarism

(Page 5 of 6)
July, 2004: Detecting Source-Code Plagiarism

(a)

File 1                                  File 2
1 /* begin routine */                   1 /* find the file extension */
2 void fdiv(                            2 void file_divide(
3    char *fname, // file name          3 char      *fname,
4    char *path)   /* path */           4 char      *path)    // path
5 {                                     5 {
6     int Index1, j;                    6   int i, j; /* begin routine */
7                                       7   while (1)     // loop here
8     while (1)                         8     j = strlen(fname);
9        j = strlen(fname);             9
10    // find the file extension        10   switch (x)
11    if (x == 5) {                     11   {


(b)
File 1                                  File 2
1 /* begin routine */                   6    int i, j; /* begin routine */
4     char *path)   /* path */          4  char      *path)    // path
10    // find the file extension        1  /* find the file extension */

Figure 4: Comment Line Matching. (a) Two files; (b) matching comment lines in File 1 and File 2.

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK