Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Actually do. Trying to implement DSU on the SPOJ Problem Herding. Get the basics of the algorithm, can't seem to convert it to a working code in c++
-
The idea behind algorithms isn't that complicated in itself. When you drive a car and want to change lane you
A) Look over your shoulder in the dead angle
B) Turn on the indicator lights
C) Change lane
Or sorting socks you can put all of them on a row. Then:
A) Pick up the first sock and compare it for a match with each from left to right until you find a match.
B) set the matching pair aside and start over with the new leftmost sock
C) Repeat until all socks have been matched
Sorting algorithms are interesting but the idea behind them tend to be hidden under endless oceans of math. Not to my liking. But computers dont know how to so squat by themselves so you have to think every little step of the way through. As humans we do most of it automatically and bridging that gap can be frustrating since it's such a frustrating experience that not even the most obvious thing gets done right by itself. -
@HellHammer Ah. I see you are not sucg a newbie after all. I think you can safely disregard my coment above :) Thought you were far more new.
-
@Elkstorm tl;dr do the algorithm by hand and break it into the smallest peaces that yi ucan think of and then implement each step. Lol
-
Same goes for me lol, just ignore my acknowledging of satisfying knowledge and pass on 😇
-
if you're in Mumbai, I'd like to find somebody to study algo with. Makes understanding easier if you have someone to explain it to. After seeing your question, I think I'm a complete noob. 😂
Related Rants
-
disco8Had a rough time. Dropped out of college twice. Got sent by a shrink to be tested for ADHD. Investigation drop...
-
ComradeEevee16About 2 months ago. My job fired half the dev staff including the only other web developer. I am a junior, and...
-
spky7Send me one Bitcoin, and I‘ll tell you how to get rich!
A newbie trying to understand Algorithms....suicide. No jokes here.
undefined
serious
genuine rant