The base case (what to do if the function's parameter is zero) is much easier.
基线条件(当函数参数为零时作何处理)十分简单。
This serves as a useful base case, similar to a base Visitor class in the classic Visitor pattern.
这将作为一种有用的基本用例,类似于经典访问者模式中的基本Visitor类。
The only way to go about exploring the template is to define a recursive version of the same along with a base case.
探索模板的惟一方法是定义同样的递归版本以及基本案例。
Notice how like our recursive programs, the definition of a linked list also contains a base case -- in this case, the NULL pointer.
注意,与我们的递归程序非常类似,链表的定义也包括一个基线条件 ——在这里是NULL指针。
We call that a base case. It's basically the simplest possible solution to the problem.
我们说这是一个基础案例,这是这个问题最简单的解决方案。
If you have this so-called base case, can we actually get to a definitive answer eventually?
如果有了这个所谓的基本条件,那我们最终,能得到一个明确的答案吗?
I am using the urban snow scene that I posted a few months back as the base case for this tutorial.
我现在将以我几个月以前发表的一张雪景为例来开始我的教程。
A recursion that doesn't have a base case, or never reaches it. Eventually, an infinite recursion causes a runtime error.
无穷递归:一个没有基准条件的递归,或者永远无法达到基准条件的递归。一般无穷递归总会引起运行错误。
"I can say that our base case is certainly not a recession," IMF First Deputy Managing Director John Lipsky told CNBC television.
“我可以说,我们的基本情况肯定不是衰退”,国际货币基金组织第一副总裁约翰·利普斯基是这样告诉CNBC电视台。
Notice how like our recursive programs, the definition of a linked list also contains a base case — in this case, the NULL pointer.
注意,与我们的递归程序非常类似,链表的定义也包括一个基线条件——在这里是NULL指针。
However, we can be certain that if the program doesn't hit the first base case it will at least hit the second one when it gets to the end of the list.
不过,我们可以断言,如果程序不能达到第一个基线条件,那么当它到达列表末尾时至少能达到第二个基线条件。
Since a NULL pointer terminates a list, we can also use the NULL pointer condition as a base case for many of our recursive functions on linked lists.
由于NULL指针会结束一个链表,所以我们也可以使用 NULL 指针条件作为基于链表的很多递归程序的基线条件。
However, since the base case doesn't call any other functions, you don't need to load the link register from the stack frame — the value is still there.
但由于基线条件并不调用任何其他函数,所以无需从堆栈框架加载链接寄存器——值还在原处。
For Strategy 4, the base case is a program that takes command line parameters and USES files and databases as specified in the command line parameters.
对策略4而言,其基本例子是一个可接受命令行参数的程序,并根据命令行参数所指定的内容使用文件和数据库。
The computation results of the summer-peak base case of a practical 2243 nodes transmission system demonstrates that this method is feasible and effective.
并对某2243个节点系统夏季峰荷运行方式下的3个双边合同进行了实例计算,验证了方法的可行性和有效性。
We also present some new solving strategy for the key techniques used in CBR, such as the organization and query mechanics of case base, case adoption and re design of case etc.
对实例库的组织与检索、实例的改编与再设计等实例推理中的关键技术,提出了新的求解策略。
Then obtain base-case, best-case, and worst-case NPV and calculate mean NPV and standard deviation to (roughly) estimate the magnitude of the risk inherent to the project.
然后得出基本情况,最好情况,最差情况下的净现值,再计算平均净现值和标准偏差,(粗略地)估计该项目的内部固有风险的大小。
Then obtain base-case, best-case, and worst-case NPV and calculate mean NPV and standard deviation to (roughly) estimate the magnitude of the risk inherent to the project.
然后得出基本情况,最好情况,最差情况下的净现值,再计算平均净现值和标准偏差,(粗略地)估计该项目的内部固有风险的大小。
应用推荐