In order to transform one source string of text x [1 m] to a target string
Question:
• Copy a character from x to z by setting z[j] ← x[i] and then incrementing both i and j. This operation examines x[i].
• Replace a character from x by another character c, by setting z[j] ← c, and then incrementing both i and j. This operation examines x[i].
• Delete a character from x by incrementing i but leaving j alone. This operation examines x[i].
• Insert the character c into z by setting z[j] ← c and then incrementing j, but leaving i alone. This operation examines no characters of x.
• Twiddle (i.e., exchange) the next two characters by copying them from x to z but in the opposite order; we do so by setting z[j] ← x[i + 1] and z[j + 1] ← x[i] and then setting i ← i + 2 and j ← j + 2. This operation examines x[i] and x [i + 1].
• Kill the remainder of x by setting i ← m + 1. This operation examines all characters in x that have not yet been examined. If this operation is performed, it must be the final operation.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Financial Theory and Corporate Policy
ISBN: 978-0321127211
4th edition
Authors: Thomas E. Copeland, J. Fred Weston, Kuldeep Shastri
Question Posted: