private static BinaryTree BuildRevisedCorporateStructure() { var ceo = new BinaryTree(1000); var pres = ceo.AddLeft(500); var coo = ceo.AddRight(500); var vpOfLuck = pres.AddLeft(350); vpOfLuck.AddLeft(250); vpOfLuck.AddRight(220); var vpOfToys = pres.AddRight(400); vpOfToys.AddLeft(220); vpOfToys.AddRight(220); var vpOfMeetings = coo.AddLeft(400); vpOfMeetings.AddLeft(220); vpOfMeetings.AddRight(220); var vpOfVPs = coo.AddRight(350); vpOfVPs.AddLeft(220); vpOfVPs.AddRight(250); return(ceo); }
private static BinaryTree buildPayTree() { var ceo = new BinaryTree(1000); var pres = ceo.AddLeft(500); var coo = ceo.AddRight(500); var vpOfLuck = pres.AddLeft(400); vpOfLuck.AddLeft(220); vpOfLuck.AddRight(260); var vpOfToys = pres.AddRight(450); vpOfToys.AddLeft(250); vpOfToys.AddRight(280); var vpOfMeetings = coo.AddLeft(380); vpOfMeetings.AddLeft(210); vpOfMeetings.AddRight(220); var vpOfVPs = coo.AddRight(350); vpOfVPs.AddLeft(230); vpOfVPs.AddRight(240); return(ceo); }