Of course the algorithm will do what it wants but here are some things I do when editing that have helped retain viewers for the whole video.