
Newest 'algorithm' Questions - Stack Overflow
An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Sign up to watch this tag and see more personalized content
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 …
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?
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 …
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 …
math - Algorithm for finding similar images - Stack Overflow
Sep 17, 2008 · I need an algorithm that can determine whether two images are 'similar' and recognizes similar patterns of color, brightness, shape etc.. I might need some pointers as to what parameters …
Best algorithm for efficient collision detection between objects
Dec 8, 2015 · It would be great if the algorithm also supported visibility query too, for the rendering pipeline. For the sake of simplicity, assume that collision detection here is broad-phase (i.e. all …
algorithm - What is a loop invariant? - Stack Overflow
Jul 11, 2010 · I'm reading "Introduction to Algorithm" by CLRS. In chapter 2, the authors mention "loop invariants". What is a loop invariant?
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 …