About 15,900,000 results
Open links in new tab
  1. 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?

  2. 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 …

  3. 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 = …

  4. Tower of Hanoi: Recursive Algorithm - Stack Overflow

    Aug 3, 2009 · Although I have no problem whatsoever understanding recursion, I can't seem to wrap my head around the recursive solution to the Tower of Hanoi problem. Here is the code from Wikipedia: …

  5. What are some algorithms for comparing how similar two strings are?

    What you're looking for are called String Metric algorithms. There a significant number of them, many with similar characteristics. Among the more popular: Levenshtein Distance : The minimum number …

  6. c - Point in Polygon Algorithm - Stack Overflow

    Jul 30, 2012 · The algorithm is ray-casting to the right. Each iteration of the loop, the test point is checked against one of the polygon's edges. The first line of the if-test succeeds if the point's y-coord …

  7. a star - A* Search Algorithm - Stack Overflow

    At each iteration the algorithm chooses a node to expand from the open set (the one with the lowest f function - the f function is the sum of the cost the algorithm already knows it takes to get to the node …

  8. Is there an efficient algorithm to generate a 2D concave hull?

    The answer may still be interesting for somebody else: One may apply a variation of the marching square algorithm, applied (1) within the concave hull, and (2) then on (e.g. 3) different scales that my …

  9. matrix multiplication algorithm time complexity - Stack Overflow

    Jan 22, 2017 · I came up with this algorithm for matrix multiplication. I read somewhere that matrix multiplication has a time complexity of o(n^2). But I think my this algorithm will give o(n^3). I don't …

  10. What is the fastest substring search algorithm? - Stack Overflow

    Aug 13, 2013 · Each search algorithm comes in several variations that can make significant differences to its performance, as, for example, this paper illustrates. Benchmark your service to categorize the …