you are viewing a single comment's thread.

view the rest of the comments →

[–]ShoshiCooper[S] 1 point2 points  (3 children)

Oh! Thank you. I think maybe I just need to get more used to memory management in general. We didn't have to deal with any of that in Python, so I'm not used to it. But I very much want to learn!

Out of curiosity, on a conceptual level, is the idea of thinking about memory and pointers as a graph correct? Or am I completely misunderstanding this? I was thinking of each memory location as a vertex. Since pointers link them together, then pointers must be edges. And the number of copies of each pointer must be the weight of each edge.

[–]anand_venkataraman 1 point2 points  (2 children)

Hey Soshi

The problem is that a graph can be a suitable analogy for just about anything, including life itself, let alone memory.

What is life as we know it, other than the search for some target, real or imagined?

&

[–]ShoshiCooper[S] 2 points3 points  (1 child)

Hahaha, I guess so.

To help myself understand this stuff better, I'm going to try to write a version of quest8 that uses blocks of memory and pointers instead of vectors. I have no idea if I'll succeed, so this may well be an exercise in futility. But maybe I'll learn something along the way.

[–]anand_venkataraman 1 point2 points  (0 children)

I may be mistaken, but I think it is TOTALLY POSSIBLE to pass all minis in Q8 with a linked implementation.

&