今天继续搞毕设, 由于我设计的算法比随机算法居然还差, 我决定暂时搁置这一部分的代码工作, 转而研究另外一个棘手的问题。
另外, 在下午, 保证哥哥问了我这样一个问题:
给定一段代码, 如何快速地计算出它的所有执行路径数。不考虑循环, 仅在函数内进行分析。一个例子: function (...) { if (...) { if (...) { return; } if (...) { return; } } }
给定一段代码, 如何快速地计算出它的所有执行路径数。不考虑循环, 仅在函数内进行分析。
一个例子:
function (...) { if (...) { if (...) { return; } if (...) { return; } } }
注意 - 你可以用以下 HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
昵称
邮箱
网址
Δ
bug RISC-V 业务 今日 优化 作业 修 修改 写 准备 博士 又是 吃 复习 大觉 学习 完成 实验 开始 快乐 总结 惊悚 报告 撰写 改 数学 旅游 期中 期末 材料 测试 物理 睡大觉 睡觉 系统 组会 统练 继续 网络 考试 英国 英语 论文 还是 阅读
发表评论