BT and LL Algorithms