Another look at the “longest ascending subsequence” problem
暂无分享,去创建一个
SummaryDijkstra has given a derivation of an efficient algorithm for a problem concerning monotonic subsequences, and extracted a proof of a related theorem from the algorithm. Here it is shown that a careful separation of concerns can lead to a beautiful conventional proof, a very different derivation of Dijkstra's algorithm, a more elegant proof from the algorithm, and the discovery of a duality property.
[1] Edsger W. Dijkstra,et al. Some beautiful arguments using mathematical induction , 2004, Acta Informatica.
[2] Michael L. Fredman,et al. On computing the length of longest increasing subsequences , 1975, Discret. Math..
[3] Edsger W. Dijkstra,et al. A Discipline of Programming , 1976 .
[4] A. Seidenberg,et al. A Simple Proof of a Theorem of Erdös and Szekeres , 1959 .