The world consists of many (1k-10k) rectangles of similar sizes, and I need to be able to quickly determine potential overlaps when trying to add a new rectangle. Rectangles will be added and removed
I would like to track a color in a set of images. For this reason I use the algorithm of constant thresholding mentioned in
I have the following pseudo-code in my book for a breadth-first search: function breadth_first_search:
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
I\'m 开发者_JS百科very curious, why stability is or is not important in sorting algorithms?A sorting algorithm is said to be stable if two objects with equal keys appear in the same order in sorted ou
Let f transform one value to another, then I\'m writing a function that repeats the transformation n times.
I have a digraph which is strongly connected (i.e. there is a path from i to j and j to i for each pair of nodes (i, j) in the graph G).I wish to find a strongly connected graph out of this graph such
H开发者_高级运维ow to calculate number of sequences over {0,1} such that each sequence contains at least half ones?The total number of sequences of length n is 2^n. If n is odd, exactly the half of th
I\'m planning to automate the FAQ section in my site where the questions and answers stored in standard DB and would like to get the input question from the user and recognize it (algorithm) and get t
I\'m looking for a way to reverse a CRC32 checksum. There are solutions around, but they are either badly written, extremely technical and/or in Assembly. Assembly is (currently) beyond my ken, so I\'