Hi
@johnno56 With first version my system ran code 403 and 416 secs, v2 ran 579 and 541 secs about 3 minutes difference.
You are not supposed to find a connect from child to adult but are supposed to connect fun to job and that goes fairly quick too.
Correct me if I'm wrong... The program looks like it is comparing words of equal length? Would it not make the search quicker if the dictionary was split up into files of equal word lengths? eg: if the first word was five characters long then only open the 5 character word file. Just a thought.
I did use that idea when loading the file, I loaded words of same length into very long strings. Then when Ladder sub gets 2 words to connect it checks their length, makes sure they are same and then splits the long string of words of that length into an array for connect words.
Just ran v2 again fun does connect to job ">>fun>bun>bon,bob,job total time 569 secs on my system.
What is bon? I can hear you asking.
According to Oxford Languages = a Japanese Buddhist festival held annually in August to honor the dead.
Dang just missed it.