透過您的圖書館登入
IP:3.14.248.120
  • 學位論文

C 程式碼比對分類

C source code cmpare and classification

指導教授 : 阮議聰
若您是本文的作者,可授權文章由華藝線上圖書館中協助推廣。

摘要


中文摘要 本文提供一種 c 程式的分類方法,主要以字串比對系統,對於每一個 c 程式語言,以 F(p)-L 轉換為代數表示式,如此對於每一個程式都將可以視為文字字串,然後再以字串比對系統求出其程式之間的差異度(Edit-Distance),如此對於程式分類的方法歸納程式的類別。 而在字串比對系統方面,本對文將有別於傳統字串比對的運算規則作一些延伸的方法,傳統基本的字串比對方法大致允許 插入(Insert)、刪除(Delete) 和 取代(Replace)等規則,進一步則加入換位(Transposition) 。而本文將就換位此規則作了一些延伸的方法。使之對於再處理 C 程式語言時能夠求得有更好的(或更小) Edit-Distance 結果。 而為了增進對於程式之中使兩個程式間有更好的相似性,對於程式我們將以不更動其流程和語意下,做了小部分的格式統一,並以變數重新命名(Binding),以期望找出程式中最小的差異度。

關鍵字

字串比對分類

並列摘要


ABSTRACT This paper propose a classification method for C language code, in string compare system, we use F(p)-L to transfer every C code to an algebraic expression, so that every C program could be view as a text string. Then we can calculate the “Edit-distance” between the programs by string compare algorithm, and use the distance to induce the classification of the programs. About the string compare system, we propose some extend method that differ to the operation rule of traditional string comparison, traditional basic string comparison roughly allow “Insert”, “Delete”, and “Replace”. Further added “Transposition”. This paper extend Transposition rule and try to make better Edit-Distance result performance of C programs. For increase the similarity of two programs, we will unite small part of program format without changing the program process and semantic, and Re-binding the variable, expect to find smallest Edit-distance between the programs.

並列關鍵字

Edit-Distance Pattern-Matching

參考文獻


[2] Myers, E. W., ‘‘A four-Russians algorithm for regular expression pattern matching,’’ J. of the ACM, 39 (1992), pp. 430{-448.
[3] Ukkonen E., ‘‘Finding approximate patterns in strings,’’ J. of Algorithms, 6 (1985), pp. 132-{137.
[4] Sun Wu,Udi Manber,& Gene Myers ,” A Sub-quadratic Algorithm for Approximate Limited Expression Matching,” TR 92-36 December 16, 1992
[7] A.De Lucia, A.R. Fasolino, and M. Munro, “Understanding Function Behaviors Through Program Slicing,” Proc. Fourth Workshop on Program Comprehension, pp. 9–18, Berlin, Germany, IEEE CS Press, 1996.
[9] E. Ukkonen: On-line construction of suffix-trees. Algorithmica 14 (1995), 249-260

被引用紀錄


吳俊宏(2012)。簡易英文會話系統之建置〔碩士論文,國立中央大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0031-1903201314433169
黃文谷(2012)。以C程式碼相似度比對法加強資訊安全於一企業之資料交換平台〔碩士論文,國立中央大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0031-1903201314443068
陳昱廷(2014)。風險圖像行動化與視覺化對企業風險管理的影響-以食品安全為例〔碩士論文,國立中正大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0033-2110201613595195

延伸閱讀


國際替代計量