About 50 results
Open links in new tab
  1. Newest 'algorithm' Questions - Stack Overflow

    Jan 30, 2026 · On the wikipedia page about junction tree algorithm there is an algorithm for finding a junction tree of a graph working by finding the maximal weight spanning tree of a clique graph …

  2. algorithm - Calculate distance between two latitude-longitude points ...

    Aug 26, 2008 · How do I calculate the distance between two points specified by latitude and longitude? For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to …

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

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

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

    Nov 25, 2011 · 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?

  6. How do I check if a number is a palindrome? - Stack Overflow

    Oct 14, 2008 · How do I check if a number is a palindrome? Any language. Any algorithm. (except the algorithm of making the number a string and then reversing the string).

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

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

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

  10. What is the best algorithm for overriding GetHashCode?

    The hashing algorithm needs to be deterministic i.e. given the same input it must always produce the same output. Reduce Collisions The algorithm that calculates a hash code needs to keep hash …