Previous in Forum: PC Games   Next in Forum: Green Screen of Death: Removing Rogue Anti-Spyware
Close
Close
Close
12 comments
Rate Comments: Nested
Associate

Join Date: Dec 2007
Posts: 48

Script to Compare Words

12/21/2009 10:34 PM

Hi friends, I hope that all you are fine and ready to enjoy christmas. I want to program an script to solve a challenge I need to find a phrase with: - 2 words of three letters - 1 word of four letters - 1 word of two letters ------------------------ Total : 12 letters The clue is that there is no repeated letters in the phrase. I am engineer with knowledge of Fortran, visual basic and C, so I am looking for a boucle (while-do, for, etc) to compare arrays and match the unknown words. any help is welcome! yours, Esteban.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#1

Re: a script to compare words

12/21/2009 10:58 PM

In the world of competitive Scrabble(TM) you can find lists of ALL the 2-letter and 3-letter words (about 800 and 100 respectively, as I recall). As a wild guess, I would imagine there are about 5000 4-letter words, and there might be a list available for them, too. A word-wise comparison may be easier and faster than a letter-wise one. One way or another, you will need to have a dictionary with which to compare. The relevant data base is encoded into "Maven," a top-level Scrabble(TM)-playing program available on CD/DVD. I don't know if the dictionary portion can be accessed, though. The program's creator is Brian Shepard.

Testing the "sentences" for semantic meaningfulness will likely prove challenging.

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Guru

Join Date: Jul 2006
Location: Silicon Valley
Posts: 5356
Good Answers: 50
#2

Re: a script to compare words

12/22/2009 3:01 AM

You wouldn't be trying to, oh say, crack a password, would you???

__________________
"Perplexity is the beginning of dementia" - Professor Coriolus
Register to Reply
Associate

Join Date: Dec 2007
Posts: 48
#4
In reply to #2

Re: a script to compare words

12/22/2009 9:17 AM

No Vermin, I am trying to solve a challenge and win the first place.

Register to Reply
Guru

Join Date: Oct 2006
Location: New Jersey U.S.A.
Posts: 1114
Good Answers: 38
#3

Re: A Script to Compare Words

12/22/2009 8:40 AM

Sounds like a math major!

__________________
The last fight was my fault. My wife asked "What's on the TV?" I said "Dust!"
Register to Reply
Guru

Join Date: Aug 2006
Posts: 4484
Good Answers: 246
#5

Re: Script to Compare Words

12/23/2009 1:47 AM

Does any phrase meeting the criteria win?

Is the challenge to design the algorithm, or to find a particular phrase?

__________________
There is more to life than just eating mice.
Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#6

Re: Script to Compare Words

12/23/2009 5:55 AM

If you get spam.

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Guru

Join Date: Aug 2006
Posts: 4484
Good Answers: 246
#8
In reply to #6

Re: Script to Compare Words

12/23/2009 10:22 AM

In answer to your tagline:

The worm is bad.

__________________
There is more to life than just eating mice.
Register to Reply Score 1 for Good Answer
Commentator
United States - Member - New Member

Join Date: May 2009
Location: Minnesota, USA
Posts: 89
Good Answers: 2
#7

Re: Script to Compare Words

12/23/2009 9:06 AM

Why is porn bad?

__________________
"Obviously you're not a golfer." - The Dude
Register to Reply Score 1 for Good Answer
Guru

Join Date: Aug 2006
Posts: 4484
Good Answers: 246
#9
In reply to #7

Re: Script to Compare Words

12/23/2009 10:28 AM

Maybe it's the language?

Say not f*ck it.

__________________
There is more to life than just eating mice.
Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#11
In reply to #9

Re: Script to Compare Words

12/23/2009 12:02 PM

Two Ts

Now, say f*** it!

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply Off Topic (Score 5)
Guru

Join Date: Aug 2006
Posts: 4484
Good Answers: 246
#12
In reply to #11

Re: Script to Compare Words

12/23/2009 11:47 PM

Two T's? What? Lookks ok tto me.

__________________
There is more to life than just eating mice.
Register to Reply Off Topic (Score 5)
Guru

Join Date: Aug 2006
Posts: 4484
Good Answers: 246
#10

Re: Script to Compare Words

12/23/2009 10:36 AM

This is such a sweet thread. But it could go downhill.

Del can sour it.

(Although we'd usually expect the opposite.)

__________________
There is more to life than just eating mice.
Register to Reply Score 1 for Good Answer
Register to Reply 12 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Blink (5); charsley99 (1); estebanoliveros (1); pauls_14 (1); Randall (2); Tornado (1); vermin (1)

Previous in Forum: PC Games   Next in Forum: Green Screen of Death: Removing Rogue Anti-Spyware

Advertisement