Tables for the second algorithm