InterviewSolution
| 1. |
What Is Cyclomatic Complexity In A Software Program? |
|
Answer» Cyclomatic complexity is the number of linearly independent paths through a program's SOURCE code. Cyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to the commands of a program, and a directed edge connects two nodes if the SECOND command MIGHT be executed immediately after the first command. CC = E − N + P Where Cyclomatic complexity is the number of linearly independent paths through a program's source code. Cyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to the commands of a program, and a directed edge connects two nodes if the second command might be executed immediately after the first command. CC = E − N + P Where |
|