algorithm - I can't understand Pseudocode -


i want know how can improve understanding of algorithms? mean, if algorithm explained, able understand it. when read pseudocode of same algorithm, don't understand. like, have read shell sort, understand process , working of technique, when read it's pseudocode, don't understand why each specific step being taken? happens other algorithms too. there problem level of intelligence, or frequent problem? please help.

i've done lot of self-studying on algorithms , data structures , i've found reading pseudocode 1 of hardest ways learn how algorithm or data structure works. in experience, best way understand algorithm high-level intuition behind it. what's key insight drives algorithm? @ high level, trying do? once know that, you'll have much easier time understanding algorithm.

as example of this, try looking pseudocode dijkstra's algorithm or red/black tree. best pseudocode extremely hard understand because pseudocode doesn't make distinction between key idea behind algorithm, specific optimizations designed improve performance, , nuts-and-bolts pointer gymnastics. however, if understand algorithms come - dijkstra, idea maintain slowly-growing set of points know distance to; red/black tree, you're encoding 2-3-4 tree binary tree - it's easier read pseudocode because know each part of you're reading corresponds to.

so don't despair - reading pseudocode hard! recommendation find explanation guiding through you're reading. you'll have easier time if do.

good luck!


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -