x_algorithm realize