Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well that fear is good because multiplication won't change the cardinality, you have to go exponential.


Not an expert but I thought it needed the 'power set' (set of all subsets) but maybe that's kinda the same as exponentiation in the end?


It is. The cardinality of the power set of a set S is 2^|S|.


You can see it as a binary "in or out" for each element of S.


That effectively does make it exponential

x * x === x^2


x^2 is not exponential; it's quadratic. 2^x is an example of an exponential function.

The parent comment was alluding to the idea of set cardinality (https://en.wikipedia.org/wiki/Cardinality). Two sets have the same cardinality if you can establish a bijection (a one-to-one mapping) between elements of one set and elements of the other. The set of all natural numbers is said to have a "countably infinite" cardinality.

It turns out that for any countably infinite set S, the set S x S is also countably infinite (see Hilbert's hotel: https://en.wikipedia.org/wiki/Hilbert%27s_paradox_of_the_Gra...). For example, the set of 2-tuples of natural numbers (1, 1), (1, 2), (1, 3), ..., (2, 1), (2, 2), ... is the same size as the set of natural numbers. So in this sense, "endless*endless = endless". Whereas the set of infinitely-long tuples of natural numbers is "uncountably infinite;" it has a cardinality greater than that of the set of natural numbers. Thus, "you have to go exponential"; i.e. "endless^endless".


by going exponential, they mean 2^x; x^2 can still be the same "size" as x




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: