When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Are there any programs or IDEs that calculate Big-O notation on...

    softwareengineering.stackexchange.com/questions/404473

    Big-O notation is methodical and depends purely on the control flow in your code so it's definitely doable but not exactly easy.. It would probably be best to let the compilers do the initial heavy lifting and just do this by analyzing the control operations in the compiled bytecode.

  3. big o - Is this a Proper "Rule" for Identifying the "Big O"...

    softwareengineering.stackexchange.com/questions/194433/is-this

    The minimum Big-Oh value for a comparison sort is O(nlogn) however there is plenty of sorts with worse big-oh. For example selection sort has O(n^2). Some non comparison sort may ever have better big-oh values.

  4. big o - Big O Question about an algorithm with (n^2 + n) / 2...

    softwareengineering.stackexchange.com/questions/279609

    Big-O is all about "how complicated" an algorithm is. If you have two algorithms, and one takes n^2*k seconds to run, and the other takes n^2*j seconds to run, then you can argue about which one is better, and you might be able to make some interesting optimizations to try to affect k or j , but both of these algorithms are dead slow compare to ...

  5. algorithms - What is O(...) and how do I calculate it? - Software...

    softwareengineering.stackexchange.com/questions/132331/what-is-o

    27. The O (...) refers to Big-O notation, which is a simple way of describing how many operations an algorithm takes to do something. This is known as time complexity. In Big-O notation, the cost of an algorithm is represented by its most costly operation at large numbers.

  6. algorithms - Is O(log n) - Software Engineering Stack Exchange

    softwareengineering.stackexchange.com/questions/297357

    No, O(log n) + O(log n) is not O(n). It is still O(log n). When we have a big-O formula multiplied by a constant, it is equivalent to the value without the multiplied constant. So: O(k * g) = O(g) where k is a constant, non-zero factor and g is a bounding function. An O(log n) operation is an operation that takes a number of steps proportional ...

  7. What's the complexity of Java's string split function?

    softwareengineering.stackexchange.com/questions/331909

    Its O(n) in your particular cases, where you're splitting by 1/0 character length separators. In general, it's O (n + k) with a k-character separator, can be implemented using the KMP algorithm. Java string split also accepts regexes as seperators, in which case its complexity depends on the matching algorithm being used.

  8. big o - Big O notation allocate array of N element - Software ...

    softwareengineering.stackexchange.com/questions/262545

    1. It really depends on the allocating. For example, if it is C or similar the OS just needs to find enough memory. If it needs to be continuous, it is O (n) with n being the amount of gaps in memory, regardless of the length of your array. If it can manage with non-continuous memory, it is O (n) with n as the size of the memory you want to ...

  9. Algorithms: How do I sum O (n) and O (nlog (n)) together?

    softwareengineering.stackexchange.com/questions/258509

    Side note: you could use a hash table to do this in O (n) depending on memory requirements. – corsiKa. Oct 10, 2014 at 14:58. Add a comment. O(n) + O(n log(n)) = O(n log(n)) For Big O complexity, all you care about is the dominant term. dominates so that's the only term that you care about. answered Oct 8, 2014 at 21:16.

  10. How do I determine the runtime of a double recursive function?

    softwareengineering.stackexchange.com/questions/89839

    You determine Big-O performance by taking the highest order of any called method and multiplying it by the order of the calling method. However, once you start talking about exponential and factorial performance, you can ignore polynomial performance. I believe that the same holds when comparing exponential and factorial: factorial wins.

  11. problem on calculating Big O complexity - Software Engineering...

    softwareengineering.stackexchange.com/questions/245476

    the iteration inside the hashset made with for (Iterator<LinkedHashSet<String>> iteratorSets = setOfStrings.iterator(); iteratorSets.hasNext();), it will be O(m),because i have to iterate inside the entire hashset to sum the letters of each words. so in conclusion i think the time complexity of this algorithm is(O(n)*O(m))