New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 最小生成树:add Boruvka 算法 #1592
Conversation
空一行的话不过 lint bot,我当时给写死了只识别有四个空格的行.. 同理莫名其妙 lint 出来的反引号可能是由于中间空行没有前缀空格.. |
同好奇伪代码怎么写,看 paper 里写的五花八门,用了一万种字体 |
@Enter-tainer 1. 变量名用英文表示,省略声名与类型。 |
这组规范看着和 cpp 没啥大差别的样子? |
@Ir1d 我见过的伪代码,单表示赋值,就有五花八门的方法, |
@Ir1d 的确。但是,其实只要你能把 for(i=1;i<=n;i++)之类的写成 for i from 1 to n: 就很伪代码了 😂 |
所以typora和你家bot同源(确信 |
伪代码我来写好了..你们看看你们要不要写一写朴素 Prim,堆优化 Prim 需不需要保留。 |
@ouuan 都保留吧 |
docs/graph/mst.md
Outdated
@@ -235,11 +270,10 @@ for (i = 1; i <= n; i++) { | |||
|
|||
Kruskal 算法中的「集合」,能否进一步优化? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不是并查集的问题吗..怎么在 MST 讨论啊。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是我写的,您给润色润色QAQ
Co-Authored-By: ouuan <y___o___u@126.com>
Co-Authored-By: ouuan <y___o___u@126.com>
update mst
closes #1339
顺便,我觉得可以找时间声名一下伪代码的写法。。。个个声称伪代码写出来C++
改了一下代码的缩进
对于使用 ???note的格式,建议先空一行再缩进写note里的内容。这样typora就会把note里的内容当成代码。不然就会在奇怪的地方加三个反引号导致bug
审核的同学 请着重关注以下四方面: