AUTOMATIC ALGORITHM SPECIFICATION TO SOURCE CODE TRANSLATION

Suvam Mukherjee, Tamal Chakrabarti · 2011

Computers have become all-pervasive, and are being used in a variety of areas like Microbiology, Astronomy, Social Sciences and many others. In almost all these areas, algorithmic solutions to problems are common. However, most programming languages have certain idiosyncrasies. This is why people who don’t have a good background in computer programming have difficulty in writing good, efficient programs. Moreover, there are many programming languages which allow coding in a variety of paradigms. Though it is easy for someone trained in Computer Science to convert a program from one language to another, it is less so for people in other fields. In this paper, we describe a translation program that can create a piece of executable code, given the code’s algorithmic specification. This program allows the user to specify his/her code using an easy-to-understand, simple-to-write and more or less immutable pseudo code specification. The program will then check the pseudo code for errors, and convert it to a specified language (be it C, Java, or any other language). The program may easily be extended to accommodate different languages. Our program allows the user to focus on just the algorithm, and not on issues related to implementation.

Read the paper · More papers on PaperTik