Author Topic: Auto-Emit INSERT/DELETE_BYTES  (Read 1694 times)

japheth

  • Guest
Auto-Emit INSERT/DELETE_BYTES
« on: September 06, 2002, 12:50:39 PM »
Hey Wes, is it possible to take the --cmp-from X --cmp-to X a step further and have it so that if the files happen to be different sizes, WeiDU will not only do the WRITE_BYTES, but will also do the INSERT/DELETE_BYTES as well?

This would be nice to have if you make a bunch of changes to an existing area/item/spell etc, and you want to incorporate it into a tp2 file.

Just a thought.                    

Offline weimer

  • Moderator
  • Planewalker
  • *****
  • Posts: 2222
  • Gender: Male
    • WeiDU and Weimer Mods
Auto-Emit INSERT/DELETE_BYTES
« Reply #1 on: September 06, 2002, 01:51:01 PM »
This is a complicated theoretical problem for which a number of different algorithmic solutions have been proposed.

If you are not familiar with this area, you can compare it to spell-checking. One file is the "wrong word the user typed in" and the other file is the "correct word from the dictionary".

To see why this problem might be difficult, consider:

miset
limitless

You should able to come up with at least four different and "equally" valid ways to transform miset into limitless using "insert letter", "delete letter" and "change letter".

If you try to find the "smallest set of changes needed" the task is computationally difficult (related to the length of the word) *and* you will probably still end up with two different "minimal" solutions.
                   

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: