encoder diagram and truth table - Search