trying to bring these two algorithms to c but can\'t for the life of me understand how to do it
enter image description here
2nd part of the image is
en