Docsity

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

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).