algorithms and design set 14 3976259