Forum: Computer Science 1 Hour Ago |
| Replies: 1 Views: 48 http://en.wikipedia.org/wiki/Fibonacci_search_technique |
Forum: Computer Science 1 Hour Ago |
| Replies: 1 Views: 31 What kind of Lisp? Common Lisp? Use SLIME. Emacs Lisp? I guess not, because then you wouldn't need to ask. |
Forum: Computer Science 4 Days Ago |
| Replies: 7 Views: 242 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: Geeks' Lounge 4 Days Ago |
| Replies: 5 Views: 224 The compiler doesn't see their bodies. The functions are already compiled into a library. Lookup detailed descriptions of how compiling and linking works -- this is the sort of thing where... |
Forum: Geeks' Lounge 5 Days Ago |
| Replies: 25 Views: 893 Honestly you deserve to be stuck with Java. |
Forum: Computer Science 5 Days Ago |
| Replies: 8 Views: 414 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: Geeks' Lounge 7 Days Ago |
| Replies: 3 Views: 261 Don't use non-open source revision control systems. They're no good anymore. Use Mercurial. Don't use Subversion unless you have large binary files or the need to control permissions for... |
Forum: Computer Science 7 Days Ago |
| Replies: 8 Views: 414 Create a recursive formula for the time complexity and figure it out from there. |
Forum: Legacy and Other Languages 7 Days Ago |
| Replies: 3 Views: 461 Take the sum and multiply by the step size. It's that easy.
Or see Simpson's method.
Edit: Gah, of course you have to have fractional endpoints. So treat the first and last segments specially. |
Forum: Computer Science 8 Days Ago |
| Replies: 7 Views: 242 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 8 Days Ago |
| Replies: 5 Views: 307 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 8 Days Ago |
| Replies: 7 Views: 242 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: C# 8 Days Ago |
| Replies: 21 Views: 743 The real value of a forum like Daniweb is in how it helps the people who search for problems in the future. The needs of the OP are immaterial. |
Forum: Computer Science 8 Days Ago |
| Replies: 1 Views: 199 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 8 Days Ago |
| Replies: 2 Views: 254 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: C# 8 Days Ago |
| Replies: 21 Views: 743 The reason it exists is because somebody put it there. Supporting the marking of threads as solved is like supporting the death penalty: innocent people will get executed, and threads with bad... |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 25 Views: 893 The trouble with trying to argue with me is that you don't disagree with me about C++.
Edit: What you disagree with, apparently, is the practice of providing reasons for the things you say. |
Forum: Geeks' Lounge 9 Days Ago |
| Replies: 25 Views: 893 I don't care about you or your appeal to self-authority. I'm going to assume you don't know what you're talking about because most people don't.
And stop having a chip on your shoulder, and I was... |
Forum: Geeks' Lounge 9 Days Ago |
| Replies: 25 Views: 893 Here's a nice review by somebody I consider smart: http://scienceblogs.com/goodmath/2009/11/googles_new_language_go.php |
Forum: Computer Science 9 Days Ago |
| Replies: 4 Views: 351 Hey, you're right, it is easy for me. |
Forum: Legacy and Other Languages 9 Days Ago |
| Replies: 1 Views: 313 You need to tell us the error message and what line it's on, and you need to use CODE tags for us to want to look more closely. |
Forum: Computer Science 9 Days Ago |
| Replies: 8 Views: 414 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 9 Days Ago |
| Replies: 5 Views: 307 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: Geeks' Lounge 9 Days Ago |
| Replies: 25 Views: 893 I think that quote is referring to type safety. Not to mention monkey-patch safety. If you know how to use C++, it's a very safe language. C++ provides the best "resource safety" of any mainstream... |
Forum: C# 9 Days Ago |
| Replies: 21 Views: 743 I just don't want people to mark threads solved. |
Forum: DaniWeb Community Feedback 9 Days Ago |
| Replies: 22 Views: 918 That's just crazytalk.
See you on IRC. |
Forum: Computer Science 9 Days Ago |
| Replies: 8 Views: 414 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: C# 9 Days Ago |
| Replies: 21 Views: 743 Why do you get so butthurt when you see people with different worldviews than yours? |
Forum: Geeks' Lounge 10 Days Ago |
| Replies: 25 Views: 893 Well, I like it. In particular, slices, rather than pointer arithmetic, is simply The Right Thing.
I have been looking for a good safe systems programming language, and it seems like garbage... |
Forum: DaniWeb Community Feedback 10 Days Ago |
| Replies: 9 Views: 540 I just automatically downvote every one of your posts. It's like when a girl punches you -- it means she loves you. Except I'm not a girl. And I don't love you. You're the closest thing to serkan... |
Forum: Geeks' Lounge 10 Days Ago |
| Replies: 25 Views: 893 Well, since you're unwilling to think, I'm not going to do it for you. |
Forum: Geeks' Lounge 10 Days Ago |
| Replies: 20 Views: 1,097 You are popular the way Bill O'Reilly is popular. |
Forum: Computer Science 10 Days Ago |
| Replies: 1 Views: 239 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 10 Days Ago |
| Replies: 11 Views: 21,330 yeah
Why would you pay for something stupid? Maybe you are stupid :P |
Forum: C# 10 Days Ago |
| Replies: 21 Views: 743 Really, you and other people? Who would have thought?
No, it indicates that people think it no longer requires attention, but adds a presumption of the correctness of the answer -- and... |
Forum: Computer Science 10 Days Ago |
| Replies: 80 Views: 103,701 |
Forum: C# 11 Days Ago |
| Replies: 21 Views: 743 |
Forum: C++ 11 Days Ago |
| Replies: 1 Views: 122 Just remove a letter from the first string, print that letter, and do a recursive call. Of course, you'll want to do this for each letter. |
Forum: Computer Science 11 Days Ago |
| Replies: 4 Views: 317 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 11 Days Ago |
| Replies: 4 Views: 317 openssl is open source.
Uh... what do you want this for? |