Complexity
We defined complexity in Chapter 3 as the property of having many interrelated, interconnected, or interwoven elements and interfaces. Most of the systems that we deal with professionally are complex, hence the growth of system architecture in practice. Complexity is driven into systems by asking more of them: more function, more performance, more robustness, more flexibility. It is also driven into systems by asking them to work together and interconnect—monitoring power demand at a manufacturing site relative to the grid’s capacity, * connecting customer order systems directly to manufacturing sequencing, instant communications among co-workers, and the like.
Underlying this definition of complexity is the idea that complexity scales with the number of entities in the system (a team of 30 people is more complex than a team of 10 people), as well as with their relative connectivity (10 people working together on one task is more complex than 10 people performing identical parallel tasks).
There are many potential definitions of complexity, but none of them has become operationally useful in a broad range of contexts. We present several of these subsequently for comparison, but it is our view that the simplest possible definition is perhaps the most conceptually useful, as shown in Box 13.1.
Box 13.1 Definition: Complexity
Let’s look at several simple measures of complexity.
-
Number of things: N1
-
Number of types of things: N2
-
Number of interfaces: N3
-
Number of types of interfaces: N4
The most often quoted measure of complexity is the number of things (N1). For example, Microsoft has one million servers in its data centers. [ 1 ] Boeing has used the number of parts in a 747 (6 million, a large minority of which are rivets) in marketing and supplier literature to emphasize the complexity of the aircraft. [ 2 ]
Although “parts number counting,” or counting the number of types of things (N2), seems like a relatively limited view of complexity, organizations stock parts by part number, sequence manufacturing by line-side part numbers, and create product designs by part number. For example, Home Depot stores 40,000 SKUs (stock keeping units) per store. [ 3 ]
Analogously, N3 and N4 capture the number of interfaces and the number of types of interfaces. The electrical system of a building is more complex if it has more electrical outlets—interfaces (N3). The complexity would rise again if there were various types of outlets (N4): some U.S. standard, some UK standard, some European, some Australian, and so on. In this case we would need multiple types at each location, or we could use appliances only at certain locations in the building where the proper outlet was located.
The simplest measure of complexity that captures all of these is C = N 1 + N 2 + N 3 + N 4. The variations on this theme are abundant. For example, Boothroyd and Dewhurst [ 4 ] suggest that formal complexity can be calculated according to
C = ( N 1 × N 2 × N 3 ) .
Our simple measure of complexity has the advantage that it formulates complexity as an absolute and quantifiable system property (once “measure” and “atomic level” are defined). This allows us to compare architectures: If one architecture has more things, more types of things, more connections, and more types of connections than the other, it is objectively more complex.
Many organizations use the word “complexity” but, when asked to define it, produce long, all-encompassing, qualitative, non-operational definitions. For example, the authors worked with a vehicle manufacturer that defined part sharing as a driver of complexity (essentially the number and types of entities ). Part sharing was defined with respect to a product hierarchy with 13 levels, itself a nontrivial decomposition, shown in Figure 13.1 . The firm then attempted to define the number of entities shared at each level of the hierarchy (part numbers shared across groups, across arrangements, across models, and so on). The net result of this analysis was not an incorrect definition of complexity, but it was so cumbersome (in part because the product decomposition was not universally agreed upon) that the measure went unused. In essence, the measure of complexity was too complex to be operational.
Figure 13.1 Product hierarchy created by a vehicle manufacturer to define a measure of complexity in terms of part sharing across products.
Figure 13.1 Full Alternative Text
Complexity is an absolute and quantifiable system property, once a definition is agreed upon. Regardless of whether our simple definition or another definition is chosen, we believe that it is valuable to regard complexity as a measurable quantity. Complexity should not be viewed as an outcome of the design process, but rather as a quantity to be managed. Our experience suggests that when complexity is viewed as an intractable topic, it is more likely to be ignored, at the cost of increased complexity!
In addition to having a measure of complexity, in this chapter we discuss several ideas related to complexity: apparent complexity (also known as complicatedness), and essential versus gratuitous complexity .
Complex versus Complicated
We have asserted that one of the roles of the architect is to manage the evolution of complexity in the system. This is not to say that complexity is a negative property of the system. Complex systems today, such as regional transportation infrastructures and networked communication systems, deliver significantly more value than their simple counterparts, such as bicycles and letter mail. Complexity is an investment that the architect makes, where the payout is the performance of the system. This payout must be weighed against the challenges that complexity brings. Growing complexity is a fact of life.
The problem is that more complex systems are more difficult for humans to understand. In Chapter 3 , we introduced the idea of complicated as a measure of our ability to perceive and comprehend complexity. Complicated things have high apparent complexity (or complicatedness) ; our human processer is more easily confused, or is less able to make sense of things ( Box 13.2 Principle of Apparent Complexity). For example, we might argue that the structure on the left in Figure 13.2 is less complicated than the structure on the right. We can confidently assert that the pyramids were structurally less complicated, but we leave comparing the emergent system aesthetics of the two to the reader’s judgment and taste.
Figure 13.2 Complicatedness in civil architecture. The pyramid is less complicated than the Taj Mahal, even though they perform the same function—entombing royalty. Clearly, in civil architecture there are aesthetic reasons for “complicatedness.” (Source: (a) Mrahmo/Fotolia (b) Omdim/Fotolia)
It is important to separate complexity from complicatedness in architecture. Complicated architectures seem intractable or unmanageable. This is why our definition of complicatedness takes into consideration the ability of the human to perceive and understand complexity. Consider Figure 13.3 and Figure 13.4 . The same function is delivered in both cases, and the inputs and outputs at an electrical layer are identical, but one architecture is less complicated and more amenable to analysis and modification.
Figure 13.3 More complicated network. (Source: AP Photo/Bela Szandelszky)
Figure 13.4 Less complicated network. (Source: Andrew Twort/Alamy)
Complicated things have high apparent complexity . What causes apparent complexity? At first glance, complicatedness should scale with complexity; that is, more entities, more connections, and more types of entities and connections should all lead to more complicatedness. Most people would describe the organization of the cables in Figure 13.3 as the key attribute, and the system of Figure 13.4 is less complicated because it is organized. The two figures represent the same physical entities, but even if we scaled up the organized network and scaled down the disorganized network, we might well imagine that the now-larger, more capable organized network would still be less complicated than its disorganized smaller brother. In summary, complexity and complicatedness do not necessarily grow at the same rate in a system, an observation that allows us to hope we can increase complexity while limiting complicatedness.
Box 13.2 Principle of Apparent Complexity
“Less is more.”
Ludwig Miles van der Rohe, New York Herald Tribune , June 28, 1959
“More is different.”
Phillip Anderson, Science , 1972
The complexity of modern systems exceeds the human ability to comprehend. Create decomposition, abstraction, and hierarchy to keep the apparent complexity within the range of human understanding.
-
Apparent complexity is akin to how “complicated” the system is; complicated systems are hard for humans to understand.
-
Complexity has the potential to scale combinatorially with the number of features of robust functionality and/or the number of objects. One cannot scale up the processes and techniques used in simple systems to address complicated systems because of human cognitive limitations.
The word “organized” is a very fuzzy term; for example, telling a junior network engineer to organize the backroom network does not lend itself to a step-by-step process. To unpack this backroom network, we’ll begin by using the tools of Chapter 3 , starting with decomposition and abstraction. The network can be decomposed into entities such as cables, routers, and racks. It is easier to see this decomposition in the “organized” figure ( Figure 13.4 ), because the bundling of network cables tells the viewer that they belong to a similar group. Individual cables in the bundle can be treated with the same analysis: A cable can be treated as an instance of a class of entities that share similar functionality. If we introduce the abstraction of a “bus,” represented by a bundle of cables tied together, the network appearance becomes simpler still, because we imagine that the same type of information is flowing along the bus, compared with the necessity of treating each cable separately in the complicated figure.
Is Figure 13.4 at maximum organization? It is hard to say without detailed knowledge of the function of the network. Could we develop a less complicated representation? Absolutely, depending on what information it is important to convey. We could draw a network diagram, but rather than showing point-to-point connectivity for cables, we could draw a layered diagram, with one of the layers being the physical connectivity layer. This representation might provide more information about the functional interaction among components or the higher-level uses of the network, but it abstracts out the detailed mapping of cables. In a sense, it “presumes” that the cables will be routed correctly, which releases the viewer from the burden of figuring it out. Whether this is a good or a bad attribute depends entirely on the use of the diagram or picture.
Consider low-level programming languages such as machine-level languages and assembly. They are hard to work with, even for experienced programmers. To reduce their difficulty, high-level languages like JAVA and MATLAB were developed. Systems become substantially more complex with the introduction of complex new technology such as compilers, interpreters, middleware, and graphical interfaces. These systems are more intuitive and less complicated to use. They present a system image that is vastly less complicated. Imagine inverting a matrix using assembly code; MATLAB does it in one instruction. For some users this investment in complexity is merited, but for others it is unmerited in light of performance compromises or scalability challenges.
Essential Complexity
Complexity is an absolute property of the system as we have defined it. Furthermore, the architect must invest in complexity in order to deliver more performance and functionality. This seems to beg the question: Is there a minimum complexity required to deliver a certain function and performance? Yes. We call this the essential complexity ( Box 13.3 ).
For example, consider a powered liftgate, available on many hatchbacks and SUVs. At first it might seem that the minimum-complexity system would be a motorized liftgate with (1) a switch that interrupts power to the raising motor and (2) logic to reverse the direction of the motor. However, this simple switch would not capture the functionality of the system in Figure 13.5 —namely, the function that prevents a user from opening the liftgate when the vehicle is moving.
Figure 13.5 Powered liftgate logic diagram.
Figure 13.5 Full Alternative Text
Figure 13.5 illustrates the conditions that might be checked after the switch is depressed, before the liftgate is lifted or lowered. The circles illustrate processes, and the lines represent the objects of the system, the signals. The performance of the liftgate system in this SUV is partially measured by the physical liftgate (speed, smoothness of operation, and so on), but it is also partially measured by the safety of the system (for example, breadth of checks) conducted and accuracy of the checks. Although this representation appears complicated, it is hard to argue, upon closer inspection, that this diagram contains any gratuitous functions or forms. Does it represent only the essential complexity of the system, [ 5 ] as discussed in Box 13.3 Principle of Essential Complexity? Does it appear that this system has inherited previous architectures from legacy systems, and thus bears gratuitous complexity from history?
Box 13.3 Principle of Essential Complexity
“Complexity is inherently neither good nor bad.”
Joel Moses
“Make everything as simple as possible. But not simpler.”
Albert Einstein
“All things being equal, choose the simpler solution.”
Occam’s Razor
“It is the last lesson of modern science, that the highest simplicity of structure is produced, not by few elements, but the highest complexity.”
Ralph Waldo Emerson
Functionality drives essential complexity. Describe the required functionality carefully, and then choose a concept that produces low complexity.
-
Essential complexity is the minimum complexity that must be incorporated in the system to deliver the robust functionality within a concept.
-
Gratuitous complexity is complexity added over and above the essential complexity for any given robust functionality within any concept. Gratuitous complexity should be avoided.
-
“Follow the road of simplicity to the point where it crosses the road of full functionality, [and] you will then be at the intersection that is elegance.” Daniel Kern, MIT 2001
A system’s level of essential or gratuitous complexity is independent of its apparent complexity. The Concorde ’s flight deck, shown in Figure 13.6 , is visually overwhelming and requires extensive training to operate. This architecture has high apparent complexity—the complexity of the system is apparent. However, given the success of the Concorde , it could be argued that the complexity was essential to the delivery of performance with the technology of the era.
Figure 13.6 Cockpit of the Concorde . Is the complexity essential for delivering the Concorde ’s functionality?.
(Source: Holmes Garden Photos/Alamy)
By contrast, the Smartphone shown in Figure 13.7 has very low apparent complexity, a hallmark of good user interface design for consumer products. It requires little or no training to operate. There is substantial complexity underlying this interface, but that complexity is hidden away. Without further detailed analysis, it is difficult to assess whether the internal systems are at a level of essential complexity or have gone beyond that to include gratuitous complexity. However, no one would argue that the Concorde ’s user interface should be condensed into a hierarchic menu, four buttons, and a scrolling function.
Figure 13. 7 Smartphone with touchscreen, showing the low apparent complexity of the user interface masking the internal complexity of the underlying hardware.
(Source: Yomka/Shutterstock)
We’ve argued loosely that decomposition and abstraction can be used to reduce the apparent complexity of a system, but we’ve also argued that apparent complexity and actual complexity are on independent axes. In fact, apparent complexity and actual complexity can be related. Consider the system shown in Figure 13.8 . On the left we have five entities and six connections. If we break the system into two groups of three and two entities, respectively, we can reduce the apparent complexity of the system, as shown on the right-hand side, where we illustrate each group as an entity, and their connectivity with one connection.
Figure 13.8 Decomposition can increase the complexity of the system by creating additional interfaces. The investment in complexity must be weighed against the benefits of decomposition and potential modularity.
Figure 13.8 Full Alternative Text
However, if we take a look at the middle of Figure 13.8 , we can see that something fundamental has occurred. Our decomposition introduces an interface between the two groups: The system now has six entities and nine connections!
In our effort to reduce the apparent complexity of the system, we have increased the complexity of the system above the essential complexity in the original representation. This result has far-reaching implications. It implies that apparent complexity can be reduced, but sometimes at the cost of increasing actual complexity. The architect must decide whether to invest in actual complexity (in order to bring down the apparent complexity), or not to invest, as discussed in Box 13.4 Principle of the 2nd Law.
The history of interface design includes many examples where attempts to reduce the apparent complexity by simplifying interfaces failed. Witness the first generation of BMW’s iDrive. The design intent was to reduce the apparent complexity of switches on the dashboard, consolidating the controls under a single button that could be twisted, angled, and depressed. The system was designed to operate on a menu screen. Users found that the menu was much deeper than desired, [ 6 ] forcing them to descend five levels to reach the heater controls! The press quipped, “iDrive? No, you drive, while I fiddle with this controller.” [ 7 ] The decrease in apparent complexity of the switches caused an unacceptably complicated menu interface—a net increase in apparent complexity.
Box 13.4 Principle of the 2nd Law
“There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies.”
C.A.R. Hoare
“Software is like entropy. It is difficult to grasp, weighs nothing, and obeys the second law of thermodynamics; i.e., it always increases.”
Norman Augustine
The actual complexity of the system always exceeds the essential complexity. Try to keep the actual complexity close to the essential complexity, and the apparent complexity within the range of human understanding.
-
The actual complexity is the real measured complexity of the system. It exceeds the essential complexity because of the extra complexity needed to create abstraction, decomposition, and hierarchy.
-
Actual complexity can also increase because of the creep of gratuitous complexity.