complexity-theory
c++ practical computational complexity of <cmath> SQRT()
What is the difference in CPU cycles (or, in essence, in \'speed\') between x /= y; and #include <cmath>[详细]
2023-03-24 04:50 分类:问答Variation on set cover problem in R / C++
Given a universe of elements U = {1, 2, 3,...,n}and a number of sets in this universe {S1, S2,...,Sm}, what is the smallest set we can create that will cover at least one element in each of the m sets[详细]
2023-03-21 16:48 分类:问答Are there decision problems which are decidable but not in NP? [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-03-20 11:02 分类:问答How to extract strings wrapped in HTML from a column in an SQL table into a new table?
I have a column on an SQL Server 2005 table called BIO - the data in the BIO column is formatted like this:[详细]
2023-03-19 23:34 分类:问答Top K smallest selection algorithm - O (n + k log n) vs O (n log k) for k << N
I\'m asking this in regards to Top K algorithm. I\'d think that O(n + k log n) should be faster, because well.. for instance if you try plugging in k = 300 and n = 100000000 for example, we can see th[详细]
2023-03-19 14:16 分类:问答Conditional Regex Problem in C#
I want to match a pattern ASA[a-z][a-z][0-9][0-9] and replace them with embedded hyperlinks http://www.stack.com?order=ASA[a-z][a-z][0-9][0-9] and display it as ASA[a-z][a-z][0-9][0-9][详细]
2023-03-19 02:41 分类:问答Associating nearby points with a path
Given a set of ordered points, and a path made up of ordered lat,lon points that goes near those points (in lat/lon coordinates), I want to associate the points with the path, ideally with good algori[详细]
2023-03-18 19:02 分类:问答complexity of brute force array traversal
If I have a 4x4 grid for example and I want to start at an arbitrary cell (i,j) and then want to travel down every path without crossing over on myself, what is the complexity (big o) of this? I have[详细]
2023-03-17 10:40 分类:问答C++0x issue: Constant time insertion into std::set
According to this page, I can achieve constant time insertion if I use iterator std::set::insert ( iterator position, const value_type& x );[详细]
2023-03-16 19:51 分类:问答picking without replacement in java
I often* find myself in need of a data structure which has the following properties: can be initialized with an array of n objects in O(n).[详细]
2023-03-16 09:42 分类:问答