IDEAS home Printed from https://ideas.repec.org/a/hin/jnlmpe/429807.html
   My bibliography  Save this article

Computation of Program Source Code Similarity by Composition of Parse Tree and Call Graph

Author

Listed:
  • Hyun-Je Song
  • Seong-Bae Park
  • Se Young Park

Abstract

This paper proposes a novel method to compute how similar two program source codes are. Since a program source code is represented as a structural form, the proposed method adopts convolution kernel functions as a similarity measure. Actually, a program source code has two kinds of structural information. One is syntactic information and the other is the dependencies of function calls lying on the program. Since the syntactic information of a program is expressed as its parse tree, the syntactic similarity between two programs is computed by a parse tree kernel. The function calls within a program provide a global structure of a program and can be represented as a graph. Therefore, the similarity of function calls is computed with a graph kernel. Then, both structural similarities are reflected simultaneously into comparing program source codes by composing the parse tree and the graph kernels based on a cyclomatic complexity. According to the experimental results on a real data set for program plagiarism detection, the proposed method is proved to be effective in capturing the similarity between programs. The experiments show that the plagiarized pairs of programs are found correctly and thoroughly by the proposed method.

Suggested Citation

  • Hyun-Je Song & Seong-Bae Park & Se Young Park, 2015. "Computation of Program Source Code Similarity by Composition of Parse Tree and Call Graph," Mathematical Problems in Engineering, Hindawi, vol. 2015, pages 1-12, April.
  • Handle: RePEc:hin:jnlmpe:429807
    DOI: 10.1155/2015/429807
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/MPE/2015/429807.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/MPE/2015/429807.xml
    Download Restriction: no

    File URL: https://libkey.io/10.1155/2015/429807?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hin:jnlmpe:429807. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.