• Victor@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    3 months ago

    How in the hell does anyone f— up so bad they get O(n!²)? 🤯 That’s an insanely quickly-growing graph.

    Curious what the purpose of that algorithm would have been. 😅

    • magic_lobster_party@kbin.run
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      You have two lists of size n. You want to find the permutations of these two lists that minimizes a certain distance function between them.