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. Newest 'algorithm' Questions - Stack Overflow

    Which shortest path algorithm should I use for a weighted city road network in Python? [closed] I am working on a real-world navigation problem where a city road network is represented as a weighted …

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

  4. Algorithm to compare two images - Stack Overflow

    Apr 18, 2015 · Why could this be useful? Dependant on the morphing algorithm you use, there may be a relationship between similarity of images, and some parameters of the morphing algorithm. In a …

  5. Python k-means algorithm - Stack Overflow

    Oct 9, 2009 · I am looking for Python implementation of k-means algorithm with examples to cluster and cache my database of coordinates.

  6. What is stability in sorting algorithms and why is it important?

    Oct 5, 2009 · A sorting algorithm is said to be stable if two objects with equal keys appear in the same order in sorted output as they appear in the input array to be sorted. Some sorting algorithms are …

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

  8. Fastest algorithm for finding a word on a word search grid

    Nov 7, 2014 · Of course, you could easily modify the standard search algorithm to treat the two-dimensional grid as a one-dimensional string without actually doing the transformation ahead of time. …

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

  10. What algorithm does python's sorted() use? - Stack Overflow

    Jun 8, 2012 · In Python 2.7, how does Python's built-in sorted function work - what algorithm does it use?