Homework 02 Solution

$30.00

Category: Tag:

Description

  • Graded Problems

    1. Solve Kleinberg and Tardos, Chapter 2, Exercise 3.

    1. Solve Kleinberg and Tardos, Chapter 2, Exercise 4.

    1. Solve Kleinberg and Tardos, Chapter 2, Exercise 5.

    1. Which of the following statements are true?

      1. If f, g, and h are positive increasing functions with f in O(h) and g in (h), then the function f + g must be in (h).

      1. Given a problem with input of size n, a solution with O(n) time complexity always costs less in computing time than a solution with O(n2) time complexity.

p

      1. F (n) = 4n + 3n is both O(n) and (n).

      1. For a search starting at node s in graph G, the DFS Tree is never as the same as the BFS tree.

      1. BFS can be used to nd the shortest path between any two nodes in a non-weighted graph.

    1. Solve Kleinberg and Tardos, Chapter 3, Exercise 2.

1

  • Practice Problems

    1. Reading Assignment: Kleinberg and Tardos, Chapter 2 and 3.

    1. Solve Kleinberg and Tardos, Chapter 2, Exercise 6.

    1. Solve Kleinberg and Tardos, Chapter 3, Exercise 6.

2