Task: Text Simplification
Input (English): In a computer operating system that uses paging for virtual memory management , page replacement algorithms decide which memory pages to page out , sometimes called swap out , or write to disk , when a page of memory needs to be allocated .
Output (English): A Page replacement algorithm is an algorithm that decides which pages should be written to disk or file , when a new page needs to be allocated .