画出广义表Y=((a,(b,c)),(),d,(e,f,g))头尾链表结构图和扩展链表结构图。给我发个网址以显示图片
时间: 2023-06-17 14:09:04 浏览: 129
这是一个广义表Y=((a,(b,c)),(),d,(e,f,g))的头尾链表结构图:
```
+---+ +---+ +---+ +---+ +---+ +---+
| Y | -> | | -> | | -> | | -> | | -> | |
+---+ +---+ +---+ +---+ +---+ +---+
| | | |
V V V V
+---+ +---+ +---+ +---+ +---+
| a | -> | | -> (1) | b | -> | c | -> | |
+---+ +---+ +---+ +---+ +---+
(2)
+---+ +---+ +---+ +---+ +---+ +---+
(3) | | -> | | -> | d | -> | | -> | | -> | |
+---+ +---+ +---+ +---+ +---+ +---+
| | |
V V V
+---+ +---+ +---+
| e | -> | f | -> | g |
+---+ +---+ +---+
```
这是相同广义表的扩展链表结构图:
```
+---+ +----------------+ +---+ +---+ +---+ +---+
| Y | -> | ( | a | ( | b | -> | c | ) | ) | | -> | d | -> | ( | e | -> | f | -> | g | ) |
+---+ +----------------+ +---+ +---+ +---+ +---+
```
你可以使用网址 https://www.processon.com/view/link/5f1f0563e401fd4a3d7a8e8a 来查看图片。
阅读全文