NAME

Algorithm::QuineMcCluskey::Util - provide utility functions to Algorithm::QuineMcCluskey

VERSION

This document describes version 0.01 released 24 June 2006.

DESCRIPTION

This module provides various utilities designed for (but not limited to) use in Algorithm::QuineMcCluskey.

FUNCTIONS

uniqels

Returns unique elements of an arrayref; usable for deep structures

columns

Rotates 90 degrees a hashtable of the type used for %::primes

bin

Wrap oct() to provide easy conversion of a binary string to a number

tobit

Convert a number to an n-wide string of bits representing it

maskmatch

Returns true if a mask matches a minterm, false otherwise.

maskmatches

Returns the elements that match a mask, selected from an array

remel

Remove a value from an arrayref if it matches a mask

diffpos

Find the location of the first difference between two strings

hdist

Hamming distance

diffposes

Return pairwise the 'un-sameness' of two strings

stl

Splits a string into a list of its chars

TODO

Documentation. Most of the subs are very simple, but they still could use a bit more explanation.

SEE ALSO

Algorithm::QuineMcCluskey

AUTHOR

Darren M. Kulp <darren@kulp.ch>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Darren Kulp

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.