Boletim da Sociedade Paranaense de Matemática (Dec 2022)

Comparison of C, Java, Python and Matlab programming languages for Fibonacci and Towers of Hanoi algorithm applications

  • Ceren Cubukcu,
  • Zeynep Behrin Guven Aydin,
  • Ruya Samli

DOI
https://doi.org/10.5269/bspm.52209
Journal volume & issue
Vol. 41

Abstract

Read online

Many programming languages evolved with the development of technology. However, it is still not clear which programming language should be used for which applications since there are not enough comparisons of these languages. The aim of this study is to compare the performances of some of the most frequently used programming languages; C, Java, Python and Matlab for Fibonacci and Towers of Hanoi algorithm applications. These algorithms are chosen for this study because they are both recursive algorithms and are widely used in computer science. Performances of these languages are measured according to the code length, programming effort, runtime efficiency and reliability. The results obtained as a result of these analysis are also shown in this study.