From: John Clements <aoeucaml@brinckerhoff.org>
To: Nicolas barnier <barnier@recherche.enac.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml clone detector
Date: Thu, 3 Sep 2009 16:13:37 -0700 [thread overview]
Message-ID: <98CD7C59-7CBB-4988-916E-0A4CB343344D@brinckerhoff.org> (raw)
In-Reply-To: <4A9FDB6D.6060107@recherche.enac.fr>
On Sep 3, 2009, at 8:06 AM, Nicolas barnier wrote:
> An amazing and simple technology to detect plagiarism is
> compression-based similarity distance. It is a side-effect
> of state-of-the-art compression algorithms that can be used
> to compute a distance for many kind of documents (it seems
> to work at least for program sources, books, music, DNA etc):
> take any two files A and B, compress A, compress B, and compress
> the concatenation of A and B, i.e. AB; take the size of these
> compressed files c(A), c(B) and c(AB); the similarity distance
> is simply d(A,B) = 1 - (c(A) + c(B) - c(AB)) / max (c(A), c(B)).
> Indeed, if documents A and B share information, the compression
> of AB will be much shorter than c(A) + c(B).
Also see Alex Aiken's "MOSS" (measure of software similarity). It's
online, language-specific, works for a variety of languages. Don't
know how its algorithm compares to the one here. I suspect it's
different insofar the one you describe is language-independent.
John Clements
next prev parent reply other threads:[~2009-09-03 23:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-03 0:21 Kihong Heo
2009-09-03 1:19 ` [Caml-list] " Erik de Castro Lopo
2009-09-03 1:56 ` Jacques Carette
2009-09-03 3:14 ` Erik de Castro Lopo
2009-09-03 5:38 ` Andrej Bauer
2009-09-03 15:06 ` Nicolas barnier
2009-09-03 23:13 ` John Clements [this message]
2009-09-04 11:30 ` Stéphane Glondu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98CD7C59-7CBB-4988-916E-0A4CB343344D@brinckerhoff.org \
--to=aoeucaml@brinckerhoff.org \
--cc=barnier@recherche.enac.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox