n^2 algorithms on _massive_ inputs seems a little far fetched, no?
Around one to one hundred billion things start getting difficult.
Around one to one hundred billion things start getting difficult.
In practice, n^2 sees surprising slowdowns way before that, in the 10k-100k range you could be spending minutes of processing time (10ms for an element would only need ~77 elements to take 1 minute).