#Fan-in: refers to the number of superior modules that directly call this module. A large fan-in indicates a high reusability of the module. (Recommended learning: phpstorm)
Fan-out: refers to the number of subordinate modules directly called by this module. A large fan-out indicates that the module is highly complex and requires control and coordination of too many lower-level modules; but too small a fan-out is not good either.
Excessive fan-out is generally due to the lack of intermediate levels, and intermediate-level modules should be appropriately added. If the fan-out is too small, the lower-level module can be further decomposed into several sub-functional modules, or merged into its upper-level module.
The fan-out capability refers to the maximum number of gates of the same type connected to the output end of the NAND gate. It reflects the load capability of the NAND gate.
Extended information:
The number of times a module calls other modules is called the fan-out of the module. The larger the fanout, the more issues need to be considered when designing the module and therefore the complexity.
The number of times a module is called by other modules is called the fan-in of the module. A larger fan-in generally does not affect the complexity of the problem, and the larger the fan-in, the better the reusability of the module.
Generally, it is due to the lack of intermediate levels, and intermediate-level modules should be added appropriately. If the fan-out is too small, the lower-level module can be further decomposed into several sub-functional modules, or merged into its upper-level module.
For a well-designed software structure, usually the top-level fan-out is relatively large, the middle fan-out is small, and the bottom-level modules have large fan-in. Fan-in: The input of a gate is defined as the number of inputs to the gate.
In software design, the concepts of fan-in and fan-out refer to the hierarchical calling situation between application modules. According to the structured design method, an application is composed of multiple modules with relatively independent functions.
The above is the detailed content of How to calculate the secondary fan-in and fan-out of a computer. For more information, please follow other related articles on the PHP Chinese website!