logoalt Hacker News

cowlevel • today at 2:39 AM • 1 reply • view on HN

Could that just be an inefficient way to test list equality?


Replies

scythe • today at 3:40 AM

Consider that matrix determinants are zero when the rows are linearly dependent. In fact the most efficient way to test if n rows of length n are linearly independent is to invert the matrix using variants of the famous multiplication algorithms. For example, Strassen's famous multiplication optimization also generates an inversion algorithm [1]. So it's not entirely surprising that comparing lists shows up in an evaluation of matrix algorithms.

1: https://ntrs.nasa.gov/citations/19900033776

➕ show 1 reply