Permutations of characters within a string. What are the possible combinations of arrangement of letters (javascript program)
http://friendpair.50webs.org/permutation.html
I won’t go and describe the approach used.. but I coded from scratch using javascript a permutation generator.
I didn’t analyze the current algorithms for doing this.. but I like my solution..
I’ll admit the working of it was some luck
as I didnt perfectly understand my solution
so far it has limitations of course..
for example future features could be
generating permutations of a certain length etc.
2 Responses to “Permutations of characters within a string. What are the possible combinations of arrangement of letters (javascript program)”
Leave a Reply
You must be logged in to post a comment.


on a side note.. the for loops were long and unmanageable..thus this approach seemed best.
i.e. having an array to track combinations and concatenate ..
Nice script. The page layout looks similar to my own JS permutation page. Check it out:
http://scriptar.com/JavaScript/permute.html