About 50 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. Circle line-segment collision detection algorithm? - Stack Overflow

    Jul 2, 2009 · I have a line from A to B and a circle positioned at C with the radius R. What is a good algorithm to use to check whether the line intersects the circle? And at what coordinate …

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

  4. Why doesn't Dijkstra's algorithm work for negative weight edges?

    Oct 31, 2012 · Can somebody tell me why Dijkstra's algorithm for single source shortest path assumes that the edges must be non-negative. I am talking about only edges not the negative …

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

  6. algorithm - Finding all possible combinations of numbers to reach …

    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 …

  7. algorithm - What is the difference between depth and height in a …

    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 …

  8. algorithm - Difference between Big-O and Little-O Notation

    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 …

  9. HMAC-SHA256 Algorithm for signature calculation - Stack Overflow

    Aug 19, 2011 · HMAC-SHA256 Algorithm for signature calculation Asked 14 years, 3 months ago Modified 4 years, 1 month ago Viewed 252k times

  10. algorithm - How can building a heap be O (n) time complexity?

    Mar 18, 2012 · A great analysis of the algorithm can be seen here. The main idea is that in the build_heap algorithm the actual heapify cost is not O(log n) for all elements. When heapify is …