position similar to the discussion in section to perform this operationwe link the two neighbors of to refer to one another as new neighbors--linking out note that after is linked outno nodes will be pointing to phencethe garbage collector can reclaim the space for this algorithm is given in code fragment and is illustrated in figure recalling our use of header and trailer sentinelsnote that this algorithm works even if is the firstlastor only real position in the list code fragment removing an element stored at position in linked list figure removing the object stored at the position for "pvd"(abefore the removal(blinking out the old node(cafter the removal (and garbage collection