How is linear algebra used in algorithms?

后端 未结 9 900
生来不讨喜
生来不讨喜 2021-01-31 11:05

Several of my peers have mentioned that \"linear algebra\" is very important when studying algorithms. I\'ve studied a variety of algorithms and taken a few linear algebra cour

相关标签:
9条回答
  • 2021-01-31 11:24

    Many signal processing algorithms are based on matrix operations, e.g. Fourier transform, Laplace transform, ...

    Optimization problems can often be reduced to solving linear equation systems.

    0 讨论(0)
  • 2021-01-31 11:26

    Three concrete examples:

    • Linear algebra is the fundament of modern 3d graphics. This is essentially the same thing that you've learned in school. The data is kept in a 3d space that is projected in a 2d surface, which is what you see on your screen.
    • Most search engines are based on linear algebra. The idea is to represent each document as a vector in a hyper space and see how the vector relates to each other in this space. This is used by the lucene project, amongst others. See VSM.
    • Some modern compression algorithms such as the one used by the ogg vorbis format is based on linear algebra, or more specifically a method called Vector Quantization.

    Basically it comes down to the fact that linear algebra is a very powerful method when dealing with multiple variables, and there's enormous benefits for using this as a theoretical foundation when designing algorithms. In many cases this foundation isn't as appearent as you might think, but that doesn't mean that it isn't there. It's quite possible that you've already implemented algorithms which would have been incredibly hard to derive without linalg.

    0 讨论(0)
  • 2021-01-31 11:30

    It depends what type of "algorithms".

    Some examples:

    • Machine-Learning/Statistics algorithms: Linear Regressions (least-squares, ridge, lasso).
    • Lossy compression of signals and other processing (face recognition, etc). See Eigenfaces
    0 讨论(0)
提交回复
热议问题