教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 教育文库 >

86 Reviewed Article — ARIMASACJ, No. 36., 2006 A Word Game

来源:网络收集 时间:2026-08-24
导读: This article reports on the approach taken, experience gathered, and results found in building a tool to support the derivation of solutions to a particular kind of word game. This required that techniques had to be derived for simple yet

This article reports on the approach taken, experience gathered, and results found in building a tool to support the derivation of solutions to a particular kind of word game. This required that techniques had to be derived for simple yet acceptably quick

86

ReviewedArticle—ARIMA/SACJ,No.36.,2006

AWordGameSupportToolCaseStudy

TBotha,DGKourie,BWWatson

Fastar/EspressoResearchGroup,DepartmentofComputerScience,UniversityofPretoria,Pretoria,SouthAfrica0001

1INTRODUCTION

”...youshallseekalldayereyou ndthem;and,whenyouhavefoundthem,theyarenotworththesearch.”[MerchantofVenice]Oneisoftensurprisedathowcomplexandchallengingcertainwordpuzzles/gamesarethatareregularly—dailyorweekly—beingsolvedbythousandsofreadersofmagazinesandnewspapers.Thecompilersofthesepuzzlesmakeahostofassumptionsthatarepresumedtobe“commonknowledge”basedontheirownthor-oughbackgroundknowledgeoftherelevantnaturallanguage.Theseassumptionsrelatetomatterssuchaslanguageknowledge,wordconstruction,wordus-age,synonyms,generalcurrenta airsknowledge,etc.

Alongwiththeseassumptions,thetypicalwordpuzzleinvolvesalargebodyofpossiblecandidateso-lutionsthatcan ttheparticularsub-entryofthepuz-zle.Theoverallsolutionisthustosolveapatternmatchingproblemofnaturallanguagewordsthat tthepuzzleinaparticularcombination.Itisthere-forenotsurprisingthatavarietyofsupporttoolsareavailableforpuzzlesolverenthusiasts.Mostofthesesupporttoolsareavailableinbookformatsuchastyp-icaldictionariesororderedwordlistsbasedoncriteriathatareuniquetotherelevantgameorwordproblem.Examplesinclude:

Alphabeticorderingaccordingtowordlength Wordtypesusedforclusteringandordering—suchasclustersofgeographicorpersonnames,

This article reports on the approach taken, experience gathered, and results found in building a tool to support the derivation of solutions to a particular kind of word game. This required that techniques had to be derived for simple yet acceptably quick

JointSpecialIssue—Advancesinend-userdata-miningtechniques

87

fromthenaturallanguageusedinordertofacilitatequeries.Theconclusionofthearticle,insection6,includesanassessmentoffutureworkthatisneededonthesupporttool.

2BACKGROUND2.1ProblemStatement

Thefollowingisashortdescriptionof“letterspeletjie”—awordgamethatappearsinSaturdayeditionsoftheJohannesburg-basedAfrikaansnewspaper,Beeld,andthatisthetargetofthesupporttoolthathasbeenbuilt.Theplayerispresentedwithanumberofcells.Eachcellinthepuzzlecontainsanumber(between1and26)thatrepresentsaletter.Theonlycluegiven,isthatanumberofcells(usually2)arepre- lledwithletters.Thechallengeistoestablishwhichletterisrepre-sentedbywhichnumber.Fortunately,theanswerisalwaysaone-to-onemapping.Someimbedded“clues”arepresentsuchastheparticularwordlengthallowedforanaccompanyingword.Shortwords—2or3characterslong—arethebestcandidateswithwhichtostartandtouseforaninitialtrial-and-errorapproach.

Thechallengetobemetistobuildatoolthatsupportsthequestforasolutiontosuchaproblem—aproblemwhichmaybedescribedroughlyasakindofconstraintsatisfactionproblem.Morespeci cally,asolutiontothisprobleminvolves,ataminimum,apartialmatchsearchandretrieval.Becauseofitscomplexity,anumberofprerequisitesneedtobemetbyatoolthathandlesthistypeofproblem.Themainonesarelistedbelow.

The rstpracticalchallengetoovercomerelatestodealingwiththelargevolumeofwordsthatarepotentialcandidatesforthe“knowledgebase”ofthetool.Intheexamplecasethatwasusedtoimplementthesupporttool,anAfrikaanslanguagedictionaryofmorethan132000wordswasconstructedandused.Thisisinlinewithvarioussourcesthatsuggestthatmorethan130.000andevenasmuchas180.000wordscanbeinvolvedinAfrikaanswordgamepuzzles1.Inordertosetupthedictionary,thefollowingquestionsneededtobeanswered:

Howcanthedictionaryberepresentedtosupportacceptablyfastsearching?

Howcanthestoragevolumeofthedictionarybelimitedtoacceptablelevels?

Whatsearchtechniquesthatencompassstrictpartialmatchsearch/retrievalshouldbeused?Inaddition,arelativesimplebutpowerfulquerylan-guagewasneededtodeliversolutionsforthesearch/retrievalgoals.Thelanguagehadtoallowfordi-rectinteractivepersonalusage,aswellasforprogram-maticaccess.Alsoneededwasasetofsupportand

This article reports on the approach taken, experience gathered, and results found in building a tool to support the derivation of solutions to a particular kind of word game. This required that techniques had to be derived for simple yet acceptably quick

88

typesofsearchesmentionedabove.Therefore,insomecasesahybridapproach(combiningtypesofsearch)istakenbytheproposedsolution.

ReviewedArticle—ARIMA/SACJ,No.36.,2006

arm

1

ar3

da5

em7

rm9

1

.

.

.

1

1

.

11

daar

.

1

.

1

.

.

1

.

.

warm1..1

3PROPOSEDWORDREPRESENTATION

Inderivingtheproposedsolution,the rstconsider-ationwashowtorepresentthethousandsofnaturallanguage(Afrikaans)http://doc.guandang.netplicatedtechniques—mostlyinvolvingtrees,tries,andhashindexing—havebeenproposed.(Seeforexample:[11,5,4,12].)Mostofthesetech-niquesexposestrengthsinsomeareasandweaknessesinothers.Thisstudywasaimedatasimpleyetpow-erfulapproachtoresolvetheproblemathand.Theproposedsolutionisbasedonasimpleyetpowerfulin-verted letechnique.Asmentioned,whencombinedwithotherretrievaltypesthisapproacho ersanele-gantandacceptablyquicksolution.

3.1BuildingtheWordListDatabase

ThedecisionwasmadetousetheObjectREXX2scriptinglanguagefordevelopingtheexampleimple-mentation.ObjectREXX(likeC++)o ersbothtra-ditionalandobject-orientedfeatures.ObjectREXXisparticularlystronginitsstringhandlingfeatures,haspowerfultracingabilities,ando erselegantstreamed lehandlingwhichwasverybene cialfordevelop-mentoftheexampleimplementation3.Despiteitsinterpretivenature,ObjectREXXprovedsurprisinglyadequateforpresentpurposes.However,infutureex-te …… 此处隐藏:24134字,全部文档内容请下载后查看。喜欢就下载吧 ……

86 Reviewed Article — ARIMASACJ, No. 36., 2006 A Word Game.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/1811118.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)