About 50 results
Open links in new tab
  1. algorithms - Can "sub-linear" still be a straight line? - Software ...

    Apr 25, 2017 · Technically, sub-linear complexity includes constant complexity, and the graph for constant complexity is a horizontal straight line. But by definition all asymptotically straight lines …

  2. Sublinear Extra Space MergeSort - Software Engineering Stack Exchange

    Sublinear Extra Space. Develop a merge implementation that reduces that extra space requirement to max (M, N/M), based on the following idea: Divide the array into N/M blocks of size M (for simplicity …

  3. Big O notation for a sub linear algorithm [duplicate]

    I started editing the question to fix the grammar when I realized that the question would answer itself. Hint: if you define the relationship between "Input" and "Complexity" you will come up with the most …

  4. Why is mergesort O (log n)? - Software Engineering Stack Exchange

    Sep 14, 2015 · Mergesort is a divide and conquer algorithm and is O(log n) because the input is repeatedly halved. But shouldn't it be O(n) because even though the input is halved each loop, each …

  5. Decoupling UIs from Domain logics | Clean architecture

    Sep 30, 2024 · I've been reading articles on Hexagonal, Onion, Clean Architectures, and other Domain-Driven Designs. A common theme they emphasize is decoupling components. From what I gather, …

  6. Designing message handler - Software Engineering Stack Exchange

    Nov 5, 2023 · I don't know if this would be an improvement in your case, but if all the message event arg types had a common base type of MessageTypeEventArgs, only one single MessageReceived event …

  7. Time complexity of 2^sqrt (n) - Software Engineering Stack Exchange

    Mar 12, 2016 · I am solving an algorithm question and my analysis is that it would run on O(2^sqrt(n)). How big is that? Does it equate to O(2^n)? Is it still non-polynomial time?

  8. efficiency - What is Big O of sqrt (1) + sqrt (2) + ... + sqrt (n ...

    Apr 18, 2016 · While I agree gnat is completely off-base here, I can't understand the question well enough to answer it myself. "runs until sqrt (1)" sounds like "runs exactly once" to me, and I can't tell …

  9. modeling - Software Engineering Stack Exchange

    Apr 15, 2024 · My old post (which is hidden and will anyway be deleted by me later) seemed to cause confusion, so here is a new - hopefully clearer - question. Thanks for your feedback @ JimmyJames, …

  10. Understanding stack frame of function call in C/C++?

    Apr 18, 2013 · In addition to what Dirk said, an important use of stack frames is to save previous values of registers so that they can be restored after a function call. So, even on processors where registers …