{"title":"Efficient generation of lexically proper palindromes","authors":"R. Rankin, H. Berghel, Tong Xu","doi":"10.1145/99412.99451","DOIUrl":null,"url":null,"abstract":"Palindromes are strings of symbols which are symmetrical about the center. This paper outlines a method for generating certain types of palindromes, called lexical palindromes, which consist of legitimate English words. The method reported provides substantial pruning of a Prolog search tree by calculating the number of success nodes along certain search paths instead of visiting them, indexing words to improve database performance, and continuous analysis of current states to eliminate non-productive search paths. These efficiency measures allow lexical palindromes to be generated using a microcomputer.\nOur ultimate objective is to be able to estimate the ratio of sentential palindromes for any given length to the set of syntactically well-formed English sentences of that length with respect to a given lexicon and grammatical model. We shall take up the problem of determining the ratio of sentential palindromes to well-formed sentences in a sequel to this paper.","PeriodicalId":147067,"journal":{"name":"Symposium on Small Systems","volume":"53 4","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1990-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Symposium on Small Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/99412.99451","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
Palindromes are strings of symbols which are symmetrical about the center. This paper outlines a method for generating certain types of palindromes, called lexical palindromes, which consist of legitimate English words. The method reported provides substantial pruning of a Prolog search tree by calculating the number of success nodes along certain search paths instead of visiting them, indexing words to improve database performance, and continuous analysis of current states to eliminate non-productive search paths. These efficiency measures allow lexical palindromes to be generated using a microcomputer.
Our ultimate objective is to be able to estimate the ratio of sentential palindromes for any given length to the set of syntactically well-formed English sentences of that length with respect to a given lexicon and grammatical model. We shall take up the problem of determining the ratio of sentential palindromes to well-formed sentences in a sequel to this paper.