PowerBASIC Peer Support Forums
 

Go Back   PowerBASIC Peer Support Forums > User to user Discussions > Programming

Programming User to user discussions of general programming topics such as algorithms, APIs, etc.

Reply
 
Thread Tools Display Modes
  #76  
Old May 2nd, 2012, 08:17 AM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Quote:
Originally Posted by kerry Farmer View Post
I was not trying to claim the credit!!!
Oh my, I meant that not at all And I apologize if you inferred it. I was merely trying to say feel free (anyone) to distribute in any way "discovered" stuff uncovered by this program. If someone else wants , or feels the need, to take credit for it, well that's the way the cookie crumbles sometimes. It doesn't hurt me at all, only him.

And if he (you) makes Bill Gates Steve Jobs money doing it, well goood for him. And good for the lawyers John, Paul and I will hire to recover some of it. And good for his defending lawyers too. And good for the world too, benefitting from the new discoveries. Good for PowerBasic when it's known PB was the underlying power that enabled the discoveries. Geez, I really hope you do distribute it, Kerry - the good is unending.{grin} (Have to stop here, all this good karma is just infusing me and upsetting Big Mama's world view.)
Quote:
I was merely trying to recognise that you may have discovered stuff.
As I age, I find myself "discovering" more stuff almost every day. Memory and all that. {grin}

================================================
"Everywhere I go I'm asked if
I think the university stifles writers.
My opinion is that they
don't stifle enough of them.
There's many a best-seller that could have been
prevented by a good teacher."
Flannery O'Connor (1925-1964)
================================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

Last edited by Gösta H. Lovgren-2; May 2nd, 2012 at 08:32 AM.
Reply With Quote
  #77  
Old May 2nd, 2012, 09:53 AM
John Gleason John Gleason is offline
Member
 
Join Date: Aug 2002
Location: Meechigan
Posts: 1,975
I looked at the data returned by running Paul's code, and now I see where your 45,412 comes from, Gösta. In that data are duplicates--not duplicate pairs, just duplicate words from different matched pairs. So when those dupes are removed... bam! 28819 unique words as my (#71) no-dupe-code post also shows.

That's a tri-match assuming your code produces data that exactly matches Paul's, which makes it a virtual certainty it's correct. You'll have to modify a statistic or few to reflect that only 28819 words form anagrams in that 173,528 word database. Eg. that is just 16.6% of the words rather than 26%.
Reply With Quote
  #78  
Old May 2nd, 2012, 11:44 AM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Quote:
Originally Posted by John Gleason View Post
I looked at the data returned by running Paul's code, and now I see where your 45,412 comes from, Gösta. In that data are duplicates--not duplicate pairs, just duplicate words from different matched pairs. So when those dupes are removed... bam! 28819 unique words as my (#71) no-dupe-code post also shows.

That's a tri-match assuming your code produces data that exactly matches Paul's, which makes it a virtual certainty it's correct. You'll have to modify a statistic or few to reflect that only 28819 words form anagrams in that 173,528 word database. Eg. that is just 16.6% of the words rather than 26%.
I'm glad (and comforted) you confirmed that we are in agreement as to the accuracy (not missing any). As for the totals, we are viewing it differently.

ie aborted - tabored you are counting as one.
with tabored - aborted I count it as 2.

It plays out even more in multi word (3 or more) peas - seap - sape which is probably the 1227 dif I noted above.

In any case, I will go with the higher conts in my stats though I will note there are different ways of counting (your 28.000 is still an astounding number as well - whodda thot?).

I'm planning to put up a page with a summary of all this stuff and will include in it the Word-Connection program we collaborated on a few years ago as well.

Neat stuff. Thanks your contribution. I am in awe of the speed of your algo.

================================================== =====
"Listen, I been dead three times,
Bare-knuckled a professional boxer,
And been pissed on by a tiger.
Now, what was that you are going to to do to me again?"
Swede
================================================== =====
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
  #79  
Old May 2nd, 2012, 12:06 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Quote:

************************************************** ************************************************** ********************************
* 45,412 Anagrams (26%) were found in 173,528 Words *
* 28,819 individual words can form Anagrams (17%) *
************************************************** ************************************************** ********************************


How does that look?

===================================
The things we know best are
the things we haven’t been taught.
Luc, Marquis de Vauvenargues
===================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
  #80  
Old May 2nd, 2012, 02:07 PM
John Gleason John Gleason is offline
Member
 
Join Date: Aug 2002
Location: Meechigan
Posts: 1,975
I would probably word it like this:

Code:
**************************************************
**************************************************
********************************
There are 12,368 sets of anagrams containing 28,819 unique words out
of a 173,528 word list.

For example, "recrates terraces caterers retraces" is one 4-word anagram set,
where each word within is an anagram of the other three and appears in no
other set.
**************************************************
**************************************************
********************************
But then, I'm not exactly Mr. Documentation Editor.
Reply With Quote
  #81  
Old May 2nd, 2012, 02:20 PM
John Gleason John Gleason is offline
Member
 
Join Date: Aug 2002
Location: Meechigan
Posts: 1,975
But I did consult with my attorney on that wording.
Reply With Quote
  #82  
Old May 2nd, 2012, 05:19 PM
Stuart McLachlan Stuart McLachlan is offline
Member
 
Join Date: Mar 2000
Location: Port Moresby, Papua New Guinea
Posts: 1,693
> peas - seap - sape

You forgot apes
Reply With Quote
  #83  
Old May 2nd, 2012, 07:23 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Good enough for me. Sounds more "professorial" {grin}.

================================================== =============
I was walking through the woods one day,
When I met the wee'ist little elf.
Twas sitting under a mushroom tall
Twas taller than himself.
"How do you do, little Elf Man", I said.
"And what do you do all day?"
In the most playful childlike voice he said
"I dance and scuttle about "
"And pway with butterfwies."
"And when Mr Mole comes fwoo"
"Only just to fwighten him, I jump out and say 'Boo!'"
"And what do you think of that?"
said the gleeful little he.
I said "It makes me sick."
"It gives me sharp and shooting pains to listen to such drool."
And I lifted up my foot and
Squashed that silly little fool.
(Dredged from the muddled maze of a bewildered mind
Original Author Morris Bishop)
================================================== =============
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
  #84  
Old May 2nd, 2012, 07:25 PM
John Gleason John Gleason is offline
Member
 
Join Date: Aug 2002
Location: Meechigan
Posts: 1,975
The pase of my peas did spae time in the apse, but who apes such a pase? Can anyone spae?

If only I had a nickel for every time I've heard that one...
Reply With Quote
  #85  
Old May 2nd, 2012, 07:27 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Quote:
Originally Posted by Stuart McLachlan View Post
> peas - seap - sape

You forgot apes
Not to worry, Stu, it's in the list. I just posted that out of my head as an example for that post.

================================================== ============
"There is a principle which is a bar against all information,
which is proof against all arguments
and which cannot fail to keep a man in everlasting ignorance
that principle is contempt prior to investigation."
Herbert Spencer.
================================================== ============
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
  #86  
Old May 2nd, 2012, 07:29 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Quote:
Originally Posted by John Gleason View Post
The pase of my peas did spae time in the apse, but who apes such a pase? Can anyone spae?

If only I had a nickel for every time I've heard that one...
I'd have a nickel. (Poverty appears to be my everlasting fate. {sigh})

=======================================
"There are two mistakes
one can make along the road to truth...
not going all the way,
and not starting.”
Siddhartha Gautama (Buddha)
=======================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
  #87  
Old May 4th, 2012, 09:56 AM
Michael Mattias Michael Mattias is offline
Member
 
Join Date: Aug 1998
Location: Racine WI USA
Posts: 36,922
I thought watching paint dry was "not exciting".....
Reply With Quote
  #88  
Old May 4th, 2012, 01:35 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
Quote:
Originally Posted by Michael Mattias View Post
I thought watching paint dry was "not exciting".....
See, now you learned something anew. It's not the paint, it's the artist.

Quote:
Parsing 12,368 Anagram sets out of 173,528 words took 0.53 seconds.
==============================================
"Life is never fair. ...
And perhaps it is a good thing for most of us
that it is not."
Oscar Wilde
==============================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

Last edited by Gösta H. Lovgren-2; May 4th, 2012 at 03:15 PM.
Reply With Quote
  #89  
Old May 4th, 2012, 03:31 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
And now ........... I *think* the anagram paint is finally dry http://www.swedesdock.com/Words/Anagrams.txt

===============================================
"He is happy whose circumstances
suit his temper
but he is more excellent
who can suit his temper to any circumstances."
(David Hume 1711 -)
===============================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
  #90  
Old May 5th, 2012, 11:59 PM
Gösta H. Lovgren-2 Gösta H. Lovgren-2 is offline
Member
 
Join Date: Sep 2002
Location: New Jersey Shore
Posts: 3,243
The paint is finally dry:
http://www.swedesdock.com/Words/Index.shtml

=================================
I stepped from plank to plank
A slow and cautious way
The Stars about my Head
I felt about my Feet the Sea.

I knew not but the next
Would be my final inch
This gave me that precarious Gait
Some call Experience.
Emily Dickensen
=================================
__________________
It's a pretty day. I hope you enjoy it.

Gösta

JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © 1999-2011 PowerBASIC, Inc. All Rights Reserved.
Error in my_thread_global_end(): 1 threads didn't exit