Click here to Skip to main content
15,886,046 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a website( my Academic Project) in which user can upload his program files(.cs,.PHP,.java),than the web compile the program and able to say Time and space complexity automatically.Is this possible.How can we calculate complexity of program .Is there any code in java for finding complexity of a program? or can we found these from compiler itself? PLZ HELP
Posted
Updated 13-Jul-12 23:08pm
v2

1 solution

Well the first thing you need to do is compile and link their code. Once you have the executable code you can get information about its memory requirements by reading the executable header. Getting the time value is probably not possible as it depends on so many variables that will not necessarily be given with the program.

I have to ask why you are doing this project before you have figured out whether it is actually possible or not.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900