写出右边稀疏矩阵的三元组顺序表和三元组单链表A5x6元 0 0 11 0 17 0 0 50 7 0 0 0 0 0 0 0 67 0 19 0 6 0 0 0 0 0 10 0 0 0
时间: 2024-01-04 16:03:34 浏览: 41
稀疏矩阵三元组表的矩阵运算与Python实现
三元组顺序表:
| 行下标 | 列下标 | 值 |
| ------ | ------ | ----- |
| 0 | 2 | 11 |
| 0 | 4 | 17 |
| 1 | 0 | 50 |
| 1 | 1 | 7 |
| 2 | 4 | 67 |
| 2 | 6 | 19 |
| 3 | 2 | 6 |
| 4 | 2 | 10 |
三元组单链表:
[(0, 2, 11), (0, 4, 17), (1, 0, 50), (1, 1, 7), (2, 4, 67), (2, 6, 19), (3, 2, 6), (4, 2, 10)]
阅读全文