In the context of memory management, what are placement and replacement algorithms?