[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
article
Free access

The world's fastest Scrabble program

Published: 01 May 1988 Publication History

Abstract

An efficient backtracking algorithm makes possible a very fast program to play the SCRABBLE® Brand Crossword Game. The efficiency is achieved by creating data structures before the backtracking search begins that serve both to focus the search and to make each step of the search fast.

References

[1]
Blumer, A., Blumer, J., Ehrenfeucht, A., Haussler, D., and McConnell, R. Linear size finite automata for the set of all subwords of a word; an outline of results. Bul. Eur. Assoc. Theor. Comp. Sci. 21 (1983), 12-20.]]
[2]
Cosma, J., Jackson, D. et al. Introducing MONTY plays scrabble. Scrabble Players News, (June 1983), 7-10.]]
[3]
de la Briandais, R. File searching using variable-length keys. Proceedings of the Western Joint Computer Conference, 1959, pp. 295-298.]]
[4]
Fredkin, E. Trie Memory. CACM 3, 9 (Sept. 1960), 490-500.]]
[5]
Nerode, A. Linear automaton transformations. Proc. AMS 9 (1958}, 541-544.]]
[6]
Shapiro, S.C. A scrabble crossword game playing program. Proceedings of the Sixth IJCAI, 1979, pp. 797-799.]]
[7]
Stuart, S.C. Scrabble crossword game playing programs. SIGArt Newsletter, 80 (April 1982), 109-110.]]
[8]
Turcan, P. Computer scrabble. SIGArt Newsletter, 76 (April 1981), 16-17.]]
[9]
Turcan, P. A competitive scrabble program. SIGArt Newsletter, 80 {April 1982} 104-109.]]
[10]
Weinberger, Peter. private communication.]]

Cited By

View all
  • (2022)Heuri: A scrabble© playing engine using a probability-based heuristicICGA Journal10.3233/ICG-22020143:4(190-202)Online publication date: 30-Mar-2022
  • (2022)Word-based game development on Android with an efficient graphical data structureTurkish Journal of Engineering10.31127/tuje.9871416:3(256-261)Online publication date: 20-Jul-2022
  • (2017)Effects of lexicon size on solving bananagrams2017 12th International Conference for Internet Technology and Secured Transactions (ICITST)10.23919/ICITST.2017.8356413(339-341)Online publication date: Dec-2017
  • Show More Cited By

Index Terms

  1. The world's fastest Scrabble program

                            Recommendations

                            Reviews

                            Philip L. Phipps

                            This very interesting paper describes the data structures used (directed acyclic word-graphs, or DAWGs), search strategies (backtracking constrained by precomputed “anchor points and cross-checks”), and special heuristics that produce a very fast Scrabble-playing program. The claim is discussed with respect to both other computer programs and human players. A number of speed-ups are used. The program scans the board for playable connections before scanning the lexicon and letter rack. It stores the lexicon as a DAWG (one-way), allowing a memory reduction of about 5 to 1 over a tree organization and thus allowing the entire lexicon to reside in RAM memory. It splits the search into two parts, left of the anchor point and right of the anchor point. Rows and columns are handled identically—just transpose the board. Special heuristics are needed to handle blanks and contiguous letters. Some statistics about the program (which contains 1500 lines of C code) are discussed, including lexicon sizes versus speed and the machines for which it has been programmed (the VAX 11/780 and Apple Macintosh). Future refinements are suggested, such as a two-way DAWG lexicon, adversary search, and look-ahead strategy. Four other Scrabble programs are discussed and papers about them are listed among the 11 references. All appear to be much less capable than this one. The work with the DAWG data structure is applicable to other large lexicon searches, as the authors note. The title is sort of a challenge to the rest of the computer science world and, of course, gets attention. The paper is easy to read, although liberal use of data structure concepts is made. The paper is an excellent example of the trade-off between “trie” and DAWG data structures; some of the key C code routines are given. An actual game summary is given at the end—of course, the computer won.

                            Access critical reviews of Computing literature here

                            Become a reviewer for Computing Reviews.

                            Comments

                            Please enable JavaScript to view thecomments powered by Disqus.

                            Information & Contributors

                            Information

                            Published In

                            cover image Communications of the ACM
                            Communications of the ACM  Volume 31, Issue 5
                            May 1988
                            114 pages
                            ISSN:0001-0782
                            EISSN:1557-7317
                            DOI:10.1145/42411
                            Issue’s Table of Contents
                            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                            Publisher

                            Association for Computing Machinery

                            New York, NY, United States

                            Publication History

                            Published: 01 May 1988
                            Published in CACM Volume 31, Issue 5

                            Permissions

                            Request permissions for this article.

                            Check for updates

                            Qualifiers

                            • Article

                            Contributors

                            Other Metrics

                            Bibliometrics & Citations

                            Bibliometrics

                            Article Metrics

                            • Downloads (Last 12 months)279
                            • Downloads (Last 6 weeks)27
                            Reflects downloads up to 13 Dec 2024

                            Other Metrics

                            Citations

                            Cited By

                            View all
                            • (2022)Heuri: A scrabble© playing engine using a probability-based heuristicICGA Journal10.3233/ICG-22020143:4(190-202)Online publication date: 30-Mar-2022
                            • (2022)Word-based game development on Android with an efficient graphical data structureTurkish Journal of Engineering10.31127/tuje.9871416:3(256-261)Online publication date: 20-Jul-2022
                            • (2017)Effects of lexicon size on solving bananagrams2017 12th International Conference for Internet Technology and Secured Transactions (ICITST)10.23919/ICITST.2017.8356413(339-341)Online publication date: Dec-2017
                            • (2017)Building Efficient and Compact Data Structures for Simplicial ComplexesAlgorithmica10.1007/s00453-016-0207-y79:2(530-567)Online publication date: 1-Oct-2017
                            • (2013)Computer-Aided Word Mastermind Solving Using Regular Expression Pattern Matching in a Directed Acyclic Word GraphInternational Journal of Future Computer and Communication10.7763/IJFCC.2013.V2.210(481-484)Online publication date: 2013
                            • (2013)Framework for Constructive Computer Game toward Empowering the Future GenerationInternational and Interdisciplinary Studies in Green Computing10.4018/978-1-4666-2646-1.ch023(311-317)Online publication date: 2013
                            • (2013)SSTProceedings of the 2013 7th Asia Modelling Symposium10.1109/AMS.2013.33(179-184)Online publication date: 23-Jul-2013
                            • (2013)Compressed Directed Acyclic Word Graph with Application in Local AlignmentAlgorithmica10.1007/s00453-013-9794-z67:2(125-141)Online publication date: 10-May-2013
                            • (2012)Dictionary data structures for smartphone devicesProceedings of the 5th International Conference on PErvasive Technologies Related to Assistive Environments10.1145/2413097.2413155(1-4)Online publication date: 6-Jun-2012
                            • (2012)AnatreeACM Journal of Experimental Algorithmics10.1145/2133803.213380417(1.1-1.16)Online publication date: 30-Mar-2012
                            • Show More Cited By

                            View Options

                            View options

                            PDF

                            View or Download as a PDF file.

                            PDF

                            eReader

                            View online with eReader.

                            eReader

                            Login options

                            Full Access

                            Media

                            Figures

                            Other

                            Tables

                            Share

                            Share

                            Share this Publication link

                            Share on social media