theory
How are algorithms and data structures related to Turing Machines?
My copy of The Design and Analysis of Computer Algorithms has arrived today.In the first chapter, the author introduced Turing Machines. I have two other algorithms textbooks, Introduction to Algori开[详细]
2023-03-29 06:49 分类:问答central limit theorem
i want to observe central limit theorem and wrote this program.But i confused that,must i observe like that.Is there any wrong ?[详细]
2023-03-28 15:29 分类:问答Objective-C: Creating Instance from Class Reference
You can create a class reference with the following code: Class M = [NSMutableString class]; // NSMutableString (for example).[详细]
2023-03-28 07:36 分类:问答How do I determine if it's appropriate to cache a hashCode() result?
Given I have an immutable class of which a GetHashCode() function has been written, how do I know if it would be beneficial to cache the hash result, or in most cases is it even wise to do so?[详细]
2023-03-25 11:12 分类:问答CS theory problem: evaluating each element in an array only once and choosing the largest value
We covered this problem in a theory class back in college. The setup is this: You\'re presented with an array of N values.You know the length of the array, but not the range of values.You are presen[详细]
2023-03-25 07:06 分类:问答Theoretically, is BNF sufficient to describe all file format? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-03-24 09:02 分类:问答Are algorithms like Huffman coding actually used in production?
Currently, I am developing an app that needs to store large amount of text on an iPad. My question is, are algorithms like Huffman coding actually used in production? I just need a very simple compres[详细]
2023-03-23 15:23 分类:问答C programming - Understanding bind()
I\'m having trouble understanding the bind() function in regards to Unix Domain Sockets. address.sun_family = AF_UNIX;[详细]
2023-03-23 06:16 分类:问答Multi-Exponentiation Implementation
Is anyone aware of an implemented multi-exponentiation alg开发者_如何学Corithm?I\'m looking for something that given vectors A, B would compute the product of A[i]^B[i] using some of the fast algorith[详细]
2023-03-22 09:30 分类:问答Can regexes containing ordered alternation be rewritten to use only unordered alternation?
Suppose I have a regex language supporting literals, positive and negative character classes, ordered alternation, the greedy quantifiers ?, *, and +, and the nongreedy quantifiers ??, *?, and +?. (Th[详细]
2023-03-22 05:33 分类:问答