Simple spell checking algorithm

后端 未结 4 1186
星月不相逢
星月不相逢 2021-02-01 10:21

I\'ve been tasked with creating a simple spell checker for an assignment but have given next to no guidance so was wondering if anyone could help me out. I\'m not after someone

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 11:20

    off the top of my head, you could split up your suggestions based on length and build a tree structure where children are longer variations of the shorter parent.

    should be quite fast but i'm not sure about the code itself, i'm not very well-versed in c++

提交回复
热议问题