From 45e9fa5670298e63a975f151cf31c474cd37a383 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 8 Dec 2023 13:31:54 -0500 Subject: [PATCH] re-formatting the table --- lectures/25_garbage_collection/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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?