Results 1 to 5 of 5
  1. #1
    sharinganxy is offline Member
    Join Date
    Mar 2017
    Posts
    24
    Rep Power
    0

    Default What is big-Oh characterization ?

    Hi All,

    Can you please briefly explain the implication of the big-Oh notation in simple
    English on below statement ?

    Input: n and m integers
    Output: The sum of product
    sum <- 0
    for i<-1 to n-1 do{
    for j<-i to m-1 do{
    sum += i * j
    }
    }
    return sum

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: What is big-Oh characterization ?

    I could explain it to you but not as well as wikipedia. So look it up. And it has nothing to do with Java.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: What is big-Oh characterization ?

    Quote Originally Posted by jim829 View Post
    it has nothing to do with Java.
    Agreed and moved.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    sharinganxy is offline Member
    Join Date
    Mar 2017
    Posts
    24
    Rep Power
    0

    Default Re: What is big-Oh characterization ?

    Hi Jim,

    Could you please explain and guide me ?

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: What is big-Oh characterization ?

    As I said, Wikipedia explains it real well. Just look it up.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •