diff --git a/lectures/25_garbage_collection/README.md b/lectures/25_garbage_collection/README.md index efd3883..21c6eb1 100644 --- a/lectures/25_garbage_collection/README.md +++ b/lectures/25_garbage_collection/README.md @@ -63,6 +63,7 @@ c = NULL; - For simplicity, we’ll assume that the program uses only one variable, root, through which it accesses all of the data. Draw the box-and-pointer diagram for the data accessible from root = 105. + + +| Address | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | +|---------|-----|-----|-----|-----|-----|-----|-----|-----| +| Value | a | b | c | d | e | f | g | h | +| Left | 0 | 0 | 100 | 100 | 0 | 102 | 105 | 104 | +| Right | 0 | 100 | 103 | 0 | 105 | 106 | 0 | 0 | - What memory is garbage?