Acturpt
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




"Each software begins from version 1.0,and it updates.But with the publishment of version 0,the updation comes to an end,I mean,won't update anymore,never ever and forever,just ...
More
"Each software begins from version 1.0,and it updates.But with the publishment of version 0,the updation comes to an end,I mean,won't update anymore,never ever and forever,just like the full stop character in Chinese,which shaped like a 0." "So does man."
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




"Reform it if you failed to adapt it, or, die on your way reforming. "
More
"Reform it if you failed to adapt it, or, die on your way reforming. "
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




The cooling sun dying , and rising is this i ...
More
The cooling sun dying , and rising is this impure? children, it's midnight it's time, we've come hand in hand in heaven, on earth, in hell sick or well we're bleeding , all over the world you and me on land and sea I smile I clean enlightening the prayers, around me smiling, cleaning, in life, in dreams or, so it seems new beginnings new ends it's obvious it's it, the deafening, beautiful, silence... of dream!
Less

2
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




Above the stars and, above the moon We init ...
More
Above the stars and, above the moon We initiate We will be there soon Hearts we never feel like calming down We're high above our hallowed ground Cruising altitude here we come Scoring from behind out of the black sun Cruising out of tune here we come Shooting from behind into the black sun
Less
0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




In some region there exists 8 lakes,in which ...
More
In some region there exists 8 lakes,in which lived 6 sorts of birds,with the number of 1000,1500,2000,2500,3000,3500.Moreover,the number of the birds living in each lake is:2400,1100,1400,1900,2500,1800,1400,1000. Try to develop algorithms to solve the number of EACH kind of birds living in EACH lake. 先写出逻辑关系: 各种鸟总数的数组:bird[0-5] 最终各个湖泊中鸟总数的数组:lake[0-7] 最终每个湖中各种鸟的个数:l_b[0-7][0-5] 已知sum(bird[])=sum(lake[])=sumbird=13500 sum(l_b[i][0-5])=lake[i] sum(l_b[0-7][i])=bird[i] 看起来很棘手的题,总共14个已知数,逻辑关系只有四条,却有6*8=48个未知数,似乎是不大可能解决的事情 。 当然,只是看起来棘手而已。 现在用Mont Carlo法进行模拟实验求解(其实也能利用数学期望来求解,但只能得到近似数据。而且…用纯数学方法不是我风格,尽管我本科念的数学系)。把所有的鸟做为一个样本,样本容量为sumbird。每次实验从样本中随机抽取一只鸟,随机地放入任何一个湖中。总共进行sumbird次实验。 算法设计: 如果完全随机地进行这sumbird次实验的话,最终得到符合条件的结果的概率很小。这个算法所需要做的是成立一个法则,在遵循这个法则的前提下,随机地进行所有实验,而所得到的结果能够满足所有条件。显然,这个法则一定是建立在已知条件上的。 问题:定制一个怎样的法则,才能使遵循它的sumbird 次实验能够符合条件? 初始状态:每个湖里鸟的数量为0; 最终状态:每个湖里鸟的数量为lake[i:0-5]。 第一次实验,取到i类鸟的概率为bird[i]/sumbird,把它放入j湖的概率为lake[j]/sumbird。(i∈[0,5]; j∈[0,7]) 此时,样本中还有sumbird-1只鸟,其中i类鸟还剩bird[i]-1只;j湖中已经有1只鸟。 第二次实验,取到i类鸟的概率为(bird[i]-1)/sumbird(因为已经抽走了一只),把它放入j湖的概率为(lake[j]-1)/sumbird。(因为j湖中已经有一只鸟了,离lake[j]还差lake[j]-1只) 以此类推。 那么,可以推出,第n次实验(n∈[1,sumbird])时,抽到样本中i类鸟的概率为( bird[i]-已经抽走的i类鸟的总数)/(sumbird-已经抽走的鸟的总数);把它放入j湖中的概率为( lake[j]-j湖中已有鸟的总数)/ (sumbird-已经抽走的鸟的总数)  …………………………※ 只要每次的抽取实验都遵循※,就能sumbird次实验后得到的结果符合所有条件。 实现方法: 易得:第n次实验时已经抽走的i类鸟的总数= sum(l_b[0-7][i]);          j湖中已有鸟的总数= sum(l_b[j][0-5])。 设置两个动态数组: w_b[i:0-5]:在样本余下的鸟中抽到种类为i的鸟的概率; w_l[j:0-7]:将抽取到的鸟放入编号为j的湖中的概率。 易得:w_b[i]=(c[i]-sum(l_b[0-7][i]))/sumball    w_l[j]= (l[i]-sum(l_b[j][0-5]))/sumball 每次抽取实验后sumball自减1。 循环进行sumball次实验,即可得符合条件的结果。
Less
3
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




1
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




"The law of the jungle, it's still working in this modern society. Money & might become your new teeth and claws. No mercy upon the weak, due to their weakness, and they SHOULD ...
More
"The law of the jungle, it's still working in this modern society. Money & might become your new teeth and claws. No mercy upon the weak, due to their weakness, and they SHOULD be smashed by the strong. Sounds great hum? So, devote all your time to enrich yourself in both knowledge and money in order to stand as high as possible in the food chain. Have fun in this hunting-game~"
Less

2
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




"infatuation = appreciation + curiosity; love = infatuation + understanding + responsibility; marriage = love + promise + the courage of you two fighting against all the handi ...
More
"infatuation = appreciation + curiosity; love = infatuation + understanding + responsibility; marriage = love + promise + the courage of you two fighting against all the handicaps hand in hand, till the end of your life. So boys and girls, never say 'love' if your shoulders are not strong enough to bear the weight of it; lovers, cease your feet before the gate of marriage if you can't give each other the promise. " All shall be well, Jack shall have Jill.
Less

1
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




3
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




"Let me tell you what loneliness is: someday morning when you wake up, you find that nobody, I mean no one, on this earth you live on, is able to understand the language you spe ...
More
"Let me tell you what loneliness is: someday morning when you wake up, you find that nobody, I mean no one, on this earth you live on, is able to understand the language you speak,the characters you write, even the gestures you make, as well as you can't understand theirs. Your feeling at that moment, is loneliness."
Less

2
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




"Pirated softwares and imitation commodities should be trampled down to the bottom of the hell ----- together with their producers."
More
"Pirated softwares and imitation commodities should be trampled down to the bottom of the hell ----- together with their producers."
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




3
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




“A light & peaceful life is a real life? Then tell me what it contains in your peaceful life besides waiting for death.”
More
“A light & peaceful life is a real life? Then tell me what it contains in your peaceful life besides waiting for death.”
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




“Here's three ways to spend your money: satisfying yourself, preventing your own staffs from being destroyed, and destroying other people's staffs.”
More
“Here's three ways to spend your money: satisfying yourself, preventing your own staffs from being destroyed, and destroying other people's staffs.”
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




“Never consider it childishly that money cannot pay for happiness, at least happiness may be smashed to bits by it.”
More
“Never consider it childishly that money cannot pay for happiness, at least happiness may be smashed to bits by it.”
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




“There's no Xanadu exists on the earth. If it do exists, it'll be the target of missile test launching sooner or later .”
More
“There's no Xanadu exists on the earth. If it do exists, it'll be the target of missile test launching sooner or later .”
Less

0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




特當借君死,以厭天!
More
特當借君死,以厭天!
Less
0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




我將善良做成燈,然後它被風熄滅了
More
我將善良做成燈,然後它被風熄滅了
Less
0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun





0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0
How Do You Feel About It?


Ok

Good

Sad

Angry

Fun




0