Tree and Association List

Asked 2 years ago, Updated 2 years ago, 95 views

Hello! Can you give me one or two examples that cannot be implemented using the tree data structure and can only be implemented as a connection list?(Whatever it is, it doesn't matter!)

data-structure

2022-09-22 19:23

1 Answers

First, let's compare the tree and the link list.

The function that can only be used in the connection list is fast on the connection list, right?

Then, an algorithm that only inserts and deletes a lot will need a connection list.

For example, Joseph's problem. (But this problem needs to be implemented in an annular list that's a little more difficult to implement.))


2022-09-22 19:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.