Docsity

Homework 4 - Understanding and Constructing Proofs | CS 1050, Assignments of Computer Science

Toggle sidebar
bg1
CS 1050 Homework
Individual Work โ€“ Due Friday April 16, 2004
1. A two-connected graph is any graph such that between any two vertices, x and y,
there are two distinct paths. Which of the following graphs is two-connected?
2. Draw the DFS label for the following graph.
3. Give ALL spanning trees for this graph.
1
2 6
4. Can this (A) be a DFS label for the following graph (B)?
1
5. Show that f1 = O(g1)
f2 = O(g2)
๏ƒž f1 + f2 = O(g1 + g2)
6. Prove that 10n2 = O(2n).
7. Define f = n2 + O(n). Show that f = O(n2).
5
3 4
3 2
6
4
5
7
A
B1
1
2
3
5
4
6
7

Partial preview of the text

Download Homework 4 - Understanding and Constructing Proofs | CS 1050 and more Assignments Computer Science in PDF only on Docsity!

CS 1050 Homework Individual Work โ€“ Due Friday April 16, 2004

  1. A two-connected graph is any graph such that between any two vertices, x and y, there are two distinct paths. Which of the following graphs is two-connected?
  2. Draw the DFS label for the following graph.
  3. Give ALL spanning trees for this graph. 1 2 6
  4. Can this (A) be a DFS label for the following graph (B)?
  1. Show that f 1 = O( g 1 ) f 2 = O( g 2 ) ๏ƒž f 1 + f 2 = O( g 1 + g 2 )
  2. Prove that 10 n^2 = O(2 n ).
  3. Define f = n^2 + O( n ). Show that f = O( n^2 ).

A

B 1

1 2