+ 4
How to Check Efficiency of program's ?
3 Respostas
+ 3
The efficiency of your code depends on the algorithm not on the size of your code. Identify the O(?) of your algorithm. Bubble sort is very small but very inefficient also.
+ 2
The best programs use smaller codes as possible to resolve big problems. If your code has a bunch of code, but only calculates the sum of prime numbers or somthing, when you can make it very small, then you can't consider it efficient. Also a good program uses pointers, which saves a lot of memory. But most important, it solves the problem at 100% percent, without limitations or something else.
+ 2
You can :
* test it and show test coverage (do not try to trick this number, it is easy but it is useless)
* do performance tests and show its limitations
* check its quality with static analysis tools