Please use this identifier to cite or link to this item: https://cuir.car.chula.ac.th/handle/123456789/42711
Title: EMPIRICAL STUDY OF SOURCE LEVEL DIFFICULTY
Other Titles: การศึกษาเชิงประสบการณ์ของความยากระดับต้นฉบับ
Authors: Xiao Liu
Advisors: Peraphon Sophatsathit
Other author: Chulalongkorn University. Faculty of Science
Advisor's Email: speraphon@gmail.com
Subjects: Computer programs -- Testing
Computer software
โปรแกรมคอมพิวเตอร์ -- การทดสอบ
ซอฟต์แวร์
Issue Date: 2013
Publisher: Chulalongkorn University
Abstract: This thesis aims to provide a straightforward measurement for source level difficulty of programs using a set of well-established measurements, namely, operators, operands, parameters, inputs and outputs, file operations, external functions or libraries, variable declarations, and flow graphs. Six popularly used programming languages, namely, C, C#, Java, Python, PHP, and Perl are selected to measure and assess source code difficulty. Four classes of problems are studied, i.e., matching, I/O, computation, and comparison, One hundred and fifty six programs written in the aforementioned programming languages are collected from the Internet to be measured. The approach transforms source code into program flow graph and utilizes traditional software metrics, namely, LOC, CCM, and HCM to measure code complexity. Experiments show that source code written in compiled languages have greater difficulty than those written in interpreted languages. In addition, there is no one language which is suitable for all types of problems. As a consequence, developers can decide on language that is appropriate for the task to be implemented.
Other Abstract: วัตถุประสงค์ของวิทยานิพนธ์นี้คือวิจัยการวัดความยากระดับต้นฉบับอย่างตรงไปตรงมาโดยใช้กลุ่มตัววัดมาตรฐานที่ใช้กัน ได้แก่ ตัวดำเนินการ ปัจจัยการดำเนินการ พารามิเตอร์ อินพุตและเอาท์พุต การดำเนินการแฟ้มข้อมูล ฟังก์ชันภายนอกหรือไลบารี การประกาศตัวแปร และกราฟการใหล งานวิจัยนี้ใช้ภาษาหกชนิดในการวัดความยากคือ ซี ซีชาร์บ จาวา ไพตอน พีเอชพี และเพิล โดยศึกษาปัญหาสี่ประเภทคือ การเทียบความเหมือน อินพุต/เอาท์พุต การคำนวณ และการเปรียบเทียบ งานวิจัยนี้ใช้โปรแกรมตัวอย่าง 156 โปรแกรมจากอินเทอร์เน็ตเป็นข้อมูล วิธีวิจัยคือแปลงต้นฉบับเป็นกราฟการใหลแล้ววัดด้วยมาตรวัดซอฟต์แวร์มาตรฐาน คือ LOC, CCM, และ HCM ผลการทดลองพบว่า ต้นฉบับที่เขียนด้วยภาษาแปลมีความซับยากมากกว่าภาษาตีความ นอกจากนี้ ไม่มีภาษาหนึ่งภาษาใดที่เหมาะสมกับปัญหาทุกประเภท ผลลัพธ์เป็นการช่วยให้ผู้พัฒนาโปรแกรมสามารถเลือกภาษาที่เหมาะสมกับงานที่จะทำให้เกิดผล
Description: Thesis (M.Sc.)--Chulalongkorn University, 2013
Degree Name: Master of Science
Degree Level: Master's Degree
Degree Discipline: Computer Science and Information Technology
URI: http://cuir.car.chula.ac.th/handle/123456789/42711
URI: http://doi.org/10.14457/CU.the.2013.181
metadata.dc.identifier.DOI: 10.14457/CU.the.2013.181
Type: Thesis
Appears in Collections:Sci - Theses

Files in This Item:
File Description SizeFormat 
5572602523.pdf2.12 MBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.