Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. shortest list of four letter words

shortest list of four letter words

Scheduled Pinned Locked Moved Visual Basic
helptutorial
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sarfaraj Ahmed
    wrote on last edited by
    #1

    DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance

    Sarfarj Ahmed

    L P J A 4 Replies Last reply
    0
    • S Sarfaraj Ahmed

      DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance

      Sarfarj Ahmed

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What is this? Your homework programming assignment?

      1 Reply Last reply
      0
      • S Sarfaraj Ahmed

        DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance

        Sarfarj Ahmed

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Ah, to be back in school again...

        1 Reply Last reply
        0
        • S Sarfaraj Ahmed

          DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance

          Sarfarj Ahmed

          J Offline
          J Offline
          Johan Hakkesteegt
          wrote on last edited by
          #4

          Just a hint to point you in the right direction: think sql.

          My advice is free, and you may get what you paid for.

          1 Reply Last reply
          0
          • S Sarfaraj Ahmed

            DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance

            Sarfarj Ahmed

            A Offline
            A Offline
            Ashfield
            wrote on last edited by
            #5

            Iteration and recursion are your new friends?

            Bob Ashfield Consultants Ltd

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups