Solution of Switching Based on a Tabular