Interface TwolayerGreedy<Op>

a Twolayer that greedily swaps nodes

Create with twolayerGreedy.

Type Parameters

Hierarchy

  • Twolayer<Op extends Twolayer<infer N, never>
        ? N
        : never, Op extends Twolayer<never, infer L>
        ? L
        : never>
    • TwolayerGreedy
  • rearrange one layer conditioned on another

    Parameters

    • topLayer: SugiNode<Op extends Twolayer<N, never>
          ? N
          : never, Op extends Twolayer<never, L>
          ? L
          : never>[]

      the top layer

    • bottomLayer: SugiNode<Op extends Twolayer<N, never>
          ? N
          : never, Op extends Twolayer<never, L>
          ? L
          : never>[]

      the bottom layer

    • topDown: boolean

      if true rearrange bottomLayer, else rearrange topLayer

    Returns void

Methods

Methods

Generated using TypeDoc