chapter_graph/graph/ #304
Replies: 18 comments 30 replies
-
图和堆有点没太看懂 |
Beta Was this translation helpful? Give feedback.
-
麻烦问下 |
Beta Was this translation helpful? Give feedback.
-
大佬 |
Beta Was this translation helpful? Give feedback.
-
K神后面有没有打算做关于深度学习入门的内容呀,之前看图神经网络的时候还没有接触过图,现在看您的文章之后感觉清晰了许多。看到图的应用那里,就联想到推荐系统 |
Beta Was this translation helpful? Give feedback.
-
图的经典应用还有流程,比如用有向无环图DAG表示一个流 |
Beta Was this translation helpful? Give feedback.
-
有些题目比如 200. 岛屿数量 https://leetcode.cn/problems/number-of-islands/ |
Beta Was this translation helpful? Give feedback.
-
临接表实现也有点麻烦,一个顶点里每个临接关系都要有一个链表节点来表示,如果边很多的话占的空间也不少 |
Beta Was this translation helpful? Give feedback.
-
感觉微信好友算有向图吧,你删除他后,你找不到他,但他还能点击到你的页面找到你,而qq是同时删除的 |
Beta Was this translation helpful? Give feedback.
-
提问:本文中说可以将邻接表(链表)转换为树以提高时间效率,但是之前章节中之所以可以将其转换为树是因为可以根据链表上的值进行排序,根据大小来确定方向。但是对于这个案例中,只有节点的序号,并不能作为排序依据(或者说是二叉树方向选择的依据),那么是如何将链表结构转换为树结构来提高效率的呢? |
Beta Was this translation helpful? Give feedback.
-
感谢开源教程~ |
Beta Was this translation helpful? Give feedback.
-
希望添加链式前向星的内容 |
Beta Was this translation helpful? Give feedback.
-
作者大大,关于邻接矩阵的时间复杂度,为什么都是o(1) 。矩阵可以理解成是二维数组,查改是o(1)能理解,节点被映射为数组索引的话,可以直接arr[节点索引][目标节点索引],增删的话,不是要对所有节点进行增删么,为啥不是o(n)呀 |
Beta Was this translation helpful? Give feedback.
-
链表转换为哈希表降低时间复杂度,但是哈希表可能还涉及拉链法或者树化,这波套起来了😂 |
Beta Was this translation helpful? Give feedback.
-
希望可以添加邻接多重表和十字链表的表示法,这俩难度挺大的,我一直没搞明白 |
Beta Was this translation helpful? Give feedback.
-
2024.5.5打卡新的一章 |
Beta Was this translation helpful? Give feedback.
-
这里图的应用其实可以单独拿出讲,有最小生成树,最短路径,拓扑排序,最短路径等,都是重难点. |
Beta Was this translation helpful? Give feedback.
-
邻接矩阵的图是不是错了 |
Beta Was this translation helpful? Give feedback.
-
chapter_graph/graph/
一本动画图解、能运行、可提问的数据结构与算法入门书
https://www.hello-algo.com/chapter_graph/graph/
Beta Was this translation helpful? Give feedback.
All reactions