What is so special about 10^9+7? [duplicate] - modulo

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In many programming problems (e.g. some Project Euler problems) we are asked to report the answer as the remainder left after dividing the answer by 1,000,000,007.
Why not any other number?
Edit:
2 years later, here's what I know: the number is a big prime, and any answer to such a question is so large that it makes sense to report a remainder instead (as the number may be too large for a native datatype to handle).

Let me play a telepathist. 1000...7 are prime numbers and 1000000007 is the biggest one that fits in 32-bit integer. Since prime numbers are used to calculate hash (by finding the remainder of the division by prime), 1000000007 is good for calculating 32-bit hash.

Related

How to Classify Data In Opencv [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have 130 objects.Each object is defined by 13 points(2-d points),these 13 points form data_unit. Thus there are 130 data_units. I want to classify these data_units into 4 classes. How can we do this.k-means is not possible in this scenario what are the alternatives.
There is a whole set of classification methods based on technique called machine learning. The ones implemented in OpenCV are described here. You can try for example Support Vector Machines. Its a nice and fairly easy in use method, with some tricks to get past data that cannot be linearly separated.

Where is Ascii table is physically located [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I take some computer course and the teacher say ASCII table located very far down memory lane. While it looks to me it has to be somewhere pretty close to the CPU since it is transforms chars to hexadecimal machine readable sequences and that you can read letters even when there are no OS. I found that it is indeed in the BIOS (Basic Input Output System) does anyone can elaborate on physical location of ASCII tables? is it possible that it would be in a CPU? And how close is it indeed to CPU in Computer Architecture.
If I made any mistake please correct me we're here for learning.
The ASCII table is not managed by the BIOS but it's managed by the OS. So it does not have any physical location.
Nowadays they don't necessarily use ASCII, but use UNICODE.

Check sum calculation [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am new to know about check sum. So kindly help me.
I have these four binary values and i need to calculate the check sum for these numbers.
They are
0111011101100
1011011000110
0011011011110
1011010110010
I really don't know the algorithm to calculate these values. Can somebody shed a light on this. Whats the final checksum for these four values.
There is no "the checksum". There are many algorithms for "checksum" calculation. CRC32, Adler32, in a certain way as well MD4, MD5, SHA1, other SHA algorithms, etc.

Programming language for number crunching server [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm looking for a programming language that would scale well on multiprocessors and distributed systems, and is able to work well with the GPU for number crunching.
What do you think, is Erlang and CUDA a good match?
LE: I want to use it for image processing: feature detection, bundle adjustment and scene reconstruction; so it's fairly parallel. The GPU would do the computational intensive part and Erlang would just manage the tasks and shuffle data around.

How to compare .wav specimen in delphi? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I would like to start studying the .wav specimen by comparing two files. like returning a result of duration, accent, pronunciation in percentage. etc. or any code that comparing/analyzing the .wav.
What do you think about using Fourier transform? http://www.lohninger.com/fourier.html
For analyzing, processing or appling effects to sound files SOX - Sound eXchange is wonderful.

Resources