AlgorithmDesignFoundations,Analysis,andInternetExamples