Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-07T00:26:47.587Z Has data issue: false hasContentIssue false

Algorithmic complexity of shape grammar implementation

Published online by Cambridge University Press:  09 May 2018

Thomas Wortmann*
Affiliation:
Singapore University of Technology and Design, Architecture and Sustainable Design, 20 Dover Drive, Singapore 138682, Singapore
Rudi Stouffs
Affiliation:
Department of Architecture, National University of Singapore, 4 Architecture Drive, Singapore 117566, Singapore
*
Author for correspondence: Thomas Wortmann, E-mail: thomas_wortmann@mymail.sutd.edu.sg
Rights & Permissions [Opens in a new window]

Abstract

Computer-based shape grammar implementations aim to support creative design exploration by automating rule-application. This paper reviews existing shape grammar implementations in terms of their algorithmic complexity, extends the definition of shape grammars with sets of transformations for rule application, categorizes (parametric and non-parametric) sets of transformations, and analyses these categories in terms of the resulting algorithmic complexity. Specifically, it describes how different sets of transformations admit different numbers of targets (i.e., potential inputs) for rule application. In the non-parametric case, this number is quadratic or cubic, while in the parametric case, it can be non-polynomial, depending on the size of the target shape. The analysis thus yields lower bounds for the algorithmic complexity of shape grammar implementations that hold independently of the employed algorithm or data structure. Based on these bounds, we propose novel matching algorithms for non-parametric and parametric shape grammar implementation and analyze their complexity. The results provide guidance for future, general-purpose shape grammar implementations for design exploration.

Information

Type
Regular Articles
Copyright
Copyright © Cambridge University Press 2018 
Figure 0

Fig. 1. Examples of quadrilaterals that are isomorphic under different sets of transformations: translated, isometric, similar, matrix (affine and projective), and two arbitrary transformations of shapes with four maximal elements. The fourth shape maintains convexity as an invariant, the fifth shape the topology of links and intersections, and the sixth shape only the number of maximal elements.

Figure 1

Table 1. The columns in this table represent the five sets of transformations

Figure 2

Fig. 2. Derivations based on the same initial shape (a square) and the same shape rule applied under different transformations: translated, isometric, similar, and matrix (from left to right).

Figure 3

Fig. 3. Grids consisting of even numbers of maximal elements. The top row consists of parallel lines, resulting in different numbers of isomorphic quadrilaterals (i.e., squares) under-translated, isometric, and similar transformations. The bottom row consists of skewed grids, which result in a factorial number of isomorphic quadrilaterals under affine and arbitrary (i.e., parametric) transformations. Table 2 tabulates the different numbers of intersections and isomorphic quadrilaterals under different sets of transformations.

Figure 4

Table 2. The numbers of intersections and isomorphic quadrilaterals resulting from a rectangular grid of maximal elements in terms of different sets of transformations as a function of the number of maximal elements

Figure 5

Fig. 4. Diagrams illustrating the derivation of the lower bounds. Panels (a) and (b) illustrate translation and isometry, (a)–(d) similarity, and (e) matrix and arbitrary.