What happens during knee replacement surgery?

During knee replacement surgery, either the whole of the joint is replaced, known as a total knee replacement (TKR) or, in some cases, only one half, which is known as a unicompartmental knee replacement (UKR).