| | |
Letter combinations
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2007
Posts: 81
Reputation:
Solved Threads: 1
I want to ask if someone has already have an article or working algorithm where it can get all the combination possible in a given word.
Example: "ABCD"
possible combinations or arrangement without duplicates:
"ABCD"
"ABC"
"ABD"
"BCD"
"AB"
"AC"
"AD"
"BC"
"CA" <--- is the same as "AC"
"CBA" <--- is the same as "ABC" or "BCA"
"BD"
Example: "ABCD"
possible combinations or arrangement without duplicates:
"ABCD"
"ABC"
"ABD"
"BCD"
"AB"
"AC"
"AD"
"BC"
"CA" <--- is the same as "AC"
"CBA" <--- is the same as "ABC" or "BCA"
"BD"
To find all the combinations of say words of 3 letters from a word of 4 cannot be that difficult. To exclude the "identicals" I would sum their ASCII-char values of a word and test if they are the same.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
![]() |
Similar Threads
- error creating substring (VB.NET)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- linked list and file (C)
- One database too far (Geeks' Lounge)
- Can you treat a graphics mode like text mode? (Assembly)
- help...one-dimensional array averaging program (C++)
- help understanding "char" data type (C++)
- File I/O Question (C++)
- Missing Shortcuts on Startup (With Hijack Log) (Viruses, Spyware and other Nasties)
- C++ Syntax (C++)
Other Threads in the C# Forum
- Previous Thread: Outlook.Selection: determine what type of item is selected.
- Next Thread: Color manipulation
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format formatting forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot marshalbyrefobject math mouseclick mysql networking object operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






