Similar Items: Computing the Width of Non-deterministic Automata