Forum: Computer Science 4 Days Ago |
| Replies: 6 Views: 345 That's the same kind of minus as the minus key on your calculator. Just put n - 1 into Mr. Calculator and you'll calculate running time.
That's the same thing as n รท 2.
Yeah, it can get... |
Forum: Computer Science 4 Days Ago |
| Replies: 6 Views: 300 An API is a list of function declarations, or something in that spirit. |
Forum: Computer Science 6 Days Ago |
| Replies: 10 Views: 4,637 To heck with SAS. It is software that deserves to die. |
Forum: Computer Science 6 Days Ago |
| Replies: 11 Views: 708 Take Japanese and then you can get really freaking tired of all the otakus in your class. |
Forum: Computer Science 6 Days Ago |
| Replies: 1 Views: 233 Edit what? A string? What does editing a string have to do with measuring the distance of two strings? What are you trying to do? Why do you want to compute the distance? |
Forum: Computer Science 14 Days Ago |
| Replies: 2 Views: 407 http://en.wikipedia.org/wiki/Fibonacci_search_technique |
Forum: Computer Science 14 Days Ago |
| Replies: 1 Views: 314 What kind of Lisp? Common Lisp? Use SLIME. Emacs Lisp? I guess not, because then you wouldn't need to ask. |
Forum: Computer Science 19 Days Ago |
| Replies: 7 Views: 463 If there are 32-bit instructions, that means there are 2^32 total values these instructions could have. If addresses are 12 bits, each 2-address instruction has 2^24 values it could have. So... |
Forum: Computer Science 20 Days Ago |
| Replies: 8 Views: 692 For example, suppose you have a function
int f(int n) {
if (n == 0) {
return 1;
}
else {
return n * f(n-1);
}
}
We want to measure its cost. But before we do so, we'll... |
Forum: Computer Science 21 Days Ago |
| Replies: 8 Views: 692 Create a recursive formula for the time complexity and figure it out from there. |
Forum: Computer Science 22 Days Ago |
| Replies: 7 Views: 463 To represent an N-bit value whose value could be anything, you need.... N bits. Which eats up 2^N possible numbers. You have 2^20 available numbers. |
Forum: Computer Science 22 Days Ago |
| Replies: 5 Views: 517 It apparently does, if he's considering it.
I also think the probability of the linear algebra class sucking is higher than the intro to mathematical proofs class sucking. Math department tend to... |
Forum: Computer Science 22 Days Ago |
| Replies: 7 Views: 463 Why don't you just count? Each two-address instruction eats up enough of the available instruction space to represent 2 addresses. Each one-address instruction eats up enough of the available... |
Forum: Computer Science 23 Days Ago |
| Replies: 1 Views: 317 I think this sort of thing should just be... intuitively straightforward. The only part that might not be is the question of how to deal with different operator precedences.
What is a program? ... |
Forum: Computer Science 23 Days Ago |
| Replies: 2 Views: 466 You need to explain your problem better. What is a subdomain? Why are "keys"? What about the binary tree lets you search efficiently? If it's just a binary tree, and not the more specific case of... |
Forum: Computer Science 23 Days Ago |
| Replies: 4 Views: 507 Hey, you're right, it is easy for me. |
Forum: Computer Science 24 Days Ago |
| Replies: 8 Views: 692 Let's look at this one. I'm going to ignore the swap for now.
Iteration2:
public static long dominoes(long x, long y){
long temp;
double koeficient = 0, faktor;
for(long i=0; i<=x+y;... |
Forum: Computer Science 24 Days Ago |
| Replies: 5 Views: 517 Take Introduction to mathematical proof. It will make you a better, smarter programmer.
Another reason is that if you find yourself interested in graphics, it wouldn't be that hard to pick up the... |
Forum: Computer Science 24 Days Ago |
| Replies: 8 Views: 692 Addition is O(n) where n is the number of bits in the BigInteger, and multiplication depends on the algorithm used: http://en.wikipedia.org/wiki/Multiplication_algorithm . That depends on the Java... |
Forum: Computer Science 25 Days Ago |
| Replies: 1 Views: 329 First, start working on it. Then, after you've shown some progress, you'll have an easier time convincing somebody to help you. |
Forum: Computer Science 25 Days Ago |
| Replies: 11 Views: 21,773 yeah
Why would you pay for something stupid? Maybe you are stupid :P |
Forum: Computer Science 25 Days Ago |
| Replies: 80 Views: 106,373 |
Forum: Computer Science 26 Days Ago |
| Replies: 4 Views: 414 If you're writing production software, you should use openssl or gpg or whatever -- you shouldn't be calling cryptography routines yourself, and especially you shouldn't be writing them, unless you... |
Forum: Computer Science 26 Days Ago |
| Replies: 4 Views: 414 openssl is open source.
Uh... what do you want this for? |
Forum: Computer Science 29 Days Ago |
| Replies: 9 Views: 428 Search for it on Google. It's a nice language that has access to all the Java libraries. |
Forum: Computer Science 30 Days Ago |
| Replies: 9 Views: 428 |
Forum: Computer Science 31 Days Ago |
| Replies: 1 Views: 377 Um, yes you can. For example, you can make a very rough bound: if you have a sum of j values that are each less than or equal to k, then their sum is less than or equal to j*k. You might be able to... |
Forum: Computer Science 32 Days Ago |
| Replies: 1 Views: 367 Is this where an instruction contains its addresses? For example, an instruction "0000 0001 0010" might mean "copy the value from register 1 into register 2", because "0000" means "copy", and "0001"... |
Forum: Computer Science 32 Days Ago |
| Replies: 2 Views: 371 |
Forum: Computer Science 32 Days Ago |
| Replies: 3 Views: 422 The Akra-Bazzi theorem ( http://en.wikipedia.org/wiki/Akra-Bazzi_method ) applies in this case because sqrt(n) is O(n/log(n)^2) so you can just use the Master theorem. So BestJewSinceJC's intuition... |
Forum: Computer Science 33 Days Ago |
| Replies: 1 Views: 440 It depends on what field you're in. If you even have a desire to ask the question, that's trouble for you. |
Forum: Computer Science 33 Days Ago |
| Replies: 6 Views: 484 At the very minimum, if this is an array of N-bit integers, we'll need 2N bits of state, because there's no way to represent two arbitrary N-bit integers with fewer than that amount of information. ... |
Forum: Computer Science Oct 31st, 2009 |
| Replies: 6 Views: 484 Let's say I can do it with no variables. |
Forum: Computer Science Oct 30th, 2009 |
| Replies: 1 Views: 336 What is your definition of "tree"? |
Forum: Computer Science Oct 27th, 2009 |
| Replies: 5 Views: 489 I have never heard the term "fabricated software." Sorry, I don't speak moron. |
Forum: Computer Science Oct 24th, 2009 |
| Replies: 4 Views: 418 Especially I would recommend the comp.graphics.algorithms faq. There's a book section in there. I have no idea whether the recommendations are good or not, but if you look at the reviews on Amazon... |
Forum: Computer Science Oct 24th, 2009 |
| Replies: 4 Views: 418 Generally speaking you use a graphics card for that... But if you want to implement them yourself, much of the good information is in textbooks. In general, search Google for "graphics algorithms"... |
Forum: Computer Science Oct 23rd, 2009 |
| Replies: 6 Views: 403 You just need a bunch of pictures of eyes with cataracts and without. Then write a classifier to classify the images. |
Forum: Computer Science Oct 22nd, 2009 |
| Replies: 4 Views: 544 Psh, Strong is nothing -- check out the names of Alan Grayson's children: http://grayson.house.gov/about/
I'm not in computer engineering. This is a computer science forum, which is a... |
Forum: Computer Science Oct 21st, 2009 |
| Replies: 2 Views: 498 Just write your "codes" in Python, test it that way, and tweak your syntax in arbitrary directions so that your code suddenly becomes "pseudo" code.
Thank you, and stop bothering me with your... |