1.
2.
Schmitt Trigger: Robust Comparator Design with Hysteresis
(news.ycombinator.com)
3.
Pairwise Order of a Sequence of Elements
(news.ycombinator.com)