Explain different means of improving efficiency of algorithm.
Answers
Answered by
0
Suppose the population of the world is 6 billion, and that there is an average of 1000 communicating devices per person. how many bits are required to assign a unique host address to each communicating device? suppose that each device attaches to a single network and that each network on average has 10000 devices. how many bits are required to provide unique network ids to each network?
Answered by
6
- Efficiency can be measured in terms of:
- Time efficiency
- Space efficiency
- Complexity Theory
- Function dominance
- Asymptotic dominance
- By improving these factors we can in general improve the efficiency of an algorithm.
Different means to improve the efficiency of a sorting algorithm are:
- For run - time improvement-
- Comparison improvements: Considering the array the correct type of sort should be used.
- Swap improvements: Considering the array the correct type of awap algorithm should be used.
- For space complexity improvement-
- The less memory an algorithm occupies the more space efficiency increases.
Similar questions