levenshtein_matrix, an Octave code which computes the Levenshtein distance matrix defined by two strings.
The information on this web page is distributed under the MIT license.
levenshtein_matrix is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
atbash, an Octave code which applies the Atbash substitution cipher to a string of text.
caesar, an Octave code which applies a Caesar Shift Cipher to a string of text.
chebyshev_matrix, an Octave code which defines the Chebyshev differentiation matrix, by Lloyd Trefethen.
chrpak, an Octave code which works with characters and strings.
levenshtein_distance, an Octave code which computes the Levenshtein distance between two strings.
magic_matrix, an Octave code which computes a magic matrix, for any odd order n, such that all rows and columns have the same sum.
risk_matrix, an Octave code which computes the transition and adjacency matrix for the game of risk.
rot13, an Octave code which enciphers a string using the ROT13 cipher for letters, and the ROT5 cipher for digits.
snakes_matrix, an Octave code which computes the transition matrix for Snakes and Ladders.
tennis_matrix, an Octave code which computes the transition matrix for a game of tennis, which has 17 distinct states.
wathen_matrix, an Octave code which compares storage schemes (full, banded, sparse triplet, sparse) and solution strategies (A\x, linpack, conjugate gradient (CG)) for linear systems involving the Wathen matrix, which can arise when solving a problem using the finite element method (FEM).
web_matrix, an Octave code which stores sample matrices describing a web page network. These matrices are typically very sparse, and the examples here are stored using the sparse triplet (ST) format. They can be used to demonstrate pagerank and other graph algorithms.
wishart_matrix, an Octave code which produces sample matrices from the Wishart or Bartlett distributions, useful for sampling random covariance matrices.