1,684 Posted Topics
Re: Wow, some people here sure don't like the idea of innocent until proven guilty. | |
Re: [QUOTE=sknake;1044348]I suspect if this were looked in to you would find Rashakil Fol behind it.[/QUOTE] That's just crazytalk. See you on IRC. | |
Re: Taywin is basically incredibly confused. If your algorithm does n^2/2 + n/2 operations then its running time is Theta(n^2). As a general rule the polynomial a*n^k + b*n^(k-1) + ... + c*n^0 is Theta(n^k). In particular, (1/2)*(n^2) <= n^2/2 + n/2 <= n^2, for all n >= 1. (Can you … | |
Re: There are some HTML parsing libraries in some languages but really it's trivially easy to write your own sufficiently good algorithm to play the game. Edit: One easy way to do it might be Greasemonkey (or some old version of Greasemonkey if they've locked down the security a bit). This … | |
Re: Take some Ritalin and use C++, or just freaking use C#. You can use C++ (or objective-C++ with minimal touching of objective-c stuff) for iPhone apps. | |
Re: [QUOTE=mr_ewe;1042910]this is stupid... :([/QUOTE] yeah [QUOTE=mr_ewe]why did i pay for this? :([/QUOTE] Why would you pay for something stupid? Maybe you are stupid :P | |
Re: [QUOTE=dhani09;1675197]I'm so confused on how to calculate the running time of an algorithm. i've searched online but i can't seem to understand any of the explanations hence my question: how do you calculate the running time of any algorithm?[/QUOTE] You count how many primitive operations it takes (as a function … | |
Re: A general understanding of trees and caching associative operations in their internal nodes will never go out of style. | |
Re: programming and "software engineering" are the same thing. If your school is offering a "programming" curriculum that is not called software engineering and is not called computer science, while offering a "software engineering" curriculum too, then I have to say, WTF? There is actually no such thing as "software engineering," … | |
Re: How many patients will it take to remove the stand, exactly? | |
Re: You have a stack overflow, because your algorithm is hitting an O(n^2) case. You can solve this by recursing into the smaller subproblem and then tail-recursing (i.e. looping, updating variables and jumping to the top of the function) for the larger subproblem. | |
Re: You crossposted this thread in the Geek's Lounge. Considering how stupid that is, you're probably not smart or tactful enough for this field. | |
Re: Hashing functions have absolutely nothing to do with the problem you're trying to solve. Your question is completely ridiculous or else you've paraphrased it incorrectly. | |
Re: You'll need to use map or write a recursive function that is like map. Note that your output requires O(n^2) work to construct, which means you'll need an O(n^2) algorithm here, not one of these obviously-O(n) algorithms. | |
Re: That depends on how your program is written. Does it take the file name as a command line parameter? Does it read the file as standard input? It depends. | |
Re: You crossposted this question in the IT Professional's Lounge. Considering how strongly patience correlates with success, your goals are probably unrealistic. It won't take anywhere near 10 years to learn several different programming languages. It takes about a day for an experienced programmer to learn a reasonable programming language. If … | |
Re: I can agree that any book by Strang is good, but I don't think a linear algebra book is the right choice. I say this because I actually had one before going to college -- it was similar in scope to your recommendation, and it didn't serve me very well. … | |
Re: The distinction between CS and software engineering programs varies on a school-by-school basis and can be discerned by looking at the course descriptions. The main difference in curriculum is usually that software engineering programs omit important classes (if you want to be good at programming) and instead spend time teaching … | |
Re: [QUOTE=sirlink99;1628345]It will soon be time for me to choose where to go to post secondary. I am wondering what schools people suggest preferrably in Ontario, Canada. I plan to go for Software/Video Game development/programming (because of my lack of artistic ability), Web Development, and Mobile development. I will accept any … | |
Re: Generally speaking, I think things would be improved with a normal font size, better contrast for all text, and for buttons. Using black instead of gray would help. With all the gray, low-contrast colors and such, the site seems to be a bit of a ghost town. | |
Re: Well in your case, the number of times you call rev is equal to the number of leaves and non-leaf nodes in your tree. And each call to rev results in a constant amount of work, independent of child calls. So the running time here is going to be proportional … | |
Re: I'd be willing to help you by email for $300/hr, 1 hour minimum. My email's in my profile. | |
Re: [QUOTE=jwenting;313013]no, endl should be the standard way to do things. \n is not portable, it's a throwback to C.[/QUOTE] How is \n not portable? | |
Re: You need to make a helper function, analogous to identifierOrKeyword, that scans past the first newline in the string. The span or break functions might come in handy. | |
Re: [QUOTE=Joe Shmoe]I had to write a triply nested recursive algorithm to draw squares on the screen.[/QUOTE] By "triply nested recursive algorithm", I take it you refer to a function which calls itself in three places. [QUOTE=Joe Shmoe] Your probably thinking how hard could it possibly be to just draw squares … | |
Re: My suggested title is: "Energy-Efficient Clouds of Mobile Computers With No Concern For Security Issues" | |
Re: PHP is obviously better because the security holes and developer incompetence make life more interesting. | |
Re: [QUOTE=stereomatching]Currently I am studying multi-thread, and I feel pretty confusion about the concept of blocking, non-blocking, synchronous and asynchronous. Exactly, there are so many explanations, and each of them have something differents, someone says synchronous could be non-blocking too, someone says synchronous must be blocking.Someone says asynchronous must be non-blocking, … | |
Re: Are you compiling with optimizations on? Maybe you shouldn't evaluate sqrt(j) every time through the for loop. That sounds like something an optimizer might catch, but even then you're converting i from int to double every round of the loop. You could use a better prime testing algorithm. Miller-Rabin would … | |
Re: [QUOTE=Momerath] There is no restriction that the numbers must be integers for question 1. Proof please.[/QUOTE] That's the definition of "negative". FFS what did you think negative meant? [quote=Momerath]This is just wrong. If it were true then [B]i[/B] would equal 1 or -1.[/QUOTE] Instead of talking about stuff you don't … | |
Re: Unless there's some atypical definition of dot product, you can't take the dot product of two matrices, or of a matrix and a vector. | |
Re: You need to get libgtk-dev or whatever the appropriate -dev package is called. | |
Re: [QUOTE=skatamatic;1647533]I don't even know how to make a 'Hello World' app in java, and I make more money with a 2 year technologist diploma writing in C#, VB.Net and VB6 than a Mechanical Engineer with 7 years experience and a nearly complete masters degree that also works for my company.[/QUOTE] … | |
Re: If it's supposed to be impossible for a value to be null, don't check if it's null. But if it's possible and all you want to do is exit the function, either way is fine. Do what you want. | |
Re: When Python is installed correctly, Python files should execute just like any other file -- it's just a matter of registering the file extension. It's the same situation as Java. | |
Re: Yeah, there's a way. Learn C++ and then use Webkit. | |
Re: I guess that means you should input to an int and then check the range of the int and then copy the int to the enum type variable. | |
Re: People who start flamefests like these deserve the death penalty. | |
Re: No. By the way, wtf is up with the advertisement in this thread? "Trying to Encrypt Your DB with MD5? ******* already does it. Try now!" WTF. Edit: But you can surely find one. Since you're talking about a hash that outputs 32 characters (in hexadecimal, which presumably is what … | |
Re: 1. I'm not telling you my name. My job is "Systems Engineer" but "Software Engineer" or "Software Developer" or "Computer Programmer" would also fit. 2. Every day. 3. Not very important, because usually it's code comments and IRC messages, which is far less important than the actual code. Discussions are … | |
Re: [B]Logic - 1[/B] Put 34 gold coins in one bag, and put 66 gold coins and two pennies in the other. Or, put fifty coins in one bag, fifty in the other, and then put one bag inside the other. [B]Logic - 2[/B] This doesn't count as a logic puzzle. … | |
| |
Re: ??? is an invalid trigraph. | |
| |
Re: Python, Ruby. Now, these aren't "uber high-level" (I would put Haskell, Scala in that category, and they have a large learning curve), they're just normal useful languages. | |
Re: Ask your programming team and use whatever they tell you to use. You shouldn't take advice from random noobs on a forum with an axe to grind. | |
Re: Uh, it looks like some people here don't realize that programming certifications and degrees are meaningless. Edit: Well they have meaning, in that if you know somebody's certified, you know that somebody is much more likely to be a bad programmer. |
The End.