473,395 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

finding anagrams

Can anyone suggest an algorithm to find the anagrams
of a string (using dictionary words as an input).
If you feel this is not a relevant C question please suggest
some newgroup where this may be posted.

Thanx for any help in advance ...

Nov 15 '05 #1
6 3591
<ju**********@yahoo.co.in> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Can anyone suggest an algorithm to find the anagrams
of a string (using dictionary words as an input).
If you feel this is not a relevant C question please suggest
some newgroup where this may be posted.


comp.programming would be better. There are lots of ways to do this. Hint:
the word "was" has one A, one S and one W. So does the word "saw", which is
an anagram of "was".

Alex
Nov 15 '05 #2
"Alex Fraser" <me@privacy.net> wrote in message
news:yt********************@eclipse.net.uk...
<ju**********@yahoo.co.in> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Can anyone suggest an algorithm to find the anagrams
of a string (using dictionary words as an input).
If you feel this is not a relevant C question please suggest
some newgroup where this may be posted.
comp.programming would be better. There are lots of ways to do this.

Hint: the word "was" has one A, one S and one W. So does the word "saw", which is an anagram of "was".


Workhome is an anagram for...

--
Mabden
Nov 15 '05 #3
Mabden said:
"Alex Fraser" <me@privacy.net> wrote in message
news:yt********************@eclipse.net.uk...
<ju**********@yahoo.co.in> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
> Can anyone suggest an algorithm to find the anagrams
> of a string (using dictionary words as an input).
> If you feel this is not a relevant C question please suggest
> some newgroup where this may be posted.


comp.programming would be better. There are lots of ways to do this.

Hint:
the word "was" has one A, one S and one W. So does the word "saw",

which is
an anagram of "was".


Workhome is an anagram for...


I get 20160 different answers for this from my anagram program, but I'm
guessing the one you mean is:

mworekoh

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/2005
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 15 '05 #4
Richard Heathfield wrote:

Mabden said:
"Alex Fraser" <me@privacy.net> wrote in message
news:yt********************@eclipse.net.uk...
<ju**********@yahoo.co.in> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
> Can anyone suggest an algorithm to find the anagrams
> of a string (using dictionary words as an input).
> If you feel this is not a relevant C question please suggest
> some newgroup where this may be posted.

comp.programming would be better. There are lots of ways to do this.

Hint:
the word "was" has one A, one S and one W. So does the word "saw",

which is
an anagram of "was".


Workhome is an anagram for...


I get 20160 different answers for this from my anagram program, but I'm
guessing the one you mean is:

mworekoh

how, o kmer?
Nov 15 '05 #5
Wolfgang Riedel said:
Richard Heathfield wrote:

Mabden said:
> "Alex Fraser" <me@privacy.net> wrote in message
> news:yt********************@eclipse.net.uk...
>> <ju**********@yahoo.co.in> wrote in message
>> news:11*********************@z14g2000cwz.googlegro ups.com...
>> > Can anyone suggest an algorithm to find the anagrams
>> > of a string (using dictionary words as an input).
>> > If you feel this is not a relevant C question please suggest
>> > some newgroup where this may be posted.
>>
>> comp.programming would be better. There are lots of ways to do this.
> Hint:
>> the word "was" has one A, one S and one W. So does the word "saw",
> which is
>> an anagram of "was".
>>
>
> Workhome is an anagram for...


I get 20160 different answers for this from my anagram program, but I'm
guessing the one you mean is:

mworekoh

how, o kmer?


o.k., he worm!

(Can we take the other 20157 followups as read?)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/2005
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 15 '05 #6
"Richard Heathfield" <in*****@invalid.invalid> wrote in message
news:dg**********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
Wolfgang Riedel said:
Richard Heathfield wrote:

Mabden said:

> "Alex Fraser" <me@privacy.net> wrote in message
> news:yt********************@eclipse.net.uk...
>> <ju**********@yahoo.co.in> wrote in message
>> news:11*********************@z14g2000cwz.googlegro ups.com...
>> > Can anyone suggest an algorithm to find the anagrams
>> > of a string (using dictionary words as an input).
>> > If you feel this is not a relevant C question please suggest
>> > some newgroup where this may be posted.
>>
>> comp.programming would be better. There are lots of ways to do this. > Hint:
>> the word "was" has one A, one S and one W. So does the word "saw", > which is
>> an anagram of "was".
>>
>
> Workhome is an anagram for...

I get 20160 different answers for this from my anagram program, but I'm guessing the one you mean is:

mworekoh

how, o kmer?


o.k., he worm!

(Can we take the other 20157 followups as read?)


ho, me ok R/W.
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tristan | last post by:
Im trying to expand a search util by uing regular expression to allow common search criteria such as +-* and phrases "". My understanding of ereg(string pattern, string string, ) is that the...
11
by: Fuzzyman | last post by:
What's the best, cross platform, way of finding out the directory a script is run from ? I've googled a bit, but can't get a clear answer. On sys.argv the docs say : argv is the script name...
1
by: Phil Watkins | last post by:
I am a novice programer in Vb and I am having a major brain ache finding out which item has been selected within a list view and then either deleting that item or editing them. My searching so...
0
by: Helge Jensen | last post by:
Having posted in microsoft.public.dotnet.framework.sdk and microsoft.public.dotnet.framework.wmi without receiving any response, I posthere on the off-chance that someone who isn't following those...
2
by: ElkGroveR | last post by:
Hi there! I'm using PHP to create a simple, dynamic MySQL SELECT query. The user chooses a selection from a HTML Form SELECT element's many options and submits the form via a POST action. ...
0
by: NSF12345 | last post by:
Iv developed a small program that looks for a file over our network, and copy it to the location of another computer. Im using the "If FileExists("\\oldpc\main share\Folder\file.txt") Then" way of...
0
by: Slowjam | last post by:
How do I correct the program below to search all the anagrams in a given file. First, for each word, build another word (its key) with all its letters sorted. For instance, build "dorw" for...
0
by: scruggsy | last post by:
Given a dictionary of words, and a phrase, I want to find all possible combinations of words such that their letters form an anagram of the phrase. For instance: Words: STACK, STICK, I, LIE, ALE,...
4
by: krishnai888 | last post by:
I had already asked this question long back but no one has replied to me..I hope someone replies to me because its very important for me as I am doing my internship. I am currently writing a code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.