CECS 228 Group Exercise Solutions and Problems, Assignments of Discrete Structures and Graph Theory

The solutions and problems for a group exercise in cecs 228, due on december 7, 2004. The exercise includes finding the least integer n for the big o notation of given functions, showing that the sum of the product of a positive integer k and the first n natural numbers is o(nk+1), and describing an algorithm to find the longest word in an english sentence.

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-0lf
koofers-user-0lf 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CECS 228 – Group Exercise on 12/2/04
Due 12/7/04
Group members:____________________________________________________________________________
1. Problem 8 in Section 2.2
Find the least integer n such that f(x) is O(xn) for each of the following functions. Support your answer.
a) f(x) = 2 x2 + x3 log x
b) f(x) = 3 x5 + (log x)4
c) f(x) = (x4 + x2 + 1) / ((x4 + 1)
d) f(x) = (x3 + 5 log x) / (x4 + 1)
pf2

Partial preview of the text

Download CECS 228 Group Exercise Solutions and Problems and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CECS 228 – Group Exercise on 12/2/

Due 12/7/ Group members:____________________________________________________________________________

1. Problem 8 in Section 2. Find the least integer n such that f ( x ) is O( x n) for each of the following functions. Support your answer. a) f ( x ) = 2 x^2 + x^3 log x b) f ( x ) = 3 x^5 + (log x )^4 c) f ( x ) = ( x^4 + x^2 + 1) / (( x^4 + 1) d) f ( x ) = ( x^3 + 5 log x ) / ( x^4 + 1)

2. Problem 18 in Section 2. Let k be a positive integer. Show that 1k^ + 2k^ + … + nk^ **is O(nk+1).

  1. Problem 22 in Section 2.** Describe an algorithm to find the longest word in an English sentence (where a word is a string of letters and a sentence is a list of words, separated by blanks).