6

A newbie trying to understand Algorithms....suicide. No jokes here.

Comments
  • 1
    Need help?
  • 0
    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++
  • 3
    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.
  • 1
    @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.
  • 1
    @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
  • 0
    Same goes for me lol, just ignore my acknowledging of satisfying knowledge and pass on 😇
  • 1
    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. 😂
  • 0
    I am in Delhi mate. However, we can meet up for skype calls on alternate days.
Add Comment