top of page
CPMSE Worked Examples
Let's look an example...
In the matrix below black squares are filled and white are empty. How many clusters can you identify?

Looking at the following matrix, we can identify 2 distinct clusters. Here one cluster is labeled 1 and theother is labeled 2.

What should we do then?
Find a way to identify the different clusters and count them to return it.
NOTE: This problem has different ways to be approached. The video above shows one possible solution, however, it is not the one implemented in this example. The explanation for another approach is presented in Adressing the Problem.
bottom of page