port of entry inspection algorithms