Question

In: Computer Science

Modularity. What does the term “modularity” mean and what does good modularity in an algorithm do...

Modularity. What does the term “modularity” mean and what does good modularity in an algorithm do for us? Define (in your own words) modularity and then give three examples of how it can be used as a powerful tool for our algorithms and ultimately our programs.

Solutions

Expert Solution

Modularity means dividing the functionality of an algorithm into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Advantages

  • Smaller components are easier to maintain
  • Program can be divided based on functional aspects
  • Desired level of abstraction can be brought in the program
  • Components with high cohesion can be re-used again
  • Concurrent execution can be made possible
  • Desired from security aspect

Example

The spell check feature in word processor is a module of software, which runs along side the word processor itself.

Software design life cycle models are designed into several phases or modules.

Object oriented programming languages have classes and objects which is also a good example of modularity


Related Solutions

D1. What does an economist mean by the term “public good”? What are the characteristics of...
D1. What does an economist mean by the term “public good”? What are the characteristics of a public good? Give two examples of health-related goods or services that might be characterized as “public goods” Public goods and services are not cost-free. How do you think people should be made to pay for them? D2. One purpose of the government is to redistribute money from those who are well off to those who are needy. As far as health care is...
What does it mean to have a good life? What does it mean to be a...
What does it mean to have a good life? What does it mean to be a good person?
What does the term perimenopause mean?
What does the term perimenopause mean?
What does the term “Direct Rate” mean? What does the term “Burden Rate” mean? Can you...
What does the term “Direct Rate” mean? What does the term “Burden Rate” mean? Can you give an example? (Project Management)
What does the term performance mean? Expected performance? b. What does the term risk mean? c....
What does the term performance mean? Expected performance? b. What does the term risk mean? c. Can the risk be completely eliminated? Why? d. In the financial securities market, how can the level of risk be minimized? and. What does variability mean within corporate finance? F. What does the concept of diversification mean within corporate finance? What is its application within a global stock market?
What does the term Full Employment mean? Why do economists calculate it? How does it differ...
What does the term Full Employment mean? Why do economists calculate it? How does it differ from the Natural Rate of Unemployment?
What does the term private transportation mean?
What does the term private transportation mean?
What does the term " risk factor" mean?
What does the term " risk factor" mean?
What does the term statistically significant mean?
What does the term statistically significant mean?
what does the term "culturally astute" mean ?
what does the term "culturally astute" mean ?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT