l's profilezenPhotosBlogListsMore Tools Help

Blog


    April 28

    genetic algorithm

    i told myself never to include any cs related words in my blog, but...i failed to do so today, because this algorithm seems to be more close to the biology fields than purely cs algorithms. normal algorithms are usually predetermined or u can give a exact math formular for description, but the approach that genetic algorithm uses is totally stochastic, which is to say, based on probabilities.
     
    assuming all the problems can be treated as functions(math equations) which take set of parameters and return a value, then optimization of the problem will simply be finding the best fiting parameters and the corresponding smallest return value.  obviously in most cases, the parameter sets will always be infinite, however, we can extract a sample set(statistic) to represent the population. And for a discrete problem, the population will always be finite, so the larger parameter set, the better optimization u can reach.
     
    the biological analogy will be how living organisms evolve to suit their enviroment, the parameter set is similar to the chromosomes or genomes, which can be simulated using binary strings(0 or 1 , CG or AT as in DNA) 0 and 1s of length n , mutation or crossovers between chromosomes can be regarded as parameter change or parameter combinations. given a constraint, ie the smallest return value, and a initial parameter set, we can always generate a proportion of best fit parameter set, then use this set as the initial set untill all the possible parameters(2^n based on the parameter binary length) is tried out, and the target return value will not change no matter how many times u repeat this process. thus, this value and the parameter set will become the best optimized solution; biologically speaking, the enviroment has found the most fited living organism.
    April 18

    Vera Farmiga

    昨天晚上边玩游戏边看The Departed,一不小心看到了这个女人Vera Farmiga,哎,一夜没睡好。奇怪,我的定力怎么越来越差了。
    常言说得好,有美人不能无酒无诗,我既然滴酒不沾,则只能赋诗一首,更奈何你扰我清梦,就填一首《巫山一段云》吧:
     
    微云洗凝脂,浅雾拢芳舟(平),
    柳叶飘醉惹情幽(平),新月染中秋(平)。
     
    不勘花中眠,难为月下愁(平),
    怜花何须葬花忧(平),天然自风流(平)。
     
    ---唐教坊曲,原咏巫山神女事。双调小令,四十四字,前后片各三平韵,要是Vera Farmiga会唱这曲子就更理想了,可惜的是就算在中国,能重奏乐府的人又能有几个呢,哎...
    April 16

    mind control

    finished biohazard4 last weekend, and really like the female agent Ada in it. anyways, back to topic, an idea from bio4 is somehow nice imo: a new virus is introduced in bio4, technically it is not a virus but a microorganism, a parasite. it invades human neuron system, and attach to the lower end of spinal cord (about the same position of stomach). it absorb the nutrients from the host blood circulatory system, and intercept the signal transduction through neuron network. if this parasite is smart enough to send signals to human brains, or simulate the signals send out from brains, then we can call this phenomenon Mind Control.
     
    for example, how human make a movement is simply like this: brain send signal out(MOVE_LEGS), signal transmit throught neuron network to neuron cell attached with leg muscle, MOVE_LEGS causes neron cell impulsion which will move leg muscles. if the parasites can simulate the signal MOVE_LEGS and intercept all the interactions between brain and effector neuron cells, then your leg will no longer belong to u, and all your action will be out of control, or controled by the parasites.
     
    however, becoz the complexity of human brains and neuron system, theoretically in order to do fully mind control, such parasites have to be at least the same complexity as human neuron system + the interception machanism.this will be too much info for a single cell organism or virus. suppose all this infomation is kept in DNA or RNA, then i will guess the size should be about the half size of human genome. since brain is the central part of human.
    April 13

    the furthest distance in the world

    the furthest distance in the world 
    is not between life and death 
    but when i stand in front of you 
    yet you don't know that 
    i love you 

    the furthest distance in the world 
    is not when i stand in front of you 
    yet you can't see my love 
    but when undoubtedly knowing the love from both 
    yet cannot 
    be togehter 

    the furthest distance in the world 
    is not being apart while being in love 
    but when plainly can not resist the yearning 
    yet pretending 
    you have never been in my heart 

    the furthest distance in the world 
    is not pretending you have never been in my heart
    but using one's indifferent heart 
    to dig an uncrossable river 
    for the one who loves you
     
    --- sigh, uncrossable river.... btw, this peom is not writen by Tagore, as many ppl might think so. coz i have read all Tagore's peoms, this one is def not in them.
    April 10

    周易简介

    千百年来,周易被奉为百经之首,究其根源就是因为没有多少人真正读懂周易。道德经,金刚经虽言天下之至道,但其言语朴实,并不难理解。我十八岁读老子,二十岁读金刚经,之后又反复揣摩多遍,虽不敢说全盘理解,可也算是掌握了二经的精华所在,唯独易经。接触易经到现在已经有三年了,虽说理解在一步步加深,可谈到易经的豁然贯通却始终把握不到。易经最大的区别就在于要以数术为根基,老子和金刚经都是讲道理,悟性够了就理解了,易经却不同,数术的知识不达到一定程度,你是说什么也理解不了的。
     
    易经作为儒家经典,也被一些儒家人物所注释。其中系辞中引用太多子曰,杂卦,序卦和说卦都还值得一读。说实话,对于这些注释我实在不敢苟同。这些注释或许可以帮助记忆易经的内容,但谈到解释,我看还差得远。
     
    易经原理也不算太难,以阴阳为根基,三才为变,2*2*2 = 8 成八卦之说,八卦相杂8*8=64 成64卦,64 是2的6次方,所以每卦中含有6爻。一整部易经其实就是在解释这64卦和64卦中对应的6爻。所以共有64+64*6=448种爻辞。当然除了乾坤两卦外,因为这两卦有用九和用六之说,不过寻常卦象则从初九或初六谈到上九或上六。如果加上用九用六两爻, 则448+2 = 450 种解释。九和六是易经中对阴阳的数术表达,九代表阳,六代表阴。卦分六爻,排列顺序为从下到上。
     
    有人常把易经当成一本书,以为只要钻研这本书就行了。其实大错特错,易经代表的是一种数术文化,包含阴阳五行,天干地支,三才四象,六合八卦的一整套知识,所以光读易经是读不通的,只有与其它知识相印证才行。易经的易有两种解释,可以当作容易,也可以当作变易。我还是倾向于后者,因为我实在不觉得它容易。
    April 04

    变是不变,不变是变

    变是不变:变化是从没改变过的,变化一直存在
    不变是变:永恒不变的是变化
     
    两个说的是一个道理,又如心经中的 色不异空,空不异色;色即是空,空即是色。
    佛经中很喜欢这种排句,上下说的是一个意思:色=空,如果要解释细致些
     
    色不异空:色和空没区别
    空不异色:空也和色没区别
    色即是空:大千世界的形形色色对我来说都空无一物
    空即是色:如果一味求空,也就是心中着了色相,因为有色才要求空
     
    ---关于空即是色,我有些体会,当我打坐时,往往过一段时间就会心绪不宁,倒没有往时安然自在。说到底还是心中有色阿...或者是传说中的走火入魔?有些话不必说出来,说出来的往往不是话...罪过罪过,我还是心动了,哎,动就动吧,我不入地狱谁入...
    April 02

    儒学五章

    易经,诗经,尚书,左传(春秋),礼记。
     
    --- 之所以我只提五经不提四书,只是因为四书是朱子一家之言,因此毁掉了多少代的文人学士,造成了无可弥补的历史文化挫折... 朱子的道理本来狗屁不通,四书在我看来也是一钱不值。可惜的是一提到儒学,世人想到的也无非是孔子,孟子之流。由此可见朱子害世之深。我觉得有必要澄清一下儒学的本来面目,这五经可以说是儒学的真谛和精华,非是四书这种糟粕所能相提并论的,诗经是诗歌词赋的起源,尚书是历史的起源,春秋是道德的起源,礼记是礼仪的起源,而易经是起源的起源。