2012年5月5日 星期六

one minute, twenty times


1、Michelle pinned her hopes for a better life on finding a new job.(寄予厚望)
2、The tax office wants us to turn over all our records from last year.(繳交)
3、Competing on price alone is a no-win situation.(雙輸)
4、According to the statistics, economic recovery is on the way.(復甦中)
5、Leave it to me. I'll fix your laptop and bring it to you later.(留給…)
6、The project is on track and should be completed by next month.(上軌道)
7、It's a tough call. I don't know how on line product will do on the market.(很難下決定)
8、Building and running your own business involves a lot of hard work and commitment.(投入心力)
9、If I find myself to be worth more, I’ll take steps to get it.(採取行動)
10、I had been meaning to call you about my expired membership, but I've been extremely busy recently.(一直想)

2012年5月4日 星期五

2012年4月13日 星期五

Iterative and Recursive


疊代法與遞迴法
疊代法以確定的部分作為起始點,循序漸進推演,求得答案;遞迴法找出一套縮小問題範疇的規律,以此規律不斷縮小問題,直到能釐清細節,找到確定的部份。

疊代法與遞迴法恰好顛倒:疊代法是針對已知,逐步累積,直至周全;遞迴法是針對未知,反覆拆解,直至精細。

2012年4月11日 星期三

[R] 將字串切割

strsplit {base},

Usage
strsplit(x, split, fixed = FALSE, perl = FALSE, useBytes = FALSE)

2012年4月8日 星期日

[R] 字串所有出現組合

A序列: ATG
B序列: CAA
利用:
a<-c("A","C")
b<-c("T","A")
c<-c("G","A")
expand.grid(a,b,c)