1,684 Posted Topics

Member Avatar for GrimJack

Wow, some people here sure don't like the idea of innocent until proven guilty.

Member Avatar for pseudorandom21
0
468
Member Avatar for biks23
Member Avatar for sknake

[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.

Member Avatar for pseudorandom21
2
964
Member Avatar for joehms22

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 …

Member Avatar for joehms22
0
454
Member Avatar for baldwindc

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 …

Member Avatar for Rashakil Fol
0
168
Member Avatar for raseru

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.

Member Avatar for tiger86
0
292
Member Avatar for egoleo

[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

Member Avatar for rubberman
0
760
Member Avatar for dhani09

[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 …

Member Avatar for JeffGrigg
0
128
Member Avatar for chiiqui

A general understanding of trees and caching associative operations in their internal nodes will never go out of style.

Member Avatar for JeffGrigg
0
235
Member Avatar for pyro 214

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," …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for MichaelDrew
Member Avatar for fox196

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.

Member Avatar for raptr_dflo
0
1K
Member Avatar for ryan92

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.

Member Avatar for Smeagel13
0
155
Member Avatar for blackrobe

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.

Member Avatar for Taywin
0
542
Member Avatar for danethepain83

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.

Member Avatar for danethepain83
0
2K
Member Avatar for ckwolfe

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.

Member Avatar for ckwolfe
0
131
Member Avatar for ryan92

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 …

Member Avatar for Rashakil Fol
0
65
Member Avatar for Maxipak

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. …

Member Avatar for Chrishas
1
268
Member Avatar for sirlink99

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 …

Member Avatar for Netcode
0
313
Member Avatar for sirlink99

[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 …

Member Avatar for sirlink99
0
223
Member Avatar for Dani

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.

Member Avatar for happygeek
0
1K
Member Avatar for nathanhaigh

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 …

Member Avatar for Mavericks
0
421
Member Avatar for moosworksinc

I'd be willing to help you by email for $300/hr, 1 hour minimum. My email's in my profile.

Member Avatar for sergent
0
198
Member Avatar for fesago90

[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?

Member Avatar for seanwalsh1984
0
574
Member Avatar for ckwolfe

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.

Member Avatar for Rashakil Fol
0
394
Member Avatar for asif49

[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 …

Member Avatar for Rashakil Fol
0
591
Member Avatar for Ritesh_4

My suggested title is: "Energy-Efficient Clouds of Mobile Computers With No Concern For Security Issues"

Member Avatar for ChrisHunter
0
231
Member Avatar for Ravi tiwari

PHP is obviously better because the security holes and developer incompetence make life more interesting.

Member Avatar for Tofayel
0
182
Member Avatar for stereomatching

[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, …

Member Avatar for Taywin
0
1K
Member Avatar for vidit_X

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 …

Member Avatar for Rashakil Fol
0
158
Member Avatar for lynn21

[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 …

Member Avatar for TrustyTony
0
240
Member Avatar for lynn21

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.

Member Avatar for Rashakil Fol
0
138
Member Avatar for guvengunes

You need to get libgtk-dev or whatever the appropriate -dev package is called.

Member Avatar for Rashakil Fol
0
186
Member Avatar for himanshu091

[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] …

Member Avatar for Netcode
0
221
Member Avatar for earlybirdsean
Member Avatar for bondo

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.

Member Avatar for Narue
0
194
Member Avatar for Micko

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.

Member Avatar for darkside2205
0
327
Member Avatar for C_Hickman
Member Avatar for crapgarden

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.

Member Avatar for ashishseo
0
209
Member Avatar for Roxsy3392
Member Avatar for jwenting
0
2K
Member Avatar for Pytho

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 …

Member Avatar for Momerath
0
676
Member Avatar for anirudh33

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 …

Member Avatar for anirudh33
0
250
Member Avatar for Josh048

[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. …

Member Avatar for happygeek
0
338
Member Avatar for ChaseRLewis
Member Avatar for silvercats
Member Avatar for aiwasen
Member Avatar for farhanrocks
Member Avatar for pseudorandom21

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.

Member Avatar for TheNNS
0
224
Member Avatar for mexabet

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.

Member Avatar for JeffGrigg
0
297
Member Avatar for Panathinaikos22

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.

Member Avatar for Rashakil Fol
0
195

The End.