Composite Pattern Lecture Notes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts from the Composite Pattern lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Composite Pattern

A design pattern that allows treating individual objects and compositions of objects uniformly.

2
New cards

ComponentNode

The abstract base class for composable expression tree node objects.

3
New cards

LeafNode

A node that does not have any children in the expression tree.

4
New cards

UnaryNode

A node that has exactly one child in the expression tree.

5
New cards

BinaryNode

A node that has exactly two children in the expression tree.

6
New cards

Visitor pattern

A design pattern that allows adding new operations to a class hierarchy without modifying the classes.

7
New cards

Recursion in Tree Structures

The structural property where a composite structure is defined in terms of itself.

8
New cards

Intent of Composite Pattern

To treat individual objects and recursively-composed objects uniformly.

9
New cards

Extensibility

The ability to add new components to the structure without altering existing formats.

10
New cards

Uniformity

The principle of handling components the same way regardless of their complexity.

11
New cards

Overhead in Composite Pattern

The potential performance cost incurred by increased numbers of composed objects.

12
New cards

Expression Tree

A tree structure used to represent expressions where each node corresponds to an operation or operand.

13
New cards

Hierarchy of Nodes

An organized structure that captures the relationships and properties of different node types.

14
New cards

Applicability of Composite Pattern

Use when objects must be composed recursively with no distinction between individual and composite elements.