can any one tell me what are placement and replacement algorithm in detail?