- 积分
- 133
- 注册时间
- 2006-1-10
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2007-6-7 16:50:49
|
显示全部楼层
来自 江苏无锡
cede
censor
cheese
chemo
chessmen
choc
choose
chord
chore
chose
chosen
chrome
chromosome
coco
cocoon
cod
code
coerce
cohere
coherence
coho
come
commence
commend
commerce
commode
commodore
common
commonsense
con
concede
concern
conch
concord
condemn
condense
condescend
condo
condom
condone
condor
cone
consomme
consommé
coo
coon
cord
cordon
core
corm
corn
corrode
cosh
creche
crèche
credence
credo
creme
crescendo
crone
croon
http://www.simwe.com/forum/thread-783051-1-1.html
现有程序: 讨论如何优化代码,有关计算复杂性程序 ?
-
- n = 10000
- DictionaryLookup["c*", n];
- New = DictionaryLookup["c*", n];
- For[ i = 1, i < n,
-
- If[
- Not[
- StringMatchQ[New[[i]], "*a*"]
- || StringMatchQ[New[[i]], "*b*"]
- || StringMatchQ[New[[i]], "*f*"]
- || StringMatchQ[New[[i]], "*g*"]
- || StringMatchQ[New[[i]], "*i*"]
- || StringMatchQ[New[[i]], "*j*"]
- || StringMatchQ[New[[i]], "*k*"]
- || StringMatchQ[New[[i]], "*l*"]
- || StringMatchQ[New[[i]], "*p*"]
- || StringMatchQ[New[[i]], "*q*"]
- || StringMatchQ[New[[i]], "*t*"]
- || StringMatchQ[New[[i]], "*u*"]
- || StringMatchQ[New[[i]], "*v*"]
- || StringMatchQ[New[[i]], "*w*"]
- || StringMatchQ[New[[i]], "*x*"]
- || StringMatchQ[New[[i]], "*y*"]
- || StringMatchQ[New[[i]], "*z*"]
- || StringMatchQ[New[[i]], "*s"]
- || StringMatchQ[New[[i]], "*ed"]
- || StringMatchQ[New[[i]], "*er"]
- ]
- , Print[New[[i]]]
- ]
- i++];
复制代码
[ 本帖最后由 FreddyMusic 于 2007-6-7 17:33 编辑 ] |
|