Hi, I need help writing a subprogram that simulates garbage collection and compaction. If markbit is 1 node is in use and if 0 then it is returned to storage pool for reuse..Given list pointed by GCC change it so that markbits with 0 are in contiguous block of nodes and with 1s in contiguous block of nodes.Delete block of nodes containing markbit 0.
I'm asked to implement using singlylinklist if possible.