| 查看: 265 | 回复: 0 | ||
[求助]
PHP编程
|
|
大家好,我这里有一个PHP编程的题,是先将字符串:tomorrow_and_tomorrow_and_tomorrow转换成bwt_t: wwwdd__nnoooaatttmmmrrrrrrooo__$ooo;再转换成t_back: $worromot_dna_worromot_dna_worromot。这后一步的程序我不会写(也就是“function reverseBwt($bw){”这一步),求高手指点。谢谢各位了 程序: // Dr. Han’s implementation of the BWT // 20140408 $t = "tomorrow_and_tomorrow_and_tomorrow"; $bwt_t = bwt($t); $tBack = reverseBwt($bwt_t); print "t: $t\n"; print "bwt_t: $bwt_t\n"; print "t_back: $tBack\n"; print "Job done!\n"; function bwt($t){ …… } function reverseBwt($bw){ …… } 结果: ‐bash‐3.2$ php bwt.php t: tomorrow_and_tomorrow_and_tomorrow bwt_t: wwwdd__nnoooaatttmmmrrrrrrooo__$ooo t_back: $worromot_dna_worromot_dna_worromot Job done! ‐bash‐3.2$ |
» 猜你喜欢
filecode
已经有7人回复
大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑
已经有4人回复
filecode
已经有5人回复
求各位大神看下
已经有31人回复
咨询面上基金
已经有7人回复
影响面上的因素
已经有11人回复
8月时间戳变的,举个手。玩一下,释放压力
已经有11人回复
一个有机合成实验室都需要哪些设备?
已经有11人回复
面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇!
已经有30人回复
好消息?这个有何含义???
已经有10人回复










回复此楼