604 karma · joined May 2, 2021 (5y ago) · 230 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
This statement is kind of trivial. The same is true for any language (other than the empty language and the language containing all strings). The reduction is (1) hardcode the values of one string, y, that is in the language and another string, z, that is not in the language (2) solve the problem on the given input x in polynomial time poly(x) (3) return y if x is to be accepted and z otherwise.
The total running time is at most poly(x)+O(|y|+|z|) which is still poly(x) since |y| and |z| are hardcoded constant values.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
The micronutrients that vegans need to watch out for are EPA/DHA (types of omega 3s) and Vitamin B12. Both are trivial to supplement, and not particulary expensive (especially now that Costco sells the former). The B12 you get via factory farmed meat is all supplemented to them anyway, so there's no difference in some hypothetical molecule quality.
The last remaining micronutrient that might be tricky is Vitamin D3, if you don't get the necessary sun exposure. The D3 in standard supplements is usually made from sheep wool. But you can also replace that with relative ease, and many vegan options are really mixed D3+K2 supplements which is even better. Also available at Costco, for what it's worth.
comment 2y ago · link · parent
> The backdoor’s careful design could be the work of US hackers, Raiu notes, but he suggests that’s unlikely, since the US wouldn’t typically sabotage open source projects—and if it did, the National Security Agency would probably use a quantum-resistant cryptographic function, which ED448 is not.
I'm not personally knowledgeable enough to assess this claim.
comment 2y ago · link · parent
comment 3y ago · link · parent
Q: Prove that if cos(x) is an integer then so is sin(x).
A: The statement "if cos(x) is an integer, then so is sin(x)" is not true in general. To understand why, let’s consider the properties of sine and cosine. [...]
It had trouble when the problem domain is different from the usual one the same keywords typically fall into.
comment 3y ago · link · parent
One can support innocent Palestinians without supporting Palestine, the same way one can support innocent Israelis without supporting Israel. Not sure why they decided to sneak in some dehumanization into what masquerades as a positive sentiment.
comment 3y ago · link · parent
comment 3y ago · link · parent
The reason the DA couldn't go with burglary is because that would require the object taken to have positive value, and those companies don't want to claim they also sell slaughtered animals who were diseased to the verge of death. If they discard their bodies as they corpses they do, they are of no value to the farmers and thus could not have been the subject of a burglary.
comment 3y ago · link · parent
The exponential bit applies to the probability densities as a function of the bounds themselves, i.e. how likely you are to fall x units away from the mean typically decreases exponentially with (some polynomial in) x.
Of course, this is all assuming a whole bunch of standard conditions on the data you're looking at (independence, identically distributed, bounded variance, etc.) and may not hold if these are violated.
comment 3y ago · link · parent
In the context of two users putting inputs into a C program that doesn't sanitize user input.
comment 3y ago · link · parent
That's not true. Any Turing machine can be compiled into a Python program with at most cubic slowdown. More precisely, the number of Python bytecode operations executed will be at most quadratic in the running time p(n) of the TM, with all operation acting on a bounded number of objects of size O(log p(n)) (which for polynomial p() is just O(log n)).
One can check Chapter 1 of Arora & Barak's Computational Complexity book for a description of the C/Java analogue of this claim, but it follows from a straightforward simulation argument: literally just hardcode the TM states and transition model, then execute it. The only bit to be careful about is addressing and address sizes growing unbounded, but the max size is only logarithmic in running time (simple proof, I believe this is an exercise in Sipser's book), and that's why we give ourself a cubic buffer.