Talk:Anagrams: Difference between revisions

m
added a section header for the very first (talk) discussion to force the TOC (table-of-contents) to the correct location.
m (→‎REXX: typos)
m (added a section header for the very first (talk) discussion to force the TOC (table-of-contents) to the correct location.)
 
(8 intermediate revisions by 2 users not shown)
Line 1:
==not acronyms==
Yep, I know now, they are not acronyms. --[[User:Paddy3118|Paddy3118]] 20:34, 24 September 2008 (UTC)
:Do you want to call them "anagrams" instead? --[[User:DanBron|DanBron]] 18:04, 25 September 2008 (UTC)
Line 206 ⟶ 207:
which is what I have expected. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:01, 5 August 2013 (UTC)
: Maybe I introduced this error with my modifications. pls verify the original! --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:03, 5 August 2013 (UTC)
 
:: No, you didn't introduce an error.   It was an overzealous filtering statement that I put in to optimize the reading.   I removed the offending statement and all is now well.   Thanks for finding that error (it only manifests itself if the number of anagrams exceed the number of letters in the word). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:17, 5 August 2013 (UTC)
 
-----
 
<strike>
The REXX version 2 program won't find all the anagrams if some words are in mixed case. &nbsp; Furthermore, if all the words are in uppercase, no anagrams are found:
</strike>
<strike>
<pre>
There are 0 set(s) of anagrams with 24819 elements each:
</pre>
</strike>
I suspect that many of the programming examples won't handle a mixed case dictionary &nbsp; (should treat '''Live''' as an anagram of '''EVIL''').
 
Since the entire dictionary '''unixdict.txt''' is in lowercase, the mixed case error situation will remain hidden for most programs.
 
-- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 06:06, 8 August 2013 (UTC)
 
: REXX version 1 is now close to perfect. thanks --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 07:47, 9 August 2013 (UTC)
 
:: I've added a faster version &nbsp; (but it has it drawbacks). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 01:13, 12 August 2013 (UTC)
 
::: After adapting the new versions (=; -> =<nowiki>''</nowiki>; @ -> aa # -> nn) and adding the invocations for time('R') and time('E'), I used this driver
<pre>
call gsana11
call gsana12
call gsana13
to get these timings on Windows/ooRexx
1.1 1.279000
1.2 1.201000
1.3 1.139000
PS I had to add a call lineout ifid in order to close the
input file before staring the next program.
I was severely burnt when not closing a file on the host
when the next program used 'my' ddname and the allocated dataset.
</pre>
--[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 16:07, 12 August 2013 (UTC)