Computer Science (@CompSciFact) header
Computer Science (@CompSciFact) profile picture

Daily tweets about computer science and related stuff @JohnDCook.

Joined November 2010
Counterintuitive results in operations research or.stackexchange.com/questio…
1
1
27
5,812
Computer Science retweeted
If the Generalized Riemann Hypothesis (the stronger version of the Riemann Hypothesis) is proven, these become proven facts: Algorithms that no longer need randomness - Primality testing: Miller's fast test becomes proven correct with no randomness - Square roots mod a prime: becomes solvable fast and with no coin flips (today that's an open problem) - Cube roots and other roots mod a prime: same. - Factoring polynomials over finite fields: almost fast (quasi-polynomial) with no randomness, instead of needing randomness - Building finite fields: you can construct any finite field directly, with no random search - Factoring vs. φ(n): factoring a number becomes provably as easy as computing φ(n), even without randomness - Primes with a given remainder: a prime with any allowed remainder mod q exists that's at most about q², so searching for one is fast Complexity theory - Polynomial equations: "does this system of equations have a solution?" drops from PSPACE to a much lower class (AM) - Algebraic P vs NP: Valiant's algebraic version of P vs NP gets tied to the normal P vs NP over the complex numbers - Turing machines: a known 744-state Turing machine is proven to run forever Number theory software - Math libraries: PARI/GP and Magma results computed "assuming GRH" become fully proven - Class groups: algorithms that compute these number-field structures get guaranteed running times - Elliptic curve generation: the algorithms used to create curves for crypto get guaranteed running times Cryptography (no new attacks, only proofs) - Elliptic curves: proven that if discrete log is hard on one curve, it's hard on almost all similar curves - Lattice crypto: known quantum attacks on some lattice schemes become proven to work - Isogeny crypto: known quantum attacks on some isogeny schemes get proven speeds - Code-based crypto: schemes like BIKE get the guarantee that the special primes they need exist Prime gaps - Next prime: there's always one within about √p·log p of p, so "find the next prime" has a guaranteed worst case What it does NOT do - It doesn't solve P vs NP - It doesn't make factoring easy, so RSA and elliptic-curve crypto stay safe - It doesn't make anything faster in practice, because randomized versions already work today - Ramanujan graphs, expanders and AG codes are unaffected: they use a finite-field version of RH that was proven decades ago
79
601
60
4,730
488,337
“I am worried that algorithms are getting too prominent in the world.' -- Donald Knuth
2
8
2
63
6,162
'There may, indeed, be other applications of the system [i.e. lambda calculus] than its use as a logic.' -- Alonzo Church, 1932
8
40
6,263
No Silver Bullet: Essence and Accident in Software Engineering worrydream.com/refs/Brooks-N… [pdf]
1
2
23
6,175
Why is division so much more complex than other arithmetic operations? scicomp.stackexchange.com/qu…
2
6
1
69
8,264
Until recently there was more interest in formally verifying software than formally verifying math. Now the tables have turned. Why is that? AI has made it easier to formally verify math, but hasn't it done the same for software?
4
5
44
6,752
Before someone brings it up, yes I know about the Curry-Howard isomorphism and the idea that proofs and programs are ultimately the same thing. But in practice the kinds of proofs and programs that people care about are substantially different.
1
2
1,213
Why does quicksort work so well in practice? cs.stackexchange.com/questio…
1
40
7,923
The term 'trie' came from 'retrieval.' Was intended to be pronounced like 'tree' but now is pronounced like 'try.'
1
2
26
6,684
'About 1,000 instructions is a reasonable upper limit for the complexity of problems now envisioned.' -- John von Neumann, 1946
7
31
5,935
New post: Taxis and Hash Functions johndcook.com/blog/2026/11/1…
🤖 Made with AI
1
1
13
3,562
Secure hashing algorithms that have been broken are only broken with respect to collision attacks. It's still infeasible to infer the original input, or any input, to a hash like MD5 from the output. (Unless the input coes from a small enough set to attack by brute force.)
1
17
7,184
Computer Science retweeted
We can all relax now that the PHP security holes, the certificate authority spewing bad certificates, the Microsoft mail outage, and the FAA network failure have been fixed. Now we won’t have any more problems and things will go back to normal.
9
11
4
122
7,236