Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Discrete Mathematics, Set Theory and Logic
Reply
 
Thread Tools Display Modes
  #1  
Old September 19th, 2008, 12:36 AM
Banned
 
Join Date: Sep 2008
Posts: 21
Country:
Thanks: 7
Thanked 2 Times in 2 Posts
narbe is on a distinguished road
Cool the Big-O notation problems

hello folks.
Can you help me solve these problems of big O notation and moreover, can you explain for me the easiest way to solve Big O notation problems? I mean, how do we begin to solve and what is the general concept?
Thanks in advance
Attached Thumbnails
big-o-notation-problems-gash.jpg  

Last edited by CaptainBlack; September 20th, 2008 at 03:04 AM.
Reply With Quote
Advertisement
 
  #2  
Old September 19th, 2008, 09:30 AM
Super Member

 
Join Date: Aug 2008
Location: Lyon, France
Posts: 780
Country:
Thanks: 44
Thanked 501 Times in 420 Posts
Laurent is a name known to allLaurent is a name known to allLaurent is a name known to allLaurent is a name known to allLaurent is a name known to allLaurent is a name known to all
Default

The question in your textbook is not quite rigorously written: it is necessary to specify at the neighbourhood of which point you define the big-O notation. For instance, it seems clear in the present case that it should be \underset{x\to\infty}{O}(x^n).

That said, f(x)=\underset{x\to\infty}{O}(x^n) means no more than |f(x)|\leq C x^n for some C and for large enough x. I'll neglect the subscript under the O in the following (but write it on your paper anyway!).

Because O(x^n)+O(x^n)=O(x^n), what you have to do is only to look at the largest term (when x tends to +\infty). You determine which one is larger by using usual comparisons between polynomial terms, and between polynomial and logarithmic terms. For instance, for a), the dominating term is x^3\log x (it is larger than x^3, which dominates x^2). This term is not O(x^3) because x^3\log x \leq Cx^3 is not compatible with \log x\to+\infty. On the other hand \log x=O(x), so that x^3\log x=O(x^4). As a summary, 2x^2+x^3\log x=O(x^2)+x^3 O(x)=O(x^2)+O(x^4)=O(x^4) and it is not O(x^3) since x^{-3}(2x^2+x^3\log x)=2x^{-1}+\log x\to +\infty.

For b), remember (\log x)^4=O(x).
For c), you can use \frac{1}{x^4+1}=O(x^{-4}) (or look at the limit as x tends to +\infty).
For d), cf. a) and c).
Reply With Quote
The Following 2 Users Say Thank You to Laurent For This Useful Post:
Donate to MHF
  #3  
Old September 20th, 2008, 03:06 AM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 11,379
Country:
Thanks: 667
Thanked 3,619 Times in 2,916 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by Laurent View Post
The question in your textbook is not quite rigorously written: it is necessary to specify at the neighbourhood of which point you define the big-O notation. For instance, it seems clear in the present case that it should be \underset{x\to\infty}{O}(x^n).
There is no need for the x \to \infty notation it is implicit in the usual definition of Big-O notation.

RonL
__________________
Truth does not change because it is, or is not, believed by a majority of the people.

Giordano Bruno
Reply With Quote
The following users thank CaptainBlack for this useful post:
Donate to MHF
  #4  
Old September 20th, 2008, 03:12 AM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 11,379
Country:
Thanks: 667
Thanked 3,619 Times in 2,916 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by narbe View Post
hello folks.
Can you help me solve these problems of big O notation and moreover, can you explain for me the easiest way to solve Big O notation problems? I mean, how do we begin to solve and what is the general concept?
Thanks in advance
For a description of Big-O notation see the Wikipedia article.


RonL
__________________
Truth does not change because it is, or is not, believed by a majority of the people.

Giordano Bruno
Reply With Quote
  #5  
Old September 20th, 2008, 07:26 AM
Banned
 
Join Date: Sep 2008
Posts: 21
Country:
Thanks: 7
Thanked 2 Times in 2 Posts
narbe is on a distinguished road
Exclamation 7 new problems

Hello my friends,
I added 7 new problems regarding Big-O notation. I need to know, how you solve them. I want to learn the way and the logic to solve them. Thank you for helping me
Attached Thumbnails
big-o-notation-problems-6.jpg  big-o-notation-problems-10.jpg  big-o-notation-problems-12-14-16.jpg  big-o-notation-problems-18.jpg  big-o-notation-problems-24.jpg  

Reply With Quote
  #6  
Old September 20th, 2008, 09:45 AM
bkarpuz's Avatar
Senior Member
 
Join Date: Sep 2008
Location: R³
Posts: 321
Country:
Thanks: 80
Thanked 65 Times in 59 Posts
bkarpuz will become famous soon enoughbkarpuz will become famous soon enough
Send a message via ICQ to bkarpuz Send a message via AIM to bkarpuz Send a message via MSN to bkarpuz Send a message via Yahoo to bkarpuz Send a message via Skype™ to bkarpuz
Exclamation Landau symbol

Quote:
Originally Posted by narbe View Post
hello folks.
Can you help me solve these problems of big O notation and moreover, can you explain for me the easiest way to solve Big O notation problems? I mean, how do we begin to solve and what is the general concept?
Thanks in advance
The link below illustrates the Landau symbols O(big-o) and o(small-o), I think it will be helpful
Landau Symbols -- from Wolfram MathWorld
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 08:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.