tags:


6. Convolution #

Created Tue Jul 30, 2024 at 12:30 AM

What is a convolution #

Convolutions often arise when you are trying all possible ways of doing things that add up to k, for a large range of values of k, or when sliding a mask or pattern A over a sequence B and calculating at each position.

Speedup #

It turns out one can do convolution in nlogn instead of n2 time. Kind of like sorting (squared to linearthmic)

Applications of convolution #

Fast convolution solves many important problems in O(n log n). The first step is to recognize your problem is a convolution.