Sunday, 05 May, 2024

+91-9899775880

011-47044510

011-49075396

Time-space analysis in Programming Languages

IMS Manthan (The Journal of Mgt., Comp. Science & Journalism)

Volume 8 Issue 1

Published: 2013
Author(s) Name: Jatinder Manhas | Author(s) Affiliation: Department of Computer Science and IT (BC), University of Jammu, (J&K), India.
Locked Subscribed Available for All

Abstract

Time and space complexity of a program always remain an issue of greater consideration for programmers. The author in this paper has discussed the time and space complexity of a single program written in different languages. The sample program was one by one executed on a single machine with similar configuration in each case with different compiler versions. It has been observed that in different languages (C, C++, Java, C#) time taken varies. Mostly the research done for language in case of time-space trade-off is usually not bounded with fixed system configuration. In that case we calculate the time and space complexity of a particular algorithm with no system constraints. Such procedure does not give us time and space complexity of program with respect to language. The author here believes to calculate the time and space complexity of a program with respect to language. While execution of a sample code written in different languages on fixed system configuration, for each run of sample code, CPU time is calculated and compared. It shows how the choices of language affect the time and space resource.

Keywords: Time and space Complexity, Program, Language, Time Complexity, Space Complexity

View PDF

Refund policy | Privacy policy | Copyright Information | Contact Us | Feedback © Publishingindia.com, All rights reserved