The problem is, I want to know if, in fact, I've got something that's not of the form I expect.
问题是,我希望知道如果输入的。
What's the complexity of this decision tree solution? Well, in the worst case, we're enumerating every possibility of in and out.
决策树解决方法的复杂度是多少?,在最糟的例子中得列举,所有可能的输入和输出。
So in general, when you're running command line programs, they can take input or arguments or parameters or switches or flags.
一般而言,当你运行命令行程序时,可以把把这些当做输入,像什么参数啊,或开关啊,或标志啊等等。
This we did set up a number of vehicles for peered appeal exchange and peered export exchange.
我们利用多种手段进行,同伴之间信息输入交流,信息输出交流。
Then, they take that amount and they go over and they type that amount into the credit card terminal.
然后他们拿走了那些钱,检查一下,然后把数额输入信用卡终端机。
If we have a higher z effective, it's pulled in tighter, we have to put in more energy in order to eject an electron, so it turns out that that's why case 2 is actually the lowest energy that we need to put in.
而如果有效核电量更高,原子核的束缚也就更紧,我们不得不输入更多的能量来打出一个电子,这就是第二种情况,所需要输入的,能量更少的原因。
So, this is what goes on in an electrolysis cell, and it works thanks to input energy from a power supply shown here.
所以,这是在一个电化学电池中发生的,它是靠输入的能量工作的,从和这个类似的电源输出的能量。
Touch, voice, natural language input, Smart Phones, Smart PC's, Smart TV's.
触屏,声音,自然语言的输入,智能手机,智能个人电脑,智能电视。
All right, those pieces of code inherently involved something that does depend on the size of the input, or on the particular input.
好,这些代码,肯定会涉及到一些,与输入的大小相关的东西,或者说与特定输入相关。
These things run for variable amounts of time because they take input, a list of size of some amount.
而这一段的执行时间是可变的,因为它们需要输入一个包含一些元素的列表。
By putting it in a function bug if I find a bug and I change my program I can just run the function again.
把我输入的值放到一个函数里,如果以后我在程序中发现了一个,并对程序进行更改的话,我可以直接。
It could be, preconditions I want to have on input It could be, explanations of specific things you're doing.
也可以是我对输入的预期是什么,也可以是,对代码,正在进行的特定操作的解释。
if I could type, in order to just to get into that, in order to get into the habit.
如果我可以输入,为了不在这里陷入,为了养成这个习惯。
Now, if I've asked the user for a string and then a moment later I ask the user for another string, well, they're going to end up in different locations in memory just by nature of get string.
现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。
Train schedule, you will be prompted by the newer boxes from where to where.
列车时间表,一个新搜索框会提示你,输入起点与终点。
Suppose you could build a circuit with the following property: the input to this circuit would be any other circuit diagram.
假设你能用如下物品,建立起一个线路:,这个线路的输入设备,可以是任意一个其他线路的流程。
Over all possible inputs to this function, what's the fastest it runs? The fewest, so the minimum, if you like.
哪个输入程序运行的最快?,用的时间最少?如果你喜欢的话,这个方法看起来不错。
That's why your operating systems and your personal computers often crash for no apparent reason. Just because two things happen to, once in a while, occur at the same time.
这就是为什么你的电脑或者操作系统,经常会毫无预兆的崩溃了,这是因为两件事情正好同时发生了,通常还有人工输入。
You put some inputs in, it has a contract that says if you put the right kind of inputs in you'll get a specific output coming out, but you don't have to know what's inside of that box.
你可以将输入一些内容,它相当于一个条件合约,如果你的输入是正确的,你就能得到特定的输出,但是你不知道盒子里面有些什么。
But if it is not, it's going to print out a message here saying, you screwed up, somewhat politely, and it's going to go back around. So it'll just cycle until I get something of the right type.
但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。
OK, says it says enter a float. I give it something that can be converted into a float, it says fine. I'm going to go back and run it again though. If I run it again, it says enter a float.
好了,看到他说输入一个浮点数,我输入它可以转换为浮点数的值,那没问题,我回过来再运行一遍,如果我再运行一遍。
bug What I typically do is I start with the input that provoked the problem, and I keep making it smaller and smaller.
我这里做的就是从引起,出现的输入开始,然后将输入,一步步的缩小规模。
We want you to have a sense of why some programs complete almost before you're done typing it.
一些程序你输入进去它,就能给出结果而另外一些,却要整夜整夜的跑。
What does it do? It has height, it says, I've got two names of things: the request message and the error message.
那它是用来干嘛的呢?,它声明了包含两个对象:,要求输入的信息和输入类型错误信息。
That is the address in memory in the heap of the first byte that the user typed in.
那是用户输入的字符串第一个字节,内存中堆的地址。
Another way of saying it is, if I, for example, 10 increase the size of the input by 10 10 the amount of time increases by 10.
另一种说法就是,例如,我把输入的规模增加0,解决花费的时间也会增加。
And then, if I want to find out if something's there, I do the same thing. But notice now, hash is converting the input into an integer.
然后,我想查找出某些元素是否在列表中,我做同样的事,但是现在注意,哈希是将输入转化成一个整数,所以,其思想是什么?
But it turns out that because the Standard I/O Library is -lstdio so common they don't force people to type this all day long because it's just so commonly used.
由于大家都会用到标准输入输出库,因此我们不要求每次都在后面添上,可以省略。
But if I say turn this into a float, ah it throws a value error exception.
它就会抛出一个值错误异常了,它会告诉我输入了一种错误的值。
应用推荐