会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Black-Panda's Blog
Where there is a will, there is a way!
博客园
首页
新随笔
联系
订阅
管理
2022年5月28日
【Black-Panda】LCA最近公共祖先
摘要: 1. 定义: LCA(Least Common Ancestors),即最近公共祖先,是指在有根树中,找出某两个结点 \(x\) 和 \(y\) 最近的公共祖先(深度最大的祖先),记为:\(LCA(x,y)\)。 举例: \(LCA(15,12)=4\) \(LCA(10,12)=10\) 图例:
阅读全文
posted @ 2022-05-28 17:04 Black--Panda
阅读(44)
评论(0)
推荐(0)
编辑
公告