logoalt Hacker News

pastel8739 • today at 3:24 AM • 1 reply • view on HN

I think it’s actually obvious that this argument isn’t sound, think about multiplying a 1x5 matrix by a 5x1 matrix—this can clearly be done in linear time.


Replies

fn-mote • today at 3:35 AM

Pedantry: In order for O(n) or Theta(n) to be relevant, your problem statement needs to have an “n” in it.

So: Multiplying a (1,n) matrix by an (n,1) matrix is linear in n.