找回密码
 注册
Simdroid-非首页
楼主: FreddyMusic

perch88's Code C*[3X3] = 28W ?

[复制链接]
发表于 2006-12-4 15:25:59 | 显示全部楼层 来自 LAN
The science doesn't  have news today, so do I, but if you need something interesting, I think I do have.

[ 本帖最后由 dava 于 2006-12-4 15:27 编辑 ]
 楼主| 发表于 2006-12-4 15:34:35 | 显示全部楼层 来自 江苏无锡
Simdroid开发平台
perch88

I have not time to programme the code, but still interested in the game.
Probably, I cann't find a suitable glossary or dictionary, or you provide it ?

So the first version Algorithms is something like below.
It has the potential to opimize for better efficiency.



  1. Start :

  2. 1. Sequencly pick up a word from glossary , character string = Perch88 ( I assume, usually range A - Z )
  3. 2. Check letter C is included in  the character string = Perch88 , if not go 1. if yes go 3
  4. 3. Check all letter of character string are included in [ 3X3 ] letter Matrix , if not go 1. if yes go 4
  5. 4. Print the Word, then go 1

  6. End

复制代码
发表于 2006-12-4 15:58:34 | 显示全部楼层 来自 美国
I think this could be another patent, but you don't have to implement it since we are playing with language
not necessary to spend a lot of time on that..
发表于 2006-12-4 19:52:02 | 显示全部楼层 来自 湖北武汉
原帖由 perch88 于 2006-12-4 03:05 发表


I didn't find comme in the dictionary. Is it a French word?



Sorry,comma
发表于 2006-12-5 01:51:20 | 显示全部楼层 来自 美国
but you have an 'a' here
Never mind. Its over..
发表于 2006-12-5 09:22:15 | 显示全部楼层 来自 广东深圳
just for fun
expect for new games!
 楼主| 发表于 2006-12-7 17:48:40 | 显示全部楼层 来自 江苏无锡
原帖由 perch88 于 2006/12/4 15:58 发表
I think this could be another patent, but you don't have to implement it since we are playing with language
not necessary to spend a lot of time on that..



Perch88,

Many Thanks, I like this Game, I have the feeling
This is moment we are coupling Computer language with a Nature language ?


Coz we don't have an available glossary so far.
So I am think to use another method to find the 28 words,
A new matrix is C*[O, E] * [S, H, D, N, E, R, M]
It has some logical from language viewpoint, isn't it ?

Or would you give me a short list of 18 avaible words,
so I can try with my previous patented Algorithm.


S  H  D  
O  C  N  
E  R  M

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2007-6-7 16:48:31 | 显示全部楼层 来自 江苏无锡
在 10 000 条,C 开头的单词中搜索满足条件的单词,得到如下结果。

用程序实现应该没有问题,我的算法可以在计算复杂性上更优化。

I have broken perch88's Code C*[3X3] = 28W ?

The answer: it is much more than 28 words.

GAME OVER
回复 不支持

使用道具 举报

 楼主| 发表于 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

现有程序: 讨论如何优化代码,有关计算复杂性程序 ?

  1. n = 10000
  2. DictionaryLookup["c*", n];
  3. New = DictionaryLookup["c*", n];
  4. For[ i = 1, i < n,
  5.   
  6.   If[  
  7.     Not[
  8.      StringMatchQ[New[[i]], "*a*"]
  9.       || StringMatchQ[New[[i]], "*b*"]
  10.       || StringMatchQ[New[[i]], "*f*"]
  11.       || StringMatchQ[New[[i]], "*g*"]
  12.       || StringMatchQ[New[[i]], "*i*"]
  13.       || StringMatchQ[New[[i]], "*j*"]
  14.       || StringMatchQ[New[[i]], "*k*"]
  15.       || StringMatchQ[New[[i]], "*l*"]
  16.       || StringMatchQ[New[[i]], "*p*"]
  17.       || StringMatchQ[New[[i]], "*q*"]
  18.       || StringMatchQ[New[[i]], "*t*"]
  19.       || StringMatchQ[New[[i]], "*u*"]
  20.       || StringMatchQ[New[[i]], "*v*"]
  21.       || StringMatchQ[New[[i]], "*w*"]
  22.       || StringMatchQ[New[[i]], "*x*"]
  23.       || StringMatchQ[New[[i]], "*y*"]
  24.       || StringMatchQ[New[[i]], "*z*"]
  25.       || StringMatchQ[New[[i]], "*s"]
  26.       || StringMatchQ[New[[i]], "*ed"]
  27.       || StringMatchQ[New[[i]], "*er"]
  28.      ]
  29.       , Print[New[[i]]]
  30.     ]
  31.    i++];
复制代码

[ 本帖最后由 FreddyMusic 于 2007-6-7 17:33 编辑 ]
回复 不支持

使用道具 举报

发表于 2007-6-8 14:42:44 | 显示全部楼层 来自 美国
I am late ... anybody mentioned:

scheme
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2026-1-4 03:47 , Processed in 0.034011 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表