aoa
V2EX  ›  问与答

求可以穷举出任意字母组成的所有单词的方法

  •  
  •   aoa · Jun 13, 2012 · 4848 views
    This topic created in 5089 days ago, the information mentioned may be changed or developed.
    如果有现成小工具更好。
    10 replies    1970-01-01 08:00:00 +08:00
    hzlzh
        1
    hzlzh  
    PRO
       Jun 13, 2012
    有道的 Draw sth 外挂工具
    sampeng
        2
    sampeng  
       Jun 13, 2012
    每个字母都对应一个数的。。。然后麻。。排列组合算法而已
    dongbeta
        3
    dongbeta  
       Jun 13, 2012
    @sampeng 楼主想要的是有意义的实际单词
    pinepara
        4
    pinepara  
       Jun 13, 2012
    任意字母组成的所有单词?

    找一本词典就好了。
    shawiz
        5
    shawiz  
       Jun 13, 2012
    准备一个字典,写一段小程序就可以了
    iwinux
        6
    iwinux  
       Jun 13, 2012
    不追求效率的话,穷举 + 查字典就好了……
    mitnk
        7
    mitnk  
       Jun 13, 2012
    Under Unix:

    找所有 "aby" 开头的单词

    $ look aby

    包含 "aby" 的单词:

    $ look "" | grep aby

    字典文件: /usr/share/dict/words
    virushuo
        8
    virushuo  
       Jun 13, 2012
    字典+trie 索引
    aoa
        9
    aoa  
    OP
       Jun 13, 2012
    @hzlzh 谢谢,很实用。
    mogita
        10
    mogita  
       Jun 13, 2012
    http://www.morewords.com/

    例:直接输入类似 roswd 并搜索,可以找到 sword 和 words。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2650 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 15:36 · PVG 23:36 · LAX 08:36 · JFK 11:36
    ♥ Do have faith in what you're doing.