概述卷积码的纠错能力
A composite pattern deals with the complexity of how objects are related to one another. According to the original definition,
复合模式处理对象之间如何相互关联的复杂性。 根据最初的定义,
[a composite pattern] allows you to compose objects into tree structures to represent part-whole hierarchies
[复合模式]允许您将对象组合成树形结构,以表示整体层次结构
But what does this mean? Let’s take a look at our cart object again. If we break it down, the entire cart can be composed of many ‘sub-items’ that can also exist as stand-alone items. The cart process involves multiple parts that may or may not be needed, depending on context and situational requirements.
但是,这是什么意思? 让我们再次看一下购物车对象。 如果我们将其分解,则整个购物车可以由许多“子项目”组成,这些子项目也可以作为独立项目存在。 购物车过程涉及可能需要或可能不需要的多个部分,具体取决于上下文和情况要求。
In a composite pattern, an object can have a leaf and/or a composite. A leaf is the object’s implementations while a composite is the child object.
在合成图案中,对象可以具有叶子和/或合成物。 叶子是对象的实现,而复合对象是子对象。
So if you look at it in the form of a tree diagram, a composite pattern looks something like this:
因此,如果以树形图的形式查看它,则复合模式如下所示:
![Image for post](https://miro.medium.com/max/9999/1*utRNgcl24VZnsL2Rbhft1Q.png)
The composi