
Mastering Microsoft Dynamics NAV 2016
By :

It is very important to understand the time and memory/space complexity of the code you write. Most programmers lack the knowledge to do that. It is essential that you figure out the methods to analyze the time and space complexity of the code you write; also, while tuning up the system, you should be able to figure out the so-called non-efficient code and replace it with code that can perform better in the same given parameters.
An algorithm is a step-by-step procedure to solve a problem in a finite amount of time. Some familiar problems solved with algorithms include sorting an array of numbers, finding a specific string in a list, computing the shortest path between two locations, and finding prime factors of a given integer.
In this section of the chapter, we are going to examine the following questions:
How can we determine whether an algorithm is efficient?
What is the correctness of code?
Given two algorithms that achieve the same goal, how can we do the following:
Decide...