Let n > 1, and let S = {1, 2, 3}" (the cartesian product of {1,2,3}...
2 (25 pts). Let an algorithm has complexity S(n)=S(n-1)+f(n), where for k=1,2,3,... f(k)=k+k/3. Answer these two questions: (1) Find the closed form for S(n) if S(2)=1. (2) Prove by mathematical induction that the closed form you found is correct.
Let S be a finite set with cardinality n>0. a. Prove, by constructing a bijection, that the number of subsets of S of size k is equal to the number of subsets of size n- k. Be sure to prove that vour mapping is both injective and surjective. b. Prove, by constructing a bijection, that the number of odd-cardinality subsets of S is equal to the number of even-cardinality subsets of S. Be sure to prove that your mapping is...
Let f(n) = 5n^2. Prove that f(n) = O(n^3). Let f(n) = 7n^2. Prove that f(n) = Ω(n). Let f(n) = 3n. Prove that f(n) =ꙍ (√n). Let f(n) = 3n+2. Prove that f(n) = Θ (n). Let k > 0 and c > 0 be any positive constants. Prove that (n + k)c = O(nc). Prove that lg(n!) = O(n lg n). Let g(n) = log10(n). Prove that g(n) = Θ(lg n). (hint: ???? ? = ???? ?)???? ?...
Let 2 N (1,2,3,...} be a sample space and F-2N a sigma algebra. . . . . } with F = 2Ω. Define P a. Consider the sample space Ω-{1, 2, 3 on (2, F) as follows: Show that (2,F, P) is a probability space. b. Find the values of B for which the following P defined on (2, F) is a probability measures: k2k
Let A = {1, 2, 3} and B = {2, 3, 4, 5}. Find the cardinalities of the following sets: (i) A ∪ B (ii) A ∩ B (iii) A \ B (iv) B \ A (v) P(A ∪ B) Exercise 1.2. Let A = {◦, {◦}, {∅}} and let B = {∅, {◦}}. Find the cardinalities of the following sets: (i) A ∪ B (ii) A ∩ B (iii) A \ B (iv) A × B (v) P(A) Exercise...
2. If S:= {1/n - 1/min, me N}, find inf S and sup S. 4. Let S be a nonempty bounded set in R. (a) Let a > 0, and let aS := {as : S ES). Prove that inf(as) = a infs, sup(as) = a sup S. (b) Let b <0 and let b = {bs : S € S}. Prove that inf(bs) = b supS, sup(bs) = b inf S. 6. Let X be a nonempty set and...
(1) Let f : [n] [n] be a permutation. A fixed point of f is an element x e [n] such that f(x) - x. Now consider random permutations of [n] and let X be the random variable which represents the number of fixed points of a given permutation. (a) What is the probability that X 0? (b) What is the probability that X-n -2? (c) What is the probability that X-n-1? (d) What is the expectation of X? (Hint:...
1. a) Let A = {2n|n ∈ ℤ} (ie, A is the set of even numbers) and define function f: ℝ → {0,1}, where f(x) = XA(x) That is, f is the characteristic function of set A; it maps elements of the domain that are in set A (ie, those that are even integers) to 1 and all other elements of the domain to 0. By demonstrating a counter-example, show that the function f is not injective (not one-to-one). b)...
1. Let A -(a, b) a, b Q,a b. Prove that A is denumerable. (You may cite any results from the text.) 2. Let SeRnE N) and define f:N-+S by n)- n + *. Since, by definition, S-f(N), it follows that f is onto (a) Show that f is one-to-one (b) Is S denumerable? Explain 3. Either prove or disprove each of the following. (You may cite any results from the text or other results from this assignment.) (a) If...
all parts A-E please. Problem 8.43. For sake of a contradiction, assume the interval (0,1) is countable. Then there exists a bijection f : N-> (0,1). For each n є N, its image under f is some number in (0, 1). Let f(n) :-0.aina2na3n , where ain 1s the first digit in the decimal form for the image of n, a2 is the second digit, and so on. If f (n) terminates after k digits, then our convention will be...