Structural Complexity and Complete Paths

A shipping routine uses three Boolean inputs: priority shipment, fragile contents, and international destination. Every combination of these inputs is permitted, and no action changes any input. The flowchart shows the complete routine; assume there are no exceptions or hidden exits.


A shipping routine contains three sequential binary decisions, each followed by two alternative actions that rejoin.


The cyclomatic complexity of this single connected control-flow graph is the structural measure


V=E−N+2,V=E-N+2,


where EE is the number of directed edges and NN is the number of nodes. Count the Entry and Exit nodes too.


Find the cyclomatic complexity and the number of feasible complete entry-to-exit paths. Enter both as exact integers. Treat two paths as different when they take different decision outcomes. All three decisions are reached on every execution.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More White-Box (Glass-Box) Testing Questions: