About 50 results
Open links in new tab
  1. algorithm - What does O (log n) mean exactly? - Stack Overflow

    Feb 22, 2010 · A common algorithm with O (log n) time complexity is Binary Search whose recursive relation is T (n/2) + O (1) i.e. at every subsequent level of the tree you divide problem into half and do …

  2. algorithm - Finding all possible combinations of numbers to reach a ...

    Jan 8, 2011 · How would you go about testing all possible combinations of additions from a given set N of numbers so they add up to a given final number? A brief example: Set of numbers to add: N = …

  3. What is Sliding Window Algorithm? Examples? - Stack Overflow

    While solving a geometry problem, I came across an approach called Sliding Window Algorithm. Couldn't really find any study material/details on it. What is the algorithm about?

  4. CRC16 (ModBus) - computing algorithm - Stack Overflow

    Mar 15, 2019 · In the algorithm itself, we use the reversed polynomial 0xA001 instead of 0x8005.This is because we apply the algorithm starting from the least significant bit instead of the most significant …

  5. algorithm - What is the difference between depth and height in a tree ...

    Dec 1, 2023 · This is a simple question from algorithms theory. The difference between them is that in one case you count number of nodes and in other number of edges on the shortest path between …

  6. algorithm - Difference between Big-O and Little-O Notation - Stack …

    Sep 1, 2009 · Algorithm A can't tell the difference between two similar inputs instances where only x 's value changes. If x is the minimum in one of these instances and not in the other, then A will fail to …

  7. Newest 'algorithm' Questions - Stack Overflow

    An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Sign up to watch this tag and see more personalized content

  8. algorithm - Difference between O (n) and O (log (n)) - which is better ...

    Apr 29, 2012 · O (n) means that the algorithm's maximum running time is proportional to the input size. basically, O (something) is an upper bound on the algorithm's number of instructions (atomic ones). …

  9. Efficient Algorithm for Bit Reversal (from MSB->LSB to LSB->MSB) in C

    Apr 14, 2009 · What is the most efficient algorithm to achieve the following: 0010 0000 => 0000 0100 The conversion is from MSB->LSB to LSB->MSB. All bits must be reversed; that is, this is not …

  10. algorithm - Peak signal detection in realtime timeseries data - Stack ...

    Robust peak detection algorithm (using z-scores) I came up with an algorithm that works very well for these types of datasets. It is based on the principle of dispersion: if a new datapoint is a given x …