Class FlipDict

java.lang.Object
  extended by FlipDict

public class FlipDict
extends Object

keeps track of mapping between original diags and current diags after a sequence of flips


Constructor Summary
FlipDict(int n)
           
 
Method Summary
 void flip(int prevForwardIndex, int curBackIndex)
           
 int getCurrent(int k)
           
 int getOriginal(int k)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlipDict

public FlipDict(int n)
Method Detail

reset

public void reset()

flip

public void flip(int prevForwardIndex,
                 int curBackIndex)

getOriginal

public int getOriginal(int k)

getCurrent

public int getCurrent(int k)