Java Brute Forcing Algorithm Optimization.

I’d like to say… :persecutioncomplex: :persecutioncomplex: :persecutioncomplex:
serious optimization going on

@Sammidysam:
I love optimizations and algorithms.
Thanks for the feedback man, unless you’re being a smart ass…
Makes me feel good to get some positive feedback regarding something I programmed :slight_smile:

(I’ve never used python so I can’t compare the two performance wyse)

Exactly. No recursion, and handles any length of string without adding an extra loop. Much more legible than the code you posted, and probably faster.

By the way, do you patronise everyone who tries to help you using the Socratic method?

EDIT: @pjt33:

I don’t really understand you mate.

It seems like you didn’t understand what I was posting.
So I posted some code, that didn’t help. :-
So I posted the whole code, that didn’t help. :-*
So I posted a in depth explanation. ::slight_smile:

And I get accused of patronizing lolz. :expressionless:

I’m sorry man, I wasn’t trying to be-little you if that’s how you took it.
You didn’t seem to understand it how the program was coming up with its computations… so I attempted to explain it to you.

I believe he was saying that my questions were Socratic method and that you saying “unless you’re being a smart ass” is patronizing those who use it (me, apparently). He was not saying that your explanations weren’t enough.

What I meant by unless you’re being a smart ass was:
I didn’t understand if your positive reply “Sammidysam” was filled with sarcasm etc, so i asked if it was.

I’m sorry, my reply was right below your reply I thought that was enough to signify it was @ you (Even responded to your remark).
Next time I’ll add @Username: before addressing someone with a remark so people don’t get confused XD
My baaad.

Actually never mind, I just read ptj33’s first post here and he was using the Socratic method. I interpreted it wrong. You understood his reply better than me and understood it completely.

Thanks sammidy.

Why does someone always have to start some shit on my threads :-* :-*
I said I was accepting code/algorithm criticism :point:, I’ll update my signature to inform people not to interpret me as an asshole I guess.

Either I am a smart ass… or these guys just love getting that post count up:

http://cdn.memegenerator.net/instances/400x/30385979.jpg

What people have addressed as being a errors so far:
Unnecessary object creation.
Unnecessary stored computations.
Using a StringBuffer/StringBuilder instead of using byte[]-s.

Thanks guys, any more performance improvements / code criticism feel free to post them :smiley:

I’m sorry. I didn’t understand the post and then responded to what I thought it meant when I didn’t know. I didn’t mean to ruin your thread at all. I’m really sorry.

@Sammidysam:
Oh no you’re fine mate.
Literally just about every legit thread I make someone accuses me of being a smart ass, or accuses me of involving ‘indirect criticism’.
All I do is post source code, rate games, publish games and help newbies on JGO.

None is intended guys, It’s the internet. :stuck_out_tongue:
Sorry for any confusion :expressionless:

For those wondering why certain threads spiral out of control, I’ll leave you with these words of wisdom:

The distribution of intelligence is fair, as everybody thinks they have more than enough.

I realized that may be one of my problems lol.
I tend to talk in a some what programming savvy way since JGO is programing related (As I assume many others do), maybe that’s where the ‘unintended sarcasm’ appears.

Anyhow, returning to the thread.
Feedback’s still welcome guys.

[quote]Why does someone always have to start some shit on my threads
[/quote]
The best way to stop this happening to your threads is to ignore them.