Algorithmic Efficiency

From MTUGreenComputing

Jump to: navigation, search

Algorithmic Efficiency

Algorithmic Efficiency is also one of the green computing area. When you are writing more efficient code you are Optimizing the code, which means you are doing what the codes needs to do with least strain on the processor. They are many trade-offs in writing programs.

For Example Writing a clean, readable and usable design is usually more important than writing a fast efficient design that is hard to understand.

So writing a obfuscated code (unreadable efficient code), Although efficient is not good because it is not going to help because it is not going to readable to the next person.

" If the code is really that important to speed, then you should write it in assembly language or something similar; if it's not, then it should be written for clarity, not efficiency."

From http://www.cbloom.com/3d/techdocs/coding.txt

From Moore Law to May's Law

Current state of programming has been criticized, David May (British programmer who holds more then 34 patents, currently a professor of computer science at the University of Bristol), believes that there’s a reliance on Moore’s Law to solve inefficiencies. Has advanced an “alternative theory to Moore’s Law (May’s Law): "Software efficiency halves every 18 months,compensating Moore’s Law"