n Alright. So if n is less than or equal to 1, return n. Well that's not right, right?
好吧,如果n小于等于1,它会返回,这里不对,是吧?
So another way to say that is, in a sense, if we're thinking about the excited state of a hydrogen atom, the first excited state, or the n equals 2 state, what we're saying is that it's actually bigger than the ground state, or the 1 s state of a hydrogen atom.
换句话说,如果我们激发一个氢原子,第一激发态或者说n等于2的态,我们说它比氢原子基态,或者说1s态要大。
So if n is greater than or equal to 1 and n is less than or equal to 3, let's just judge this thing a small number arbitrarily.
所以n大于等于1,并且n小于等于,我们武断的判定它为,一个小的数字。
So I'm not going to worry whether this item is a vase or a watch or painting I'm just going to say it's the n'th element.
所以我不用担心这个物品,是花瓶还是手表或者油画,我只要说这是第n个元素就好。
There's n = 2, but not independent or not necessarily independent.
即n等于,这两项资产不是或者不一定是相互独立的。
So,if you take number one--but we don't have to go through them all and I assure you we won't--if you take number one, the Ain,a-i-n,it's named after a river; or if you take number two,the Aisne,a-i-s-n-e, it's named after a river; and how many hundreds of thousands of people died along there in World War One or,you take number three,the same thing,Allier.
如果你看第一个省,我向你们保证,我们不用挨个了解,看第一个省,安省,a-i-n,来自一条河的名字,或是第二个埃纳省,a-i-s-n-e,来自于一条河的名字,有成千上万的人在这里死于,第一次世界大战,第三个,阿列省
When we talk about the n equals 2 state, we now have 2 squared or 4 degenerate same energy orbitals, and those are the 2 s orbital.
当考虑n等于2的态时,我们有2的平方,或者4个简并能量的轨道,它们是2s轨道。
So the take away is that if the user actually gives me two or three or four or whatever, this is this expression "is n less than 1" is going to evaluate to false if it's actually two or three or four or whatever.
所以先不管用户实际上给我,3,4还是其他数,这个表达式,“是否n小于1“将被评估为错误的,如果输入额是2,3,4或其它的数。
So that's the 1 s orbital - we have n squared or 1 degenerate orbitals.
所以这是1s轨道,我们有n平方,或者1个简并轨道。
to the n, every value in the 1 bit vector we looked at last time is either 0 or 1. So it's a binary n number of n bits, 2 to the n.
从2到n,我们上次看到的,位向量的每个值不是0就是,所以它是n,比特的二进制数,从2到。
So if N is not less than 2, that is I have two elements or more in which case there's definitely some sorting to be done.
因此如果N不小于2,也就是有2个或更多的元素,那当然是需要做排序的。
I could still do the linear case, which is order n or I could say, look, take the list, let's sort it and then search it. But in that case we said well to sort it was going to take n log n time, assuming I can do that.
我仍然可以做O的线性搜索,或者也可以以这个列表为例,我们先将其进行排序,然后再进行查找,但是在这种情况下,要花费n,log,n的时间去对其进行排序。
-- Else if n is greater than 4 and n is less than 6 -- 7 let's call it medium -- else if n is greater than or equal to 7, -- less than or equal to 10 -- let's call it "big" -- and if the user typed in zero or negative 10 or 20 or whatever, let's just use the all-inclusive else block and just say, "You picked an invalid number."
否则如果n大于4,并且n小于-,我们叫它为中间数--否则如果n大于等于,小于等于10--我们叫它为“大数“,如果用户键入了0或者-10或20或其它的,让我们用一个广泛的else子句,只需要说,“你选了一个非法的数字“
应用推荐