Note
This page is not closely related to the other pages in the linear algebra category. However, the author believes that explaining the essence of linear algebra and tracing the origins and connections of its concepts is necessary to give readers an initial but systematic understanding.
Linear algebra was already used to solve problems involving systems of linear equations thousands of years ago, and it remains widely applicable today.
Linear algebra arose from people's observations. People noticed that many objects have similar properties, such as:
-
Forces can be decomposed and combined.
-
For arbitrary , can be decomposed into .
These properties are related to the scaling, decomposition, and superposition of the objects being described. Linear algebra abstracts these properties from concrete objects and studies them as an independent subject. In OI, linear algebra can be used directly to solve problems, and it can also be used to optimize algorithms, data structures, and so on. For example:
-
Maintain a linear basis with heavy-light decomposition to find the maximum xor sum on a path.
-
Use the matrix-tree theorem to transform the problem of counting spanning trees of a graph into finding a matrix determinant.
-
Use matrix exponentiation to optimize recurrences.