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

Daily tweets about computer science and related stuff @JohnDCook.

Joined November 2010
Numerical computing tip: If something goes wrong in theory *at* 0, expect difficulty in practice *near* 0.
4
1,291
Computer Science retweeted
If you remove different representations, you find out that many algorithms are either the same, or almost the same. Shortest path is semiring based computation. More here: sciencedirect.com/science/ar… I realized this when I was writing my book on OR algorighms. There are hundreds of algos I went through. Sometimes, you could find 40-50 algorithms, that are different only in one parameter, or one function in the function composition. --- I am 100% sure, there are abstract algorithms in space search + reduction, that could simplify what already exist and provide dozens of real world useful algos for thousands of various usecases.
23
78
18
914
115,628
'Life as we know it would be very different without the FFT.' -- Charles Van Loan
1
3
26
6,474
The early development of programming languages. Knuth and Pardo, 1976 bitsavers.org/pdf/stanford/c… [pdf]
6
1
46
6,539
'One of my most productive days was throwing away 1000 lines of code.' -- Ken Thompson
3
14
2
71
6,715
The Fast Fourier Transform takes O(n log n) operations to transform a vector of length n.
3
1
27
6,951
Parsing expressions by recursive descent engr.mun.ca/~theo/Misc/exp_p…
1
2
37
8,538
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
1
25
2
139
8,706
'Premature abstraction is as bad as premature optimization.' -- Luciano Ramalho
5
47
8,014
The Church numeral for a non-negative integer n is λxy. x^n y
1
13
6,529
“Having functional programming as an ideal doesn’t imply that programs should never have side-effects. It just means that they should have no more than necessary.” — @paulg, On Lisp
1
1
1
34
6,651
'One person's data is another person's program.' -- Guy L. Steele, Jr.
2
5
36
6,535
'One of the main causes of the fall of the Roman Empire was that-lacking zero-they had no way to indicate successful termination of their C programs.' — Robert Firth
1
15
2
98
8,271