Optimizing the For loop: Comparison of For loop and micro For loop
Programming Languages
2014-10-15 v1
Abstract
Looping is one of the fundamental logical instructions used for repeating a block of code. It is used in programs across all programming languages. Traditionally, in languages like C, the for loop is used extensively for repeated execution of a block of code, due to its ease for use and simplified representation. This paper proposes a new way of representing the for loop to improve its runtime efficiency and compares the experimental statistics with the traditional for loop representation. It is found that for small number of iterations, the difference in computational time may not be considerable. But given any large number of iterations, the difference is noticeable.
Cite
@article{arxiv.1410.3772,
title = {Optimizing the For loop: Comparison of For loop and micro For loop},
author = {Rishabh Jain and Sakshi Gupta},
journal= {arXiv preprint arXiv:1410.3772},
year = {2014}
}
Comments
3 pages, 2 figures, 2 tables