C__Documents_and_Settings_raghu_Desktop_CS_2800_Final_Review_Review_Problems

C__Documents_and_Settings_raghu_Desktop_CS_2800_Final_Review_Review_Problems

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 2800 – Fall 2008 Review Problems for the Final 1. Convert the following statements into propositional logic and determine if the given argument is sound: Rainy days make gardens grow. Gardens don’t grow if it is not hot. It always rains on a day that is not hot. Therefore, if it is not hot, then it is hot. 2. We define the set S = { x | x / ∈ S } . Does S ∈ S ? Does S / ∈ S ? 3. Show that if A and B are countable sets, then A × B is also countable. 4. Show that the power set of the set of positive integers Z + is uncountable. 5. What is the best big-O function for (a) n 3 + sin n 7 (b) ( x + 2) log 2 ( x 2 + 1) + log 2 ( x 3 + 1) 6. What is the worst-case time complexity of the following algorithms? (a) One that prints out all the ways to place the numbers 1 , 2 ,...,n in a row. (b) One that enumerates all the subsets of a given finite set of size n . 7. Prove that if n is an integer that is not a multiple of 3, then n 2 ≡ 1 (mod 3)....
View Full Document

This note was uploaded on 10/04/2010 for the course CS 2800 at Cornell.

Page1 / 2

C__Documents_and_Settings_raghu_Desktop_CS_2800_Final_Review_Review_Problems

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online