
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 = …
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 …
Newest 'algorithm' Questions - Stack Overflow
Nov 19, 2011 · 363 views Efficient algorithm to count contiguous subarrays that can form arithmetic progressions I'm working on a problem where I need to count, for each possible common difference …
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 …
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 …
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 …
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?
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 …
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 …
algorithm - 3D Least Squares Plane - Stack Overflow
Sep 9, 2009 · This is a comment. If someone would be so kind as to move it into the comments for Stephen Canon's answer, that would be great. This, I hope, clarifies what the heck he meant by "The …