Implementing a binary heap using a linked list [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Linked list implementation of Binary Min Heap (Having trouble with manipulation…) Greetings, I'm having trouble figuring out an algorithm that will give me the location of a tree node in a linked list implementation of a binary heap. I've implemented a heap using arrays now I want to try using a linked list; Is there a way to find the tree node whose array index would have been i had I used an array to represent