input: Write a function to evaluate and compare the performance of two different heuristics algorithms. The function should take two algorithms and their respective input data, measure the execution time for each algorithm, and print which algorithm is faster. If the execution times are the same, it should print that both algorithms have the same performance time.
  
  assert compare_algorithms(heuristics_algorithm1, data1, heuristics_algorithm2, data2)=="Algorithm 2 is faster than algorithm 1"
  assert compare_algorithms(heuristics_algorithm2, data2, heuristics_algorithm1, data1)=="Algorithm 1 is faster than algorithm 2"
  assert compare_algorithms(heuristics_algorithm1, data1, heuristics_algorithm1, data1)=="Both algorithms have the same performance time"
output: import time
  
  def compare_algorithms(algo1, data1, algo2, data2):
      start_time1 = time.time()
      algo1(data1)
      end_time1 = time.time()
      time1 = end_time1 - start_time1
      
      start_time2 = time.time()
      algo2(data2)
      end_time2 = time.time()
      time2 = end_time2 - start_time2
      
      if time1 < time2:
          return "Algorithm 1 is faster than algorithm 2"
      elif time1 > time2:
          return "Algorithm 2 is faster than algorithm 1"
      else:
          return "Both algorithms have the same performance time"