i’m not really sure what IQ has to do with this. it was originally designed to measure people’s proficiency in school. it was not designed to be a general measure of intelligence. that was something that was co opted by eugenicists.
here’s a quote from Simon Bidet, the original creator of the IQ test, about his thoughts on the eugenicists using his test:
Finally, when Binet did become aware of the “foreign ideas being grafted on his instrument” he condemned those who with ‘brutal pessimism’ and ‘deplorable verdicts’ were promoting the concept of intelligence as a single, unitary construct.
you can read more about this stuff on his wikipedia page. (the quote is from wikipedia)
even to this day, there is quite a bit of doubt as to how accurately IQ measures “general intelligence”
here’s another mathematical approach (that has the added benefit of only working when x and y are both positive).
let f denote the linear functional on ℝ2 defined by f(1,0) = x and f(0,1) = y (and extend by linearity). then the operator norm || f || is equal to max(x,y).
O(n2) means that as the input n grows, it takes exponential time to process.
this is really pedantic, but O(n2) is quadratic, not exponential. the exponential runtimes are things like O(2n). when n gets even modestly big (say n=100), youre looking at a difference of 2100 ≈ 1.26×1030 vs 1002 = 10,000. this is just to say that exponential runtime is really in a class of its own.
but otherwise i think this was a pretty good explanation of the concept
what about haskell