A Linear-Time, One-Pass Majority Vote Algorithm
This algorithm, which Bob Boyer and I invented in 1980, decides which element of a sequence is in the majority, provided there is such an element.
(tags: algorithms one-pass o(1) coding majority top-k sorting)
tinystat – GoDoc
tinystat is used to compare two or more sets of measurements (e.g., runs of a multiple runs of benchmarks of two possible implementations) and determine if they are statistically different, using Student’s t-test. It’s inspired largely by FreeBSD’s ministat (written by Poul-Henning Kamp).
(tags: t-test student statistics go coda-hale tinystat stats tools command-line unix)
Internet Trolls Are Narcissists, Psychopaths, and Sadists | Psychology Today
The relationship between this Dark Tetrad [of narcissism, Machiavellianism, psychopathy, and sadism] and trolling is so significant, that the authors write the following in their paper: “… the associations between sadism and GAIT (Global Assessment of Internet Trolling) scores were so strong that it might be said that online trolls are prototypical everyday sadists.” [emphasis added] Trolls truly enjoy making you feel bad. To quote the authors once more (because this is a truly quotable article): “Both trolls and sadists feel sadistic glee at the distress of others. Sadists just want to have fun … and the Internet is their playground!” Bloody hell.
(tags: trolls sadism narcissism psychopaths online trolling psychology papers)