eddis

class eddis

Public Functions

inline size_t min(size_t x, size_t y, size_t z)

This functions compares x,y and z an returns the smallest one among them.

Parameters:
  • x

  • y

  • z

Returns:

Minimum of x, y, z

size_t editDist(const string &A, const string &B)

This function takes two strings as argument then calculates the edit distance of both strings ie.

minimum number of operation required to convert string first to string second then it returns the converted string

See also

min()

Parameters:
  • A

  • B

Returns:

M[A.size()][B.size()]