I am going through heap sort chapter of the Cormen's algorithm book but got stuck in understanding below statements:
On most computers, the LEFT procedure can compute 2i in one instruction by simply shifting the binary representation of i left by one bit position.
Similarly, the RIGHT procedure can quickly compute 2i+1 by shifting the binary representation of i left by one bit position and then adding in a 1 as the low-order bit. The PARENT procedure can compute [i/2] by shifting i right one bit position. Good implementations of heapsort often implement these procedures as “macros” or “inline” procedures.
What is the LEFT procedure here, and how the calculation is done.
Similarly how it is calculated for RIGHT procedure & PARENT.
What it means that the procedures are implemented using macros or inline procedures.
From so many people I came to know this is the best book to learn algorithms but I am not able understand what the author is trying to explain here.