Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alphabetical sort of characters within a string.
#58
array access instead of file access may tighten up the variances in times, that would be better test for timing i think.

goal is a generic subroutine to process the words letters into sorted list or string that could be used elsewhere, don't want to design the routine to one specific data set though a dictionary aint bad.

one use is for anagrams, another use for a list of words that can be made from a bigger word and another is like alchemy only one change or difference between one word and the next, word ladders i think it was called?

i've used anacode for a daily newspaper puzzle for unscrambling words and then forming the solution to a quote/joke about a cartoon picture that came with the puzzle.
the solution had to be made out of circled letters in the unscrambled words. really tricky if a scrambled word did have an anagram Smile
b = b + ...
Reply


Messages In This Thread
RE: Alphabetical sort of characters within a string. - by bplus - 04-27-2024, 11:46 PM



Users browsing this thread: 4 Guest(s)