I did a lot to study algorithms and data structures myself, and I found that reading pseudo-code is one of the most difficult ways to find out how an algorithm or data structure works. In my experience, the best way to understand the algorithm is to get high-level intuition behind it. What is the key information that drives the algorithm? At a high level, what is he trying to do? Once you know this, it will be much easier for you to understand the algorithm.
As a good example, try finding pseudo-code for Dijkstra's algorithm or mahogany / ebony. Even the best pseudo-code is extremely difficult to understand, because the pseudo-code does not distinguish between the key idea of ββthe algorithm, specific optimizations designed to improve performance, and nut-bolts-pointer-gymnastics. However, if you understand where these algorithms come from - for Dijkstra the idea is to maintain a slowly growing set of points that you know the distance to; for mahogany / ebony, you encode the 2-3-4 tree as a binary tree - then it is much easier to read the pseudo-code, because you know what corresponds to each part of what you read.
So do not despair - reading pseudocode is hard! My recommendation is to find a good explanation explaining what you are reading. If you will have much less time.
Good luck
source share