• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Big O notation.

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #21
    Originally posted by SallyAnne View Post
    Thanks all of you.

    Can I ask then....if you're multiplying 2 numbers...

    why is it O(n^2) and not O(n*m)?

    Does it not matter that the 2 numbers which we're multiplying are not the same? Does n simply mean "input"?
    because the product of two numbers is at most the square of the largest. So as the O notation represents an upper bound you may as well use the square (that and the fact that you then express it in terms of one "variable").

    BTW, you can multiply two numbers of size n (upper bound on both) in O(n.log(n)) by using a fast Fourier transform

    P.S. What does "get a word" mean?
    Work in the public sector? Read the IR35 FAQ here

    Comment


      #22
      You might see ^ written as ** , just to confuse matters.
      Down with racism. Long live miscegenation!

      Comment


        #23
        Originally posted by OwlHoot View Post
        because the product of two numbers is at most the square of the largest.
        Ahhhhhh!!!!!!! I see!!!!!

        The light goes on!!!!!

        Owlhoot - you've always been my favourite


        Originally posted by OwlHoot View Post
        P.S. What does "get a word" mean?
        "have a word with yourself"....meant lovingly, as your previous post had been so advanced it'd made my head actually explode.



        many many thanks, and to everyone else too x x x
        The pope is a tard.

        Comment


          #24
          Originally posted by zeitghost
          In the proper FORTRAN notation...
          If you can find it in amongst all the declarations and assorted bagage in your typical Fortran code
          "Being nice costs nothing and sometimes gets you extra bacon" - Pondlife.

          Comment

          Working...
          X