• FiniteBanjo@feddit.online
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    19 days ago

    You’re needlessly abstracting it. The ant has a constant 4th dimensional vector and a variable 1st, 2nd, and 3rd dimensional vector as a function of it.

    I have traced the path, the addition of the 4th dimension doesn’t change it.

    If the interviewer didn’t intend for this answer then they should have specified a different 4th dimension which is non-constant nor linear.

    • Slashme@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      19 days ago

      There’s no “constant 4th dimensional vector” here.

      You’re overcomplicating it by treating the 4th dimension as time. In a tesseract puzzle, the 4th dimension is just another spatial direction. The ant simply walks across adjacent cubic cells on the hypersurface, much like walking across faces of an ordinary cube. The problem reduces to finding a path through the adjacency graph of the 8 cells.

      • FiniteBanjo@feddit.online
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        2
        ·
        19 days ago

        Your lack of understanding of movement as a combination of vectors makes me think you’re talking out your ass.

        This is linear algebra. The solution can be written as a matrix of 4th dimensional space. Its all vectors.

        • Slashme@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          18 days ago

          And despite your confidence, your answer is wrong. You’re talking about a 3-cube embedded in 4-space instead of a 4-cube, which is why you only see 6 faces, whereas a 4-cube (a tesseract) has 24 faces.

          • FiniteBanjo@feddit.online
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            2
            ·
            18 days ago

            Real life cubes are 4 dimensional.

            The 4th dimension is time.

            How you define the 4th dimension changes the question and I leveraged that to get an easy solution.