Reflexive closure is to change all the elements on the main diagonal of the matrix into 1, and symmetric closure is to change the elements on the non-main diagonal of the matrix into 1 after transposition (that is, the position is symmetrical with the main diagonal), and the 0 element is ignored, that is, it depends on the situation of the matrix.
The ideas and methods taught in discrete mathematics are widely reflected in various fields of computer science and technology and related majors, from scientific calculation to information processing, from theoretical computer science to computer application technology, from computer software to computer hardware, from artificial intelligence to cognitive system, which are closely related to discrete mathematics.
brief introduction
Closures contain free (not bound to a specific object) variables, which are not defined in this code block or any global context, but are defined in the environment where the code block is defined (local variables). The word "closure" comes from the combination of the code block to be executed (because the code block contains free variables, these free variables and its referenced objects are not released) and the computing environment (scope) that provides binding for free variables.