labted_algorithm